Skip to content
Discussion options

You must be logged in to vote

The confusion makes sense once you know that $VOICE isn't a shell variable at all — it's a placeholder that speech-dispatcher substitutes into the command string before handing it to the shell. Its generic module does a plain literal text replacement over the GenericExecuteSynth line, one token at a time:

e_string = string_replace(e_string, "$LANGUAGE", ...);
e_string = string_replace(e_string, "$PUNCT", generic_msg_punct_str);
if (generic_msg_voice_str != NULL)
    e_string = string_replace(e_string, "$VOICE", generic_msg_voice_str);
else {
    char *default_voice = module_getdefaultvoice();
    if (!default_voice)
        default_voice = "no_voice";
    e_string = string_replace(e_string, 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ysalmon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants