Rate this page:

createToneScriptPlayer

Copy URL
createToneScriptPlayer(script: 

string

,
ToneScriptPlayerOptions:

ToneScriptPlayerOptions

):

Player

Create new audio player with the specified ToneScript sequence. Media streams can later be attached using the Call.sendMediaTo method etc. Add the following line to your scenario code to use the function:

require(Modules.Player);

Parameters

  • script:

    string

    ToneScript string

  • ToneScriptPlayerOptions:

    ToneScriptPlayerOptions

    Parameters for ToneScript: loop, progressivePlayback, etc.

Returns