mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-16 11:09:55 +02:00
minor
This commit is contained in:
@ -13,5 +13,5 @@
|
|||||||
#
|
#
|
||||||
wd=$(dirname $0)
|
wd=$(dirname $0)
|
||||||
script=$wd/eleven-labs.py
|
script=$wd/eleven-labs.py
|
||||||
python3 $script $1 "$2"
|
python3 $script $1 "$2" >/dev/null 2>&1
|
||||||
ffplay -autoexit -nodisp -loglevel quiet -hide_banner -i ./audio.mp3
|
ffplay -autoexit -nodisp -loglevel quiet -hide_banner -i ./audio.mp3 >/dev/null 2>&1
|
||||||
|
@ -317,6 +317,8 @@ int main(int argc, char ** argv) {
|
|||||||
printf("%s%s", params.person.c_str(), chat_symb.c_str());
|
printf("%s%s", params.person.c_str(), chat_symb.c_str());
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
|
audio.clear();
|
||||||
|
|
||||||
const int n_keep = embd_inp.size();
|
const int n_keep = embd_inp.size();
|
||||||
const int voice_id = 2;
|
const int voice_id = 2;
|
||||||
|
|
||||||
@ -490,6 +492,7 @@ 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());
|
system((params.speak + " " + std::to_string(voice_id) + " \"" + text_to_speak + "\"").c_str());
|
||||||
|
|
||||||
audio.clear();
|
audio.clear();
|
||||||
|
Reference in New Issue
Block a user