audio Module

Classes that are concerned with the handling of audio input to the various recognizers, and audio output from the speech synthesizer.

Classes

AudioConfig

Represents audio input or output configuration. Audio input can be from a microphone, file, or input stream. Audio output can be to a speaker, audio file output in WAV format, or output stream.

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

AudioInputStream

Base class for Input Streams

AudioOutputConfig

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.

AudioOutputStream

Base class for Output Streams

AudioStreamFormat

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).

PullAudioInputStream

Pull audio input stream class.

PullAudioInputStreamCallback

An interface that defines callback methods for an audio input stream.

Derive from this class and implement its function to provide your own data as an audio input stream.

PullAudioOutputStream

Represents memory backed pull audio output stream used for custom audio output.

PushAudioInputStream

Represents memory backed push audio input stream used for custom audio input configurations.

PushAudioOutputStream

Push audio output stream class.

PushAudioOutputStreamCallback

An interface that defines callback methods for an audio output stream.

Derive from this class and implement its function to provide your own data as an audio output stream.