Skip to content

Commit

Permalink
tweak: always transcribe to original language (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
a5huynh committed May 28, 2023
1 parent c651a84 commit 9585bdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/spyglass-processor/src/parser/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ pub fn transcibe_audio(
res.metadata = Some(audio_file.metadata);

let mut params = FullParams::new(SamplingStrategy::default());
// Also transcribe to original language
params.set_language(Some("auto"));
params.set_max_len(segment_len);
params.set_print_progress(false);
params.set_token_timestamps(true);
Expand Down

0 comments on commit 9585bdc

Please sign in to comment.