Expand description
§Low-level binding for libspeechd_module
To use this module you must implement at least the following functions as global symbols in your own code and not doing so will result in linking errors (see each function for details):
module_configmodule_initmodule_list_voicesmodule_speakormodule_speak_syncmodule_pausemodule_stopmodule_close
In addition you must also implement the following functions, unless you
compile and link against
module_utils.c
from the speech-dispatcher distribution (again see each function for
details):
Modules§
- audio
- Native audio playback functions
Structs§
Enums§
- Capital
Letters - Capital letter recognition
- Data
Mode - Message
Type - Notification
Type - Priority
- Punctuation
- Punctuation verbosity mode
- Spelling
- Spelling mode enabled
- Voice
Type - Symbolic voice type
Statics§
- module_
stdout_ ⚠mutex - Protects multi-line answers against asynchronous event reporting
Functions§
- module_
audio_ ⚠init - Initialize audio
- module_
audio_ ⚠set - Set audio parameter
- module_
audio_ set_ server - Notify the library that the module will send its audio as wave events
to the server using
module_tts_output_server - module_
close - Called before exit
- module_
config ⚠ - Read the module configuration from the given optional/nullable path, called at startup
- module_
debug ⚠ - Enable or disable debugging into the given file
- module_
init ⚠ - Called after server sends the
INITcommand - module_
list_ voices - List voices
- module_
loglevel_ ⚠set - Set logging subsystem parameter
- module_
loop - Called after init confirmed
- module_
pause - Stop and drop the current utterance, preferably after reaching and
reporting the next
__spd_index mark - module_
process - Process the module input, interpreting the SSIP protocol and calling appropriate module-provided functions
- module_
readline - Read and return one line of input read from the given file descriptor
- module_
report_ event_ begin - Callback to report the start of synthesis
- module_
report_ event_ end - Callback to report finishing synthesis
- module_
report_ event_ pause - Callback to confirm a
module_pauserequest - module_
report_ event_ stop - Callback to confirm a
module_stoprequest - module_
report_ ⚠icon - Callback to report reaching a sound icon
- module_
report_ ⚠index_ mark - Callback to report reaching an index mark
- module_
set ⚠ - Set parameter, see the
SETcommand of section 5.2.2 (“Communication Protocol for Output Modules”) of the speech-dispatcher manual for a list of standard properties - module_
speak ⚠ - Asynchronous speak
- module_
speak_ error - Callback for
module_speak_syncto mark the data as not OK, before returning frommodule_speak_sync - module_
speak_ ok - Callback for
module_speak_syncto confirm the data is OK before actually synthesizing - module_
speak_ ⚠sync - Synchonous speak
- module_
stop - Immediately stop and drop the current utterance
- module_
tts_ ⚠output_ server - Forward an audio chunk to the server