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: int | None = None, bits_per_sample: int = 16, channels: int = 1, compressed_stream_format: AudioStreamContainerFormat | None = None, wave_stream_format: AudioStreamWaveFormat = AudioStreamWaveFormat.PCM)
Parameters
Name | Description |
---|---|
samples_per_second
|
The sample rate for the stream. Default value: None
|
bits_per_sample
|
The number of bits per audio sample Default value: 16
|
channels
|
The number of audio channels Default value: 1
|
compressed_stream_format
|
The compressed stream format defined in AudioStreamContainerFormat Default value: None
|
wave_stream_format
|
The wave stream format defined in AudioStreamWaveFormat Default value: AudioStreamWaveFormat.PCM
|
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python