Sequencer (APL for Audio)
Note: Learn how to improve your skills with APL with Build visually rich experiences using APL at the Alexa Learning Lab.
A Sequencer
component plays a series of audio clips one after another. You define these audio clips using APL components. For example a Sequencer
with a Speech
component and an Audio
component plays the text-to-speech defined by the Speech
component, followed by the audio file defined by the Audio
component.
Properties
Sequencer
is a multiple-child component. Sequencer
has the follow properties:
Sequencer
doesn't have any component-specific properties.
The child components of a Sequencer
play back in array order.
Example
In the following example, the user hears Alexa say "Hello world! What time is it?".
{
"type": "Sequencer",
"items": [
{
"type": "Speech",
"contentType": "PlainText",
"content": "Hello world!"
},
{
"type": "Speech",
"contentType": "PlainText",
"content": "What time is it?"
}
]
}
Last updated: Jul 15, 2021