Represents specific audio configuration, such as microphone, file, or custom audio streams
Generates an audio configuration for the various recognizers. Only one argument can be passed at a time.
AudioConfig(use_default_microphone: bool = False, filename: typing.Union[str, NoneType] = None, stream: typing.Union[azure.cognitiveservices.speech.audio.AudioInputStream, NoneType] = None, device_name: typing.Union[str, NoneType] = None)
Specifies to use the default system microphone for audio input.
Specifies the id of the audio device to use. Please refer to this page on how to retrieve platform-specific microphone names. This functionality was added in version 1.3.0.
Specifies an audio input file. Currently, only WAV / PCM with 16-bit samples, 16 kHz sample rate, and a single channel (Mono) is supported.
Creates an AudioConfig object representing the specified stream.