>
|
7.1 How It All Works
Here is a brief explanation of the connection between
‘voice-bolden’ and its associated ‘voice-bolden-settings’.
- Voice settings are initially in ‘voice-bolden-settings’ which is a list
of numbers.
- That list of numbers needs to be translated to appropriate
device-specific codes to send to the TTS engine.
- You do not want to do this translation each time you
speak something.
- So when ‘voice-bolden’ is defined, the definition happens in
two steps:
- The list of settings is stored away in
‘voice-bolden-settings’,
- A corresponding voice-name is generated —
‘acss-a<n>-p<n>-r<n>-s<n>’ and the corresponding control codes to
send to the device are stored away in a hash-table keyed by the above symbol.
- Finally, ‘voice-bolden’ is assigned the above symbol.