Skip to content

Commit

Permalink
bump v0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Oct 20, 2023
1 parent 5caf95e commit 3ebef85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
},
"name": "obs-localvocal",
"version": "0.0.4",
"version": "0.0.5",
"author": "Roy Shilkrot",
"website": "https://github.com/obs-ai/obs-localvocal",
"email": "[email protected]",
Expand Down
6 changes: 3 additions & 3 deletions src/transcription-filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void set_text_callback(struct transcription_filter_data *gf, const DetectionResu
if (gf->caption_to_stream) {
obs_output_t *streaming_output = obs_frontend_get_streaming_output();
if (streaming_output) {
obs_output_output_caption_text1(streaming_output, result.text.c_str());
obs_output_output_caption_text1(streaming_output, str_copy.c_str());
obs_output_release(streaming_output);
}
}
Expand All @@ -231,7 +231,7 @@ void set_text_callback(struct transcription_filter_data *gf, const DetectionResu
// Write raw sentence to file, do not append
std::ofstream output_file(gf->output_file_path,
std::ios::out | std::ios::trunc);
output_file << result.text << std::endl;
output_file << str_copy << std::endl;
output_file.close();
} else {
obs_log(gf->log_level, "Saving sentence to file %s, sentence #%d",
Expand Down Expand Up @@ -260,7 +260,7 @@ void set_text_callback(struct transcription_filter_data *gf, const DetectionResu
format_ts_for_srt(result.end_timestamp_ms);
output_file << std::endl;

output_file << result.text << std::endl;
output_file << str_copy << std::endl;
output_file << std::endl;
output_file.close();
gf->sentence_number++;
Expand Down

0 comments on commit 3ebef85

Please sign in to comment.