Fix calling espeak_Synth without first setting a voice, with tests.

This commit is contained in:
Reece H. Dunn
2017-05-21 10:47:47 +01:00
parent 6ab1314843
commit ae6116bf97
3 changed files with 94 additions and 1 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ static espeak_ng_STATUS Synthesize(unsigned int unique_identifier, const void *t
count_samples = 0;
if (translator == NULL)
espeak_SetVoiceByName("default");
espeak_SetVoiceByName("en");
if (p_decoder == NULL)
p_decoder = create_text_decoder();