Use ControlMusic to:
Before using ControlMusic:
Select Const and type the name of the piece of music in the Music Title field, or select Var and then select the variable containing the name. The name must match the name passed by the music player custom server to Blueworx Voice Response.
In the Volume field, type the difference in decibels (dBm) between the background ceiling volume and the desired music volume.
To fade in the music gradually, specify a Fade Time greater than 100. The maximum is 10000 (10 seconds). To start the music abruptly, specify 100.
To ensure that the state table proceeds directly to the next action, do not select Wait for fade action to complete.
When background music is already playing, fill in the Music Title, Volume, and Fade Time parameters, changing the value in the Volume field. If the value is numerically lower than the value in the previous ControlMusic action, the music will get louder. If the value is numerically higher than the value in the previous ControlMusic action, the music will get quieter.
To stop the music, fill in the Music Title, Volume, and Fade Time parameters, specifying 80 in the Volume field.
To stop the music, specify 80, which is below the lowest possible absolute silence threshold. When the music volume falls below this threshold, the music channel is unlinked from the telephony channel.
Blueworx Voice Response ensures that the volume of the music does not exceed the maximum permissible volume on the line.
If the caller presses a DTMF key while music is being faded out or in, the DTMF keystroke is available for retrieval after completion of the fade.
When the Fade Time is very short, it does not matter whether you select Wait for fade action to complete.
When the Fade Time is longer, the application will appear to be waiting for the music to fade.
ControlMusic can have one of the following results:
When using an ASCII editor, code this action with these parameters in the following order:
For example:
label: "Fade-in noisy office sound-effects" ControlMusic("Fade-in noisy office sound-effects",0,fadetime, "WAIT") edge EDGE_CM_SUCCESSFUL: succeeded_1 edge EDGE_CM_MUSIC_NOT_PLAYING: start_music_retry edge EDGE_CM_HUP: cleanup_app ;
The parameters and edges are described above under "Parameters" and "Possible results". For more information, see Testing a state table using the debugger.