PushAudioInputStream Class
Represents memory backed push audio input stream used for custom audio input configurations.
- Inheritance
-
PushAudioInputStream
Constructor
PushAudioInputStream(stream_format: Optional[azure.cognitiveservices.speech.audio.AudioStreamFormat] = None)
Parameters
- stream_format
default value: None
The AudioStreamFormat the stream uses for audio data.
Methods
| close |
Closes the stream. |
| write |
Writes the audio data specified by making an internal copy of the data. The buffer should not contain any audio header. |
close
Closes the stream.
close()
write
Writes the audio data specified by making an internal copy of the data. The buffer should not contain any audio header.
write(buffer: bytes)
Parameters
- buffer
Required
The audio data.
Feedback
Submit and view feedback for