AudioStreamFormat Class
Represents specific audio configuration, such as microphone, file, or custom audio streams
When called without arguments, returns the default AudioStreamFormat (16 kHz, 16 bit, mono PCM).
- Inheritance
-
builtins.objectAudioStreamFormat
Constructor
AudioStreamFormat(samples_per_second: Optional[int] = None, bits_per_sample: int = 16, channels: int = 1, compressed_stream_format: Optional[azure.cognitiveservices.speech.AudioStreamContainerFormat] = None)
Parameters
- samples_per_second
default value: None
The sample rate for the stream.
- bits_per_sample
default value: 16
The number of bits per audio sample
- channels
default value: 1
The number of audio channels
- compressed_stream_format
default value: None
Feedback
Submit and view feedback for