macosttswrapper

This module contains the following classes:

Please refer to https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/SpeechSynthesisProgrammingGuide/SpeechOverview/SpeechOverview.html for further details.

class aeneas.ttswrappers.macosttswrapper.MacOSTTSWrapper(rconf=None, logger=None)[source]

A wrapper for the macOS TTS engine.

This wrapper supports calling the TTS engine via subprocess.

Future support for calling via Python C extension is planned.

In abstract terms, it performs one or more calls like

$ say -v voice_name -o /tmp/output_file.wav --data-format LEF32@22050 < text

To use this TTS engine, specify

"tts=macos"

in the RuntimeConfiguration object.

See BaseTTSWrapper for the available functions. Below are listed the languages supported by this wrapper.

Parameters:
ARA = 'ara'

Arabic

CES = 'ces'

Czech

DAN = 'dan'

Danish

DEU = 'deu'

German

ELL = 'ell'

Greek (Modern)

ENG = 'eng'

English

ENG_GBR = 'eng-GBR'

English (GB)

FIN = 'fin'

Finnish

FRA = 'fra'

French

HEB = 'heb'

Hebrew

HIN = 'hin'

Hindi

HUN = 'hun'

Hungarian

IND = 'ind'

Indonesian

ITA = 'ita'

Italian

JPN = 'jpn'

Japanese

KOR = 'kor'

Korean

NLD = 'nld'

Dutch

NOR = 'nor'

Norwegian

POL = 'pol'

Polish

POR = 'por'

Portuguese

RON = 'ron'

Romanian

RUS = 'rus'

Russian

SLK = 'slk'

Slovak

SPA = 'spa'

Spanish

SWE = 'swe'

Swedish

THA = 'tha'

Thai

TUR = 'tur'

Turkish

ZHO = 'zho'

Chinese