Delen via


AudioStreamFormat Klas

Vertegenwoordigt specifieke audioconfiguratie, zoals microfoon, bestand of aangepaste audiostreams

Wanneer aangeroepen zonder argumenten, retourneert de standaard AudioStreamFormat (16 kHz, 16-bits, mono PCM).

Overname
builtins.object
AudioStreamFormat

Constructor

AudioStreamFormat(samples_per_second: int = None, bits_per_sample: int = 16, channels: int = 1, compressed_stream_format: AudioStreamContainerFormat = None, wave_stream_format: AudioStreamWaveFormat = AudioStreamWaveFormat.PCM)

Parameters

Name Description
samples_per_second

De samplefrequentie voor de stream.

standaardwaarde: None
bits_per_sample

Het aantal bits per audiovoorbeeld

standaardwaarde: 16
channels

Het aantal audiokanalen

standaardwaarde: 1
compressed_stream_format

De gecomprimeerde streamindeling die is gedefinieerd in AudioStreamContainerFormat

standaardwaarde: None
wave_stream_format

De indeling van de golfstroom die is gedefinieerd in AudioStreamWaveFormat

standaardwaarde: AudioStreamWaveFormat.PCM