TextToSpeechGetPronunciation Method |
Returns the phonetic pronunciation for the word specified by the text parameter. You can request
the pronunciation for a specific format. You can also request the pronunciation for a specific
voice to see the default translation for the language of that voice or for a specific custom voice
model to see the translation for that voice model.
Note: This method is currently a beta release that supports US English only.
Namespace:
IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1
Assembly:
unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax public bool GetPronunciation(
TextToSpeechSuccessCallback<Pronunciation> successCallback,
TextToSpeechFailCallback failCallback,
string text,
Nullable<VoiceType> voice = null,
string format = "ipa",
string customization_id = null,
Dictionary<string, Object> customData = null
)
Parameters
- successCallback
- Type: IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1TextToSpeechSuccessCallbackPronunciation
The success callback. - failCallback
- Type: IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1TextToSpeechFailCallback
The fail callback. - text
- Type: SystemString
The text string to pronounce. - voice (Optional)
- Type: SystemNullableVoiceType
Specify a voice to obtain the pronunciation for the specified word in the language of that voice. All voices for the same language (for example, en-US) return the same translation. Do not specify both a voice and a customization_id. Retrieve available voices with the GET /v1/voices method. If this is null, TextToSpeech will default to the set voice. - format (Optional)
- Type: SystemString
Specify the phoneme set in which to return the pronunciation. Omit the parameter to obtain the pronunciation in the default format. Either ipa or spr. - customization_id (Optional)
- Type: SystemString
GUID of a custom voice model for which the pronunciation is to be returned. You must make the request with the service credentials of the model's owner. If the word is not defined in the specified voice model, the service returns the default translation for the model's language. Omit the parameter to see the translation for the specified voice with no customization. Do not specify both a voice and a customization_id. - customData (Optional)
- Type: System.Collections.GenericDictionaryString, Object
[Missing <param name="customData"/> documentation for "M:IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.TextToSpeech.GetPronunciation(IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.TextToSpeech.SuccessCallback{IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.Pronunciation},IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.TextToSpeech.FailCallback,System.String,System.Nullable{IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.VoiceType},System.String,System.String,System.Collections.Generic.Dictionary{System.String,System.Object})"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.TextToSpeech.GetPronunciation(IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.TextToSpeech.SuccessCallback{IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.Pronunciation},IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.TextToSpeech.FailCallback,System.String,System.Nullable{IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.VoiceType},System.String,System.String,System.Collections.Generic.Dictionary{System.String,System.Object})"]
See Also