WriteToWaveStream Method

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Writes audio to a stream in Wave format.

Namespace:  Microsoft.Speech.Recognition
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

Visual Basic (Declaration)
Public Sub WriteToWaveStream ( _
	outputStream As Stream _
)
Visual Basic (Usage)
Dim instance As RecognizedAudio
Dim outputStream As Stream

instance.WriteToWaveStream(outputStream)
C#
public void WriteToWaveStream(
	Stream outputStream
)

Parameters

outputStream
Type: System.IO..::..Stream

The stream that will receive the audio data.

Remarks

Audio data is written to outputStream in Wave format, which includes a resource interchange file format (RIFF) header.

The WriteToAudioStream method uses the same binary format, but does not include the Wave header.

See Also