Github push to espeak-ng:espeak-ng #github Integration <espeak-ng@...>

1 New Commit:

[espeak-ng:master] By Juho Hiltunen <jaacoppi@...>:
19e2f697f63a: code cleanup: remove unnecessary current_voice_id in readclause.c

Instead of passing a temporary variable current_voice_id to SSML
processing logic and then copying the value to voice_change, pass
voice_change directly. GetVoiceAttributes() both sets voice_change and
retuns CLAUSE_TYPE_VOICE_CHANGE that is used by TranslateClause() for
error checking.

tests/ssml/language-switch.ssml covers the intended behavior of language
switching and will fail when either voice_change or CLAUSE_TYPE_VOICE_CHANGE
is not set correctly.

Modified: src/libespeak-ng/readclause.c
Modified: src/libespeak-ng/ssml.c

Join to automatically receive all group messages.