Click or drag to resize

SpeechToTextRecognize Method (SpeechToTextSuccessCallbackSpeechRecognitionEvent, SpeechToTextFailCallback, AudioClip, DictionaryString, 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(
	SpeechToTextSuccessCallback<SpeechRecognitionEvent> successCallback,
	SpeechToTextFailCallback failCallback,
	AudioClip clip,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.SpeechToText.v1SpeechToTextSuccessCallbackSpeechRecognitionEvent
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.SpeechToText.v1SpeechToTextFailCallback
The fail callback.
clip
Type: AudioClip
The AudioClip object.
customData (Optional)
Type: System.Collections.GenericDictionaryString, 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