examples : fix build + compile warnings (close #1256)

This commit is contained in:
Georgi Gerganov
2023-09-07 12:33:12 +03:00
parent aed5d40607
commit 2818de21ff
7 changed files with 29 additions and 24 deletions

View File

@ -649,7 +649,10 @@ int main(int argc, char ** argv) {
}
text_to_speak = ::replace(text_to_speak, "\"", "");
system((params.speak + " " + std::to_string(voice_id) + " \"" + text_to_speak + "\"").c_str());
int ret = system((params.speak + " " + std::to_string(voice_id) + " \"" + text_to_speak + "\"").c_str());
if (ret != 0) {
fprintf(stderr, "%s: failed to speak\n", __func__);
}
audio.clear();