audio

Plays short, pre-recorded audio.

!["https://intro.mp3"]
Welcome back.

MP3

Both Amazon Alexa and Google Assistant support the MP3 format for audio. Consult documentation for each platform for supported duration, bit rate, sample rate, and hosting info.

No validation is done on the passed URL.

Speech Markdown

Short format

n/a

Standard format

!["https://intro.mp3"]
Welcome back.

Formatters

Plain Text

Welcome back.

Amazon Alexa SSML

<speak>
    <audio src="https://intro.mp3"/>
    Welcome back.
</speak>

Google Assistant SSML

<speak>
    <audio src="https://intro.mp3"/>
    Welcome back.
</speak>

Audio Format

For a single audio file to work with both Amazon Alexa and Google Assistant, it must meet the following requirements:

  • The audio file must be a valid MP3 file (MPEG version 2).
  • Source URL must use HTTPS protocol.
  • The audio file cannot be longer than 120 seconds.
  • The bit rate must be 48 kbps.
  • The sample rate must be 24000Hz (24K samples per second).