Skip to content

Commit

Permalink
Update command.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadotte authored Dec 17, 2024
1 parent f835a8c commit 25ce0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/command/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 25ce0cf

Please sign in to comment.