Specifies whether or not the recognizer must save recognized audio streams.
DWORD saiAsrSetSaveWaveform ( SAI_RECOGNIZER_HANDLE recogHd, BOOL value )
|
Argument |
Description |
|
recogHd |
Handle associated with a recognizer resource. |
|
value |
One of the following values:
|
|
Return value |
Description |
|
SUCCESS |
|
|
SAIERR_INVALID_PARAMETER |
One of the specified arguments is invalid. |
|
SAIERR_UNSUPPORTED_SPEECH_PARAMETER |
Recognizer engine does not support the specified parameter. |
When saiAsrSetSaveWaveform is set to TRUE, the recognizer must record the recognized audio and make it available to the client at the URL specified in the WaveformUrl field of the SAIEVN_ASR_RECOGNITION_DONE event buffer.
If an error occurs in recording the stream or the audio clip is not available, the recognizer must return an empty WaveformUrl field.