AudioOutputConfig Class

Represents specific audio configuration, such as audio output device, file, or custom audio streams

Generates an audio configuration for the speech synthesizer. Only one argument can be passed at a time.

Inheritance
builtins.object
AudioOutputConfig

Constructor

AudioOutputConfig(use_default_speaker: bool = False, filename: typing.Union[str, NoneType] = None, stream: typing.Union[azure.cognitiveservices.speech.audio.AudioOutputStream, NoneType] = None, device_name: typing.Union[str, NoneType] = None)

Parameters

use_default_speaker
Required

Specifies to use the system default speaker for audio output.

device_name
Required

Specifies the id of the audio device to use. This functionality was added in version 1.17.0.

filename
Required

Specifies an audio output file. The parent directory must already exist.

stream
Required

Creates an AudioOutputConfig object representing the specified stream.