Click or drag to resize
SpeechAudioFormatcreate16BitPCMFormat Method
Produces a SpeechAudioFormat for 16-bit PCM data.
Produces a SpeechAudioFormat for 16-bit PCM data.

Namespace: Microsoft.CognitiveServices.SpeechRecognition
Assembly: SpeechClient (in SpeechClient.dll) Version: 0.0.0.0
Syntax
public static SpeechAudioFormat create16BitPCMFormat(
	int sampleRate
)

Parameters

sampleRate
Type: Int32
The samples per second of the audio that was encoded (must be 8000 or 16000).The samples per second of the audio that was encoded (can only by 8000 or 16000).

Return Value

Type: SpeechAudioFormat
The created SpeechAudioFormat.

Return Value

Type: SpeechAudioFormat
The created SpeechAudioFormat.
See Also