macosttswrapper¶
This module contains the following classes:
MacOSTTSWrapper, a wrapper for themacOS“say” TTS engine.
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
macOSTTS 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
RuntimeConfigurationobject.See
BaseTTSWrapperfor the available functions. Below are listed the languages supported by this wrapper.Parameters: - rconf (
RuntimeConfiguration) – a runtime configuration - logger (
Logger) – the logger object
-
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
- rconf (