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: str = None, stream: AudioOutputStream = None, device_name: str = None)

Parameters

Name Description
use_default_speaker

Specifies to use the system default speaker for audio output.

default value: False
filename

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

default value: None
stream

Creates an AudioOutputConfig object representing the specified stream.

default value: None
device_name

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

default value: None