Click or drag to resize

TextToSpeechToSpeech Method

Converts the given text into an AudioClip that can be played.

Namespace:  IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool ToSpeech(
	TextToSpeechSuccessCallback<AudioClip> successCallback,
	TextToSpeechFailCallback failCallback,
	string text,
	bool usePost = false,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1TextToSpeechSuccessCallbackAudioClip
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1TextToSpeechFailCallback
The fail callback.
text
Type: SystemString
The text to synthesis into speech.
usePost (Optional)
Type: SystemBoolean
If true, then we use post instead of get, this allows for text that exceeds the 5k limit.
customData (Optional)
Type: System.Collections.GenericDictionaryString, Object

[Missing <param name="customData"/> documentation for "M:IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.TextToSpeech.ToSpeech(IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.TextToSpeech.SuccessCallback{UnityEngine.AudioClip},IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1.TextToSpeech.FailCallback,System.String,System.Boolean,System.Collections.Generic.Dictionary{System.String,System.Object})"]

Return Value

Type: Boolean
Returns true if the request is sent.
See Also