diff --git a/src/main.rs b/src/main.rs index 1d08aa5..5d6447e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -406,15 +406,15 @@ fn main() -> Result<(), Box> { } }; - if let Some(last_char) = transcription.chars().last() { - if last_char != '.' - && last_char != '?' - && last_char != '!' - && last_char != ',' - { - transcription.push('.'); - } - } + // if let Some(last_char) = transcription.chars().last() { + // if last_char != '.' + // && last_char != '?' + // && last_char != '!' + // && last_char != ',' + // { + // transcription.push('.'); + // } + // } transcription.push(' '); enigo.key_sequence(&transcription); diff --git a/src/transcribe.rs b/src/transcribe.rs index 3a20211..1eeb79c 100644 --- a/src/transcribe.rs +++ b/src/transcribe.rs @@ -67,6 +67,7 @@ pub mod trans { let request = CreateTranscriptionRequestArgs::default() .file(input_mp3) .model("whisper-1") + .prompt("And now, a transcription from random language(s) that concludes with perfect punctuation: ") .build() .context("Failed to build transcription request.")?;