# Print output for @column tags ?>
public
final
class
SynthesisRequest
extends Object
java.lang.Object | |
↳ | android.speech.tts.SynthesisRequest |
Contains data required by engines to synthesize speech. This data is:
TextToSpeech#setLanguage
instead of
TextToSpeech#setVoice
params
argument in TextToSpeech#speak
and TextToSpeech#synthesizeToFile
.
Public constructors | |
---|---|
SynthesisRequest(String text, Bundle params)
|
|
SynthesisRequest(CharSequence text, Bundle params)
|
Public methods | |
---|---|
int
|
getCallerUid()
Gets the request caller Uid. |
CharSequence
|
getCharSequenceText()
Gets the text which should be synthesized. |
String
|
getCountry()
Gets the ISO 3-letter country code for the language to use. |
String
|
getLanguage()
Gets the ISO 3-letter language code for the language to use. |
Bundle
|
getParams()
Gets the additional params, if any. |
int
|
getPitch()
Gets the pitch to use. |
int
|
getSpeechRate()
Gets the speech rate to use. |
String
|
getText()
This method is deprecated.
As of API level 21, replaced by |
String
|
getVariant()
Gets the language variant to use. |
String
|
getVoiceName()
Gets the name of the voice to use. |
Inherited methods | |
---|---|
public SynthesisRequest (String text, Bundle params)
Parameters | |
---|---|
text |
String |
params |
Bundle |
public SynthesisRequest (CharSequence text, Bundle params)
Parameters | |
---|---|
text |
CharSequence |
params |
Bundle |
public int getCallerUid ()
Gets the request caller Uid.
Returns | |
---|---|
int |
public CharSequence getCharSequenceText ()
Gets the text which should be synthesized.
Returns | |
---|---|
CharSequence |
public String getCountry ()
Gets the ISO 3-letter country code for the language to use.
Returns | |
---|---|
String |
public String getLanguage ()
Gets the ISO 3-letter language code for the language to use.
Returns | |
---|---|
String |
public int getPitch ()
Gets the pitch to use. The normal pitch is 100.
Returns | |
---|---|
int |
public int getSpeechRate ()
Gets the speech rate to use. The normal rate is 100.
Returns | |
---|---|
int |
public String getText ()
This method is deprecated.
As of API level 21, replaced by getCharSequenceText()
.
Gets the text which should be synthesized.
Returns | |
---|---|
String |