Click or drag to resize

SpeechToTextStartListening Method

This starts the service listening and it will invoke the callback for any recognized speech. OnListen() must be called by the user to queue audio data to send to the service. StopListening() should be called when you want to stop listening.

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 StartListening(
	SpeechToTextOnRecognize callback,
	SpeechToTextOnRecognizeSpeaker speakerLabelCallback = null
)

Parameters

callback
Type: IBM.Watson.DeveloperCloud.Services.SpeechToText.v1SpeechToTextOnRecognize
All recognize results are passed to this callback.
speakerLabelCallback (Optional)
Type: IBM.Watson.DeveloperCloud.Services.SpeechToText.v1SpeechToTextOnRecognizeSpeaker
Speaker label goes through this callback if it arrives separately from recognize result.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also