@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SynthesizeSpeechResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
SynthesizeSpeechResult() |
Modifier and Type | Method and Description |
---|---|
SynthesizeSpeechResult |
clone() |
boolean |
equals(Object obj) |
InputStream |
getAudioStream()
Stream containing the synthesized speech.
|
String |
getContentType()
Specifies the type audio stream.
|
Integer |
getRequestCharacters()
Number of characters synthesized.
|
int |
hashCode() |
void |
setAudioStream(InputStream audioStream)
Stream containing the synthesized speech.
|
void |
setContentType(String contentType)
Specifies the type audio stream.
|
void |
setRequestCharacters(Integer requestCharacters)
Number of characters synthesized.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SynthesizeSpeechResult |
withAudioStream(InputStream audioStream)
Stream containing the synthesized speech.
|
SynthesizeSpeechResult |
withContentType(String contentType)
Specifies the type audio stream.
|
SynthesizeSpeechResult |
withRequestCharacters(Integer requestCharacters)
Number of characters synthesized.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setAudioStream(InputStream audioStream)
Stream containing the synthesized speech.
audioStream
- Stream containing the synthesized speech.public InputStream getAudioStream()
Stream containing the synthesized speech.
public SynthesizeSpeechResult withAudioStream(InputStream audioStream)
Stream containing the synthesized speech.
audioStream
- Stream containing the synthesized speech.public void setContentType(String contentType)
Specifies the type audio stream. This should reflect the OutputFormat
parameter in your request.
If you request mp3
as the OutputFormat
, the ContentType
returned is
audio/mpeg.
If you request ogg_vorbis
as the OutputFormat
, the ContentType
returned is
audio/ogg.
If you request pcm
as the OutputFormat
, the ContentType
returned is
audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
If you request json
as the OutputFormat
, the ContentType
returned is
audio/json.
contentType
- Specifies the type audio stream. This should reflect the OutputFormat
parameter in your
request.
If you request mp3
as the OutputFormat
, the ContentType
returned is
audio/mpeg.
If you request ogg_vorbis
as the OutputFormat
, the ContentType
returned is audio/ogg.
If you request pcm
as the OutputFormat
, the ContentType
returned is
audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
If you request json
as the OutputFormat
, the ContentType
returned
is audio/json.
public String getContentType()
Specifies the type audio stream. This should reflect the OutputFormat
parameter in your request.
If you request mp3
as the OutputFormat
, the ContentType
returned is
audio/mpeg.
If you request ogg_vorbis
as the OutputFormat
, the ContentType
returned is
audio/ogg.
If you request pcm
as the OutputFormat
, the ContentType
returned is
audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
If you request json
as the OutputFormat
, the ContentType
returned is
audio/json.
OutputFormat
parameter in your
request.
If you request mp3
as the OutputFormat
, the ContentType
returned
is audio/mpeg.
If you request ogg_vorbis
as the OutputFormat
, the ContentType
returned is audio/ogg.
If you request pcm
as the OutputFormat
, the ContentType
returned
is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
If you request json
as the OutputFormat
, the ContentType
returned
is audio/json.
public SynthesizeSpeechResult withContentType(String contentType)
Specifies the type audio stream. This should reflect the OutputFormat
parameter in your request.
If you request mp3
as the OutputFormat
, the ContentType
returned is
audio/mpeg.
If you request ogg_vorbis
as the OutputFormat
, the ContentType
returned is
audio/ogg.
If you request pcm
as the OutputFormat
, the ContentType
returned is
audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
If you request json
as the OutputFormat
, the ContentType
returned is
audio/json.
contentType
- Specifies the type audio stream. This should reflect the OutputFormat
parameter in your
request.
If you request mp3
as the OutputFormat
, the ContentType
returned is
audio/mpeg.
If you request ogg_vorbis
as the OutputFormat
, the ContentType
returned is audio/ogg.
If you request pcm
as the OutputFormat
, the ContentType
returned is
audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.
If you request json
as the OutputFormat
, the ContentType
returned
is audio/json.
public void setRequestCharacters(Integer requestCharacters)
Number of characters synthesized.
requestCharacters
- Number of characters synthesized.public Integer getRequestCharacters()
Number of characters synthesized.
public SynthesizeSpeechResult withRequestCharacters(Integer requestCharacters)
Number of characters synthesized.
requestCharacters
- Number of characters synthesized.public String toString()
toString
in class Object
Object.toString()
public SynthesizeSpeechResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.