Methods

Objects

media/tts

Text-to-Speech

Method Description
media/tts.get_voice_list Get the Text-to-Speech voice list.
media/tts.set_content Set a Media.Library content with Text-to-Speech.

Methods

media/tts.get_voice_list

Description

Get the Text-to-Speech voice list.

Signature

method: media/tts.get_voice_list

params: []

Parameters

No parameters.

Result

Type Description Format/Object
object Dictionary (key/value) of Voice list by country code (key).

See Also

media/tts.set_content

Description

Set a Media.Library content with Text-to-Speech.

Signature

method: media/tts.set_content

params: [int media_id, string text, string voice, object options]

Parameters

Parameter Type Description NULL
media_id int The Media ID to change. NO
text string The text to say. NO
voice string The Voice to use.
Values: "TTS_DE-DE_ANNA", "TTS_DE-DE_YANNICK", "TTS_EN-GB_DANIEL", "TTS_EN-GB_SERENA", "TTS_FR-FR_AUDREY", "TTS_FR-FR_SEBASTIEN", "TTS_FR-FR_THOMAS", "TTS_FR-FR_VIRGINIE", "TTS_IT-IT_PAOLO", "TTS_IT-IT_SILVIA", "TTS_NL-BE_ELLEN", "TTS_NL-NL_CLAIRE", "TTS_NL-NL_XANDER"
NO
options object TTS Options (speech rate...). Send NULL to use default values.
Object: Media.TTS.Options
YES

Result

Type Description Format/Object
bool Always TRUE, throws an Exception otherwise.