whisper : rename binaries + fix install (#2648)

* whisper : rename binaries + fix install

* cont : try to fix ci

* cont : fix emscripten builds
This commit is contained in:
Georgi Gerganov
2024-12-21 09:43:49 +02:00
committed by GitHub
parent e4e05981d6
commit 2e59dced12
44 changed files with 172 additions and 3935 deletions

View File

@ -677,7 +677,8 @@ int main(int argc, char ** argv) {
if (sparams.ffmpeg_converter) {
// if file is not wav, convert to wav
// write to temporary file
const std::string temp_filename_base = std::tmpnam(nullptr);
//const std::string temp_filename_base = std::tmpnam(nullptr);
const std::string temp_filename_base = "whisper-server-tmp"; // TODO: this is a hack, remove when the mutext is removed
const std::string temp_filename = temp_filename_base + ".wav";
std::ofstream temp_file{temp_filename, std::ios::binary};
temp_file << audio_file.content;
@ -711,7 +712,6 @@ int main(int argc, char ** argv) {
}
}
printf("Successfully loaded %s\n", filename.c_str());
// print system information