libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AlexaBusiness.Types.Audio

Description

 
Synopsis

Documentation

data Audio Source #

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.

Constructors

Audio' 

Fields

  • locale :: Locale

    The locale of the audio message. Currently, en-US is supported.

  • location :: Text

    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.

Instances

Instances details
Eq Audio Source # 
Instance details

Defined in Amazonka.AlexaBusiness.Types.Audio

Methods

(==) :: Audio -> Audio -> Bool #

(/=) :: Audio -> Audio -> Bool #

Read Audio Source # 
Instance details

Defined in Amazonka.AlexaBusiness.Types.Audio

Show Audio Source # 
Instance details

Defined in Amazonka.AlexaBusiness.Types.Audio

Methods

showsPrec :: Int -> Audio -> ShowS #

show :: Audio -> String #

showList :: [Audio] -> ShowS #

Generic Audio Source # 
Instance details

Defined in Amazonka.AlexaBusiness.Types.Audio

Associated Types

type Rep Audio :: Type -> Type #

Methods

from :: Audio -> Rep Audio x #

to :: Rep Audio x -> Audio #

NFData Audio Source # 
Instance details

Defined in Amazonka.AlexaBusiness.Types.Audio

Methods

rnf :: Audio -> () #

Hashable Audio Source # 
Instance details

Defined in Amazonka.AlexaBusiness.Types.Audio

Methods

hashWithSalt :: Int -> Audio -> Int #

hash :: Audio -> Int #

ToJSON Audio Source # 
Instance details

Defined in Amazonka.AlexaBusiness.Types.Audio

type Rep Audio Source # 
Instance details

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)))

newAudio Source #

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.