...
Overview
SmartBody is responsible for acquiring the audio that is associated with a character utterance. This audio is then preferably played back by the game engine, but it can also be played back by SmartBody itself. To acquire the audio, SmartBody can either:
- read in an existing prerecorded speech audio file
- send a request to a text-to-speech engine
This document focuses on the latter.
SmartBody will send a RemoteSpeechCmd message to the TtsRelay module, requesting for a line of text to be converted into audio. The message contains what voice to use and where to put the generated file. TtsRelay will send back a RemoteSpeechCmd message, containing the exact file location, a viseme schedule with detailed timing information for lip-synching and word boundary timing information for synchronization of nonverbal behavior as specified through BML.
TTS Engines
Rhetorical (RVoiceRelay)
Voice Codes:
set character doctor voice remote M021 <- Saso Doctor's voice
set character elder voice remote M009 <- Saso Elder's voice
...
Voice Codes:
set character doctor voice remote BradVoice
RemoteSpeech Interface
To trigger a TTS call:
No Format |
---|
sbm bml char doctor speech "Hello world. Testing Text to Speech" |
...