Fix the return status code from Synthesize when the voices cannot be found.

This commit is contained in:
Reece H. Dunn
2017-08-19 12:27:39 +01:00
parent 882c2651e1
commit 8585b0b47d
3 changed files with 71 additions and 2 deletions
+1 -1
View File
@@ -400,7 +400,7 @@ static espeak_ng_STATUS Synthesize(unsigned int unique_identifier, const void *t
espeak_ng_STATUS status;
if (translator == NULL) {
status = espeak_SetVoiceByName("en");
status = espeak_ng_SetVoiceByName("en");
if (status != ENS_OK)
return status;
}