Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
RecognizedAudio.WriteToWaveStream Method
Writes audio to a stream in Wave format.
Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
'Declaration
Public Sub WriteToWaveStream ( _
outputStream As Stream _
)
'Usage
Dim instance As RecognizedAudio
Dim outputStream As Stream
instance.WriteToWaveStream(outputStream)
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.