mirror of
https://github.com/QuentinFuxa/WhisperLiveKit.git
synced 2026-03-07 22:33:36 +00:00
fixes
This commit is contained in:
committed by
Tijs Zwinkels
parent
f8b2ae07b8
commit
2270014219
@@ -221,9 +221,9 @@ class OpenaiApiASR(ASRBase):
|
||||
"temperature": self.temperature
|
||||
}
|
||||
if self.task != "translate" and self.language:
|
||||
transcription_params["language"] = self.language
|
||||
params["language"] = self.language
|
||||
if prompt:
|
||||
transcription_params["prompt"] = prompt
|
||||
params["prompt"] = prompt
|
||||
|
||||
if self.task == "translate":
|
||||
proc = self.client.audio.translations
|
||||
@@ -233,7 +233,7 @@ class OpenaiApiASR(ASRBase):
|
||||
# Process transcription/translation
|
||||
|
||||
transcript = proc.create(**params)
|
||||
print(f"OpenAI API processed accumulated {self.transcribed_seconds} seconds ",file=self.logfile)
|
||||
print(f"OpenAI API processed accumulated {self.transcribed_seconds} seconds",file=self.logfile)
|
||||
|
||||
return transcript.segments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user