# saiAsrSetSaveWaveform

Specifies whether or not the recognizer must save recognized audio streams.

#### Prototype

DWORD saiAsrSetSaveWaveform ( SAI_RECOGNIZER_HANDLE recog H d, BOOL value )

Argument | Description
recogHd | Handle associated with a recognizer resource.
value | One of the following values: TRUE: Recognizer saves audio streams. FALSE: Recognizer does not save audio streams.

#### Return 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.

#### Details

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.

#### See also

saiAsrGetSaveWaveform