Mixer (APL for Audio)
Note: This functionality is offered as a public beta and may be changed, improved, or corrected as we receive feedback and iterate on the feature.
A Mixer
component plays a set of audio clips at the same time. You define these audio clips using APL components. For example a Mixer
with a Speech
component and an Audio
component generates an audio clip in which the text-to-speech and audio file content play at the same time.
Properties
Mixer
is a multiple-child component. Mixer
has the follow properties:
Mixer
doesn't have any component-specific properties.
Example
In this example, the user hears Alexa say "Hello world! Hopefully these water sounds are relaxing" over the water sounds in the "nature_10" sound effect from the Alexa Skills Kit sound library.
{
"type": "Mixer",
"items": [
{
"type": "Speech",
"content": "Hello world! Hopefully these water sounds are relaxing"
},
{
"type": "Audio",
"source": "soundbank://soundlibrary/water/nature/nature_10"
}
]
}