set language how the api wants it

This commit is contained in:
Christopher Moyer 2024-12-18 20:40:34 -05:00
parent 2a3615226e
commit 3889c80509

View file

@ -127,7 +127,7 @@ async fn transcribe_call(file_path: &Path) -> Result<CreateTranscriptionResponse
}; };
let request = CreateTranscriptionRequestArgs::default() let request = CreateTranscriptionRequestArgs::default()
.prompt("This is a public safety radio transmission. The speakers could be any of the following communicating between each other: dispatcher, law enforcement officer, fire fighter, or emergency medical services") .prompt("This is a public safety radio transmission. The speakers could be any of the following communicating between each other: dispatcher, law enforcement officer, fire fighter, or emergency medical services")
.language("English") .language("en")
.response_format(AudioResponseFormat::Text) .response_format(AudioResponseFormat::Text)
.model("whisper-1") .model("whisper-1")
.file(audio_input) .file(audio_input)