Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
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. The following command converts the provided <input-file> to an MP3 file that is played in the announcement:
ffmpeg -i <input-file> -ac 2 -codec:a libmp3lame -b:a 48k -ar 16000 <output-file.mp3>
See: newAudio
smart constructor.
Audio' | |
|
Instances
Eq Audio Source # | |
Read Audio Source # | |
Show Audio Source # | |
Generic Audio Source # | |
NFData Audio Source # | |
Defined in Amazonka.AlexaBusiness.Types.Audio | |
Hashable Audio Source # | |
Defined in Amazonka.AlexaBusiness.Types.Audio | |
ToJSON Audio Source # | |
Defined in Amazonka.AlexaBusiness.Types.Audio | |
type Rep Audio Source # | |
Defined in Amazonka.AlexaBusiness.Types.Audio type Rep Audio = D1 ('MetaData "Audio" "Amazonka.AlexaBusiness.Types.Audio" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "Audio'" 'PrefixI 'True) (S1 ('MetaSel ('Just "locale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Locale) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of Audio
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:locale:Audio'
, audio_locale
- The locale of the audio message. Currently, en-US is supported.
$sel:location:Audio'
, audio_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.
audio_locale :: Lens' Audio Locale Source #
The locale of the audio message. Currently, en-US is supported.
audio_location :: Lens' Audio Text Source #
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.