From 25ce0cf228a7d5aad3381fdd6d3fe1696af37bd5 Mon Sep 17 00:00:00 2001 From: Antoine Cadotte Date: Tue, 17 Dec 2024 14:51:55 -0500 Subject: [PATCH] Update command.cpp --- 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 4f90ea2dd38..1ec430b50b3 100644 --- a/examples/command/command.cpp +++ b/examples/command/command.cpp @@ -696,7 +696,7 @@ int process_general_transcription(struct whisper_context * ctx, audio_async & au std::strftime(timestamp, sizeof(timestamp), "%Y-%m-%d %H:%M:%S", std::localtime(&t)); std::string file_name = std::string(timestamp) + ".wav"; std::string logs_folder = get_logs_folder(); - std::string filepath = logs_folder + "\" + file_name; + std::string filepath = file_name; wavWriter.open(filepath, WHISPER_SAMPLE_RATE, 16, 1); wavWriter.write(pcmf32_cur.data(), pcmf32_cur.size()); wavWriter.close();