get_transcription#

get_transcription(temp_file: str, wav_data: BytesIO) → str[source]#

Retrieve OpenAI Whisper transcription from audio

Parameters:
  • temp_file – Name of temporary file to store audio data

  • wav_data – MP3 audio in io.BytesIO

Returns:

Audio transcription

Return type:

str