@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Audio extends Object implements Serializable, Cloneable, StructuredPojo
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>
Constructor and Description |
---|
Audio() |
Modifier and Type | Method and Description |
---|---|
Audio |
clone() |
boolean |
equals(Object obj) |
String |
getLocale()
The locale of the audio message.
|
String |
getLocation()
The location of the audio file.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLocale(String locale)
The locale of the audio message.
|
void |
setLocation(String location)
The location of the audio file.
|
String |
toString()
Returns a string representation of this object.
|
Audio |
withLocale(Locale locale)
The locale of the audio message.
|
Audio |
withLocale(String locale)
The locale of the audio message.
|
Audio |
withLocation(String location)
The location of the audio file.
|
public void setLocale(String locale)
The locale of the audio message. Currently, en-US is supported.
locale
- The locale of the audio message. Currently, en-US is supported.Locale
public String getLocale()
The locale of the audio message. Currently, en-US is supported.
Locale
public Audio withLocale(String locale)
The locale of the audio message. Currently, en-US is supported.
locale
- The locale of the audio message. Currently, en-US is supported.Locale
public Audio withLocale(Locale locale)
The locale of the audio message. Currently, en-US is supported.
locale
- The locale of the audio message. Currently, en-US is supported.Locale
public void setLocation(String 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.
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.public String getLocation()
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.
public Audio withLocation(String 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.
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.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.