ConversationCreateAudioStream Method (SpeechAudioFormat) |
Gets an audio stream with the specified format. Use this method
when sending raw audio samples.
Namespace: Microsoft.CognitiveServices.SpeechRecognitionAssembly: SpeechClient (in SpeechClient.dll) Version: 0.0.0.0
Syntax public virtual Stream CreateAudioStream(
SpeechAudioFormat format
)
Public Overridable Function CreateAudioStream (
format As SpeechAudioFormat
) As Stream
public:
virtual Stream^ CreateAudioStream(
SpeechAudioFormat^ format
)
abstract CreateAudioStream :
format : SpeechAudioFormat -> Stream
override CreateAudioStream :
format : SpeechAudioFormat -> Stream
Parameters
- format
- Type: Microsoft.CognitiveServices.SpeechRecognitionSpeechAudioFormat
Audio features that describe the encoding and sampling rate of the audio.
Return Value
Type:
StreamThe new audio stream
Implements
IConversationCreateAudioStream(SpeechAudioFormat)See Also