Click or drag to resize
IDataRecognitionClientSendAudioFormat Method
If you are not sending up a audio file in wave format, and instead you have just raw data, then before sending up any audio data, you must first send up an SpeechAudioFormat descriptor to describe the layout and format of your raw audio data. The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.

Namespace: Microsoft.CognitiveServices.SpeechRecognition
Assembly: SpeechClient (in SpeechClient.dll) Version: 0.0.0.0
Syntax
void SendAudioFormat(
	SpeechAudioFormat audioFormat
)

Parameters

audioFormat
Type: Microsoft.CognitiveServices.SpeechRecognitionSpeechAudioFormat
Audio features that describe the encoding and sampling rate of the audio.
See Also