BaseSpeaker

class BaseSpeaker[source]

Bases: ABC

Define the common interface for speech synthesis backends.

abstractmethod speak(text: str) tuple[ndarray, int][source]

Convert text into audio data.

Parameters:

text (str) – Text to synthesize.

Returns:

Generated audio samples and bitrate.

Return type:

tuple[numpy.ndarray, int]