File size: 243 Bytes
873d0cf
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
try:
    from ...llm import *
except ImportError:
    from llm import *


def stt_openai(audio_file):
    transcription = get_client().audio.transcriptions.create(
        model="whisper-1", file=audio_file
    )
    return transcription.text