Click or drag to resize

SpeechToTextRecognize Method (SpeechToTextSuccessCallbackSpeechRecognitionEvent, SpeechToTextFailCallback, Byte, String, 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,
	byte[] audioData,
	string contentType,
	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.
audioData
Type: SystemByte
The audio data.
contentType
Type: SystemString
The content type of the audio data.
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,System.Byte[],System.String,System.Collections.Generic.Dictionary{System.String,System.Object})"]

See Also