Optional
fadeinDuration of the fade-in effect at the start.
Gradually increases volume from 0 to the specified volume level. Specified in milliseconds (ms) or seconds (s).
Optional
fadeoutDuration of the fade-out effect at the end.
Gradually decreases volume from the specified level to 0. Specified in milliseconds (ms) or seconds (s).
URL of the background audio file. (Required)
Requirements:
Optional
volumeVolume level of the background audio.
Can be specified as:
Configuration options for background audio.
Defines audio that plays throughout the entire SSML document, behind the spoken content. Useful for adding music or ambient sounds.
Example
See
https://docs.microsoft.com/azure/cognitive-services/speech-service/speech-synthesis-markup#add-background-audio Background Audio Documentation