Skip to content

Commit

Permalink
Remove old, deprecated audio message transcription method
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjum committed Dec 2, 2023
1 parent 5707573 commit f7e8816
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/flint/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def transcribe_audio_message(audio_url: str, uuid: str, logger: Logger) -> str:
try:
# Read the audio message from MP3
with open(audio_message_file, "rb") as audio_file:
transcribed = openai.Audio.translate(model="whisper-1", file=audio_file)
# Call the OpenAI API to transcribe the audio using Whisper API
transcribed = openai.audio.translations.create(
model="whisper-1",
Expand Down

0 comments on commit f7e8816

Please sign in to comment.