nuancettswrapper

This module contains the following classes:

Please refer to https://developer.nuance.com/ for further details.

Note

This module requires Python module requests (pip install requests).

Warning

You will be billed according to your Nuance Developers account plan.

Warning

This module is experimental, use at your own risk.

New in version 1.5.0.

class aeneas.ttswrappers.nuancettswrapper.NuanceTTSWrapper(rconf=None, logger=None)[source]

A wrapper for the Nuance Developers TTS API.

This wrapper supports calling the TTS engine only via Python.

In abstract terms, it performs one or more calls to the Nuance TTS API service, and concatenate the resulting WAVE files, returning their anchor times.

To use this TTS engine, specify

"tts=nuance|nuance_tts_api_id=...|nuance_tts_api_key=..."

in the RuntimeConfiguration object, substituting your Nuance Developer API ID and Key.

You might also want to enable the TTS caching, to reduce the number of API calls

"tts=nuance|tts_cache=True"

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

Parameters:
ARA = 'ara'

Arabic

CAT = 'cat'

Catalan

CES = 'ces'

Czech

CMN = 'cmn'

Mandarin Chinese

CMN_CHN = 'cmn-CHN'

Mandarin Chinese (China)

CMN_TWN = 'cmn-TWN'

Mandarin Chinese (Taiwan)

DAN = 'dan'

Danish

DEU = 'deu'

German

ELL = 'ell'

Greek (Modern)

END_POINT = 'NMDPTTSCmdServlet/tts'

Nuance TTS API end point

ENG = 'eng'

English

ENG_AUS = 'eng-AUS'

English (Australia)

ENG_GBR = 'eng-GBR'

English (GB)

ENG_IND = 'eng-IND'

English (India)

ENG_IRL = 'eng-IRL'

English (Ireland)

ENG_SCT = 'eng-SCT'

English (Scotland)

ENG_USA = 'eng-USA'

English (USA)

ENG_ZAF = 'eng-ZAF'

English (South Africa)

EUS = 'eus'

Basque

FIN = 'fin'

Finnish

FRA = 'fra'

French

FRA_CAN = 'fra-CAN'

French (Canada)

GLG = 'glg'

Galician

HEB = 'heb'

Hebrew

HIN = 'hin'

Hindi

HUN = 'hun'

Hungarian

IND = 'ind'

Indonesian

ITA = 'ita'

Italian

JPN = 'jpn'

Japanese

KOR = 'kor'

Korean

NLD = 'nld'

Dutch

NLD_BEL = 'nld-BEL'

Dutch (Belgium)

NOR = 'nor'

Norwegian

POL = 'pol'

Polish

POR = 'por'

Portuguese

POR_BRA = 'por-BRA'

Portuguese (Brazil)

POR_PRT = 'por-PRT'

Portuguese (Portugal)

RON = 'ron'

Romanian

RUS = 'rus'

Russian

SAMPLE_RATE = 16000

Synthesize 16kHz PCM16 mono

SLK = 'slk'

Slovak

SPA = 'spa'

Spanish

SPA_COL = 'spa-COL'

Spanish (Colombia)

SPA_ESP = 'spa-ESP'

Spanish (Spain)

SPA_MEX = 'spa-MEX'

Spanish (Mexico)

SWE = 'swe'

Swedish

THA = 'tha'

Thai

TUR = 'tur'

Turkish

URL = 'https://tts.nuancemobility.net'

Nuance TTS API URL

YUE = 'yue'

Yue Chinese