public class SynthesizeSpeechResult
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
SynthesizeSpeechResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.io.InputStream |
getAudioStream()
Stream containing the synthesized speech.
|
java.lang.String |
getContentType()
Specifies the type audio stream.
|
java.lang.Integer |
getRequestCharacters()
Number of characters synthesized.
|
int |
hashCode() |
void |
setAudioStream(java.io.InputStream audioStream)
Stream containing the synthesized speech.
|
void |
setContentType(java.lang.String contentType)
Specifies the type audio stream.
|
void |
setRequestCharacters(java.lang.Integer requestCharacters)
Number of characters synthesized.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SynthesizeSpeechResult |
withAudioStream(java.io.InputStream audioStream)
Stream containing the synthesized speech.
|
SynthesizeSpeechResult |
withContentType(java.lang.String contentType)
Specifies the type audio stream.
|
SynthesizeSpeechResult |
withRequestCharacters(java.lang.Integer requestCharacters)
Number of characters synthesized.
|
public java.io.InputStream getAudioStream()
Stream containing the synthesized speech.
Stream containing the synthesized speech.
public void setAudioStream(java.io.InputStream audioStream)
Stream containing the synthesized speech.
audioStream - Stream containing the synthesized speech.
public SynthesizeSpeechResult withAudioStream(java.io.InputStream audioStream)
Stream containing the synthesized speech.
Returns a reference to this object so that method calls can be chained together.
audioStream - Stream containing the synthesized speech.
public java.lang.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.
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 setContentType(java.lang.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 SynthesizeSpeechResult withContentType(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.Integer getRequestCharacters()
Number of characters synthesized.
Number of characters synthesized.
public void setRequestCharacters(java.lang.Integer requestCharacters)
Number of characters synthesized.
requestCharacters - Number of characters synthesized.
public SynthesizeSpeechResult withRequestCharacters(java.lang.Integer requestCharacters)
Number of characters synthesized.
Returns a reference to this object so that method calls can be chained together.
requestCharacters - Number of characters synthesized.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.