From 5de24d8cbdc7e7d0afd5ffea801dfd7f37b96d9a Mon Sep 17 00:00:00 2001 From: Antoine Cadotte Date: Wed, 18 Dec 2024 13:34:49 -0500 Subject: [PATCH] Update command.cpp (go back to logs_folder) --- examples/command/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/command/command.cpp b/examples/command/command.cpp index 1c4c2fc7822..8d012e0cdaa 100644 --- a/examples/command/command.cpp +++ b/examples/command/command.cpp @@ -697,7 +697,7 @@ int process_general_transcription(struct whisper_context * ctx, audio_async & au std::string file_name = std::string(timestamp) + ".wav"; std::string logs_folder = get_logs_folder(); std::string filepath = logs_folder + "/" + file_name; - wavWriter.open("logs/output.wav", WHISPER_SAMPLE_RATE, 16, 1); + wavWriter.open(filepath, WHISPER_SAMPLE_RATE, 16, 1); wavWriter.write(pcmf32_cur.data(), pcmf32_cur.size()); wavWriter.close(); transcription_json =