Click or drag to resize

SpeechToText.Recognize Method (SpeechToText.SuccessCallback<SpeechRecognitionEvent>, SpeechToText.FailCallback, AudioClip, Dictionary<String, Object>)

This function POSTs the given audio clip the recognize function and convert speech into text. This function should be used only on AudioClips under 4MB once they have been converted into WAV format. Use the StartListening() for continuous recognition of text.

Namespace:  IBM.Watson.DeveloperCloud.Services.SpeechToText.v1
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool Recognize(
	SpeechToText.SuccessCallback<SpeechRecognitionEvent> successCallback,
	SpeechToText.FailCallback failCallback,
	AudioClip clip,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.SpeechToText.v1.SpeechToText.SuccessCallback<SpeechRecognitionEvent>
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.SpeechToText.v1.SpeechToText.FailCallback
The fail callback.
clip
Type: AudioClip
The AudioClip object.
customData (Optional)
Type: System.Collections.Generic.Dictionary<String, Object>
Optional custom data.

Return Value

Type: Boolean

[Missing <returns> documentation for "M:IBM.Watson.DeveloperCloud.Services.SpeechToText.v1.SpeechToText.Recognize(IBM.Watson.DeveloperCloud.Services.SpeechToText.v1.SpeechToText.SuccessCallback{IBM.Watson.DeveloperCloud.Services.SpeechToText.v1.SpeechRecognitionEvent},IBM.Watson.DeveloperCloud.Services.SpeechToText.v1.SpeechToText.FailCallback,UnityEngine.AudioClip,System.Collections.Generic.Dictionary{System.String,System.Object})"]

See Also