Click or drag to resize

SpeechToTextOnListen Method

This function should be invoked with the AudioData input after StartListening() method has been invoked. The user should continue to invoke this function until they are ready to call StopListening(), typically microphone input is sent to this function.

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 OnListen(
	AudioData clip
)

Parameters

clip
Type: IBM.Watson.DeveloperCloud.DataTypesAudioData
A AudioData object containing the AudioClip and max level found in the clip.

Return Value

Type: Boolean
True if audio was sent or enqueued, false if audio was discarded.
See Also