We should initialize current_voice_id so that ssml processing knows what voice we currently have, and not try to change it unless really needed.master
xml_buf[n_xml_buf] = 0; | xml_buf[n_xml_buf] = 0; | ||||
c2 = ' '; | c2 = ' '; | ||||
if (base_voice.identifier) | |||||
strcpy(current_voice_id, base_voice.identifier); | |||||
terminator = ProcessSsmlTag(xml_buf, buf, &ix, n_buf, xmlbase, &audio_text, current_voice_id, &base_voice, base_voice_variant_name, &ignore_text, &clear_skipping_text, &sayas_mode, &sayas_start, ssml_stack, &n_ssml_stack, &n_param_stack, (int *)speech_parameters); | terminator = ProcessSsmlTag(xml_buf, buf, &ix, n_buf, xmlbase, &audio_text, current_voice_id, &base_voice, base_voice_variant_name, &ignore_text, &clear_skipping_text, &sayas_mode, &sayas_start, ssml_stack, &n_ssml_stack, &n_param_stack, (int *)speech_parameters); | ||||
if (terminator != 0) { | if (terminator != 0) { |
hˈɪɹ ɑː͡ɹ ðə pˈæswɜːdz | hˈɪɹ ɑː͡ɹ ðə pˈæswɜːdz | ||||
juː hæv fˈɔː͡ɹ nˈuː mˈɛsɪd͡ʒᵻz | juː hæv fˈɔː͡ɹ nˈuː mˈɛsɪd͡ʒᵻz | ||||
ðə fˈɜːst ɪz fɹʌm stˈɛfəni wˈɪljəmz ænd ɚɹˈa͡ɪvd æt | ðə fˈɜːst ɪz fɹʌm stˈɛfəni wˈɪljəmz ænd ɚɹˈa͡ɪvd æt |