Audio
The audio message. There is a 1 MB limit on the audio file input and the only supported format is MP3. To convert your MP3 audio files to an Alexa-friendly,
required codec version (MPEG version 2) and bit rate (48 kbps), you might use converter
software. One option for this is a command-line tool, FFmpeg. For more information, see
FFmpeg
ffmpeg -i <input-file> -ac 2 -codec:a libmp3lame -b:a 48k -ar 16000
<output-file.mp3>
Contents
- Locale
-
The locale of the audio message. Currently, en-US is supported.
Type: String
Valid Values:
en-US
Required: Yes
- Location
-
The location of the audio file. Currently, S3 URLs are supported. Only S3 locations comprised of safe characters are valid. For more information, see Safe Characters.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1200.
Pattern:
https://([A-Za-z0-9_.-]+)?(s3-[A-Za-z0-9-]+|s3\.([A-Za-z0-9-])+|s3|s3.dualstack\.([A-Za-z0-9-])+)+.amazonaws.com/.*
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: