RemoteSpeechCmd

RemoteSpeechCmd speak character-id utterance-id voice-id file-path-name xml-message

Description

Sent from SmartBody to ttsRelay, requesting for a line of text for a character to be turned into an audio file. See this page for a more in-depth overview of TTS protocol.

Parameters

  • character-id, ID of the virtual human (i.e. 'ChrBrad')
  • utterance-id, usually just '1'
  • voice-id, what voice to use
  • file-path-name, where the TTS engine should save the audio file; this is usually a relative path to /data/cache and includes the full file name
  • xml-message, the text to be turned into audio, in XML format (see below for examples)

Examples

RemoteSpeechCmd speak ChrBrad 1 Festival_voice_cmu_us_jmk_arctic_clunits ../../data/cache/audio/utt_20121109_153323_ChrBrad_1.aiff <?xml version="1.0" encoding="utf-16"?><speech id="sp1" ref="Anybody-1" type="application/ssml+xml"><mark name="T0" />Hi
                      	<mark name="T1" /><mark name="T2" />there,
                      	<mark name="T3" /><mark name="T4" />how
                      	<mark name="T5" /><mark name="T6" />are
                      	<mark name="T7" /><mark name="T8" />you.
                      	<mark name="T9" /></speech>

Sending Components

Receiving Components

Related messages