set language how the api wants it
This commit is contained in:
parent
2a3615226e
commit
3889c80509
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ async fn transcribe_call(file_path: &Path) -> Result<CreateTranscriptionResponse
|
|||
};
|
||||
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")
|
||||
.language("English")
|
||||
.language("en")
|
||||
.response_format(AudioResponseFormat::Text)
|
||||
.model("whisper-1")
|
||||
.file(audio_input)
|
||||
|
|
|
|||
Loading…
Reference in a new issue