module pixeltable.functions.whisper
Pixeltable UDFs that wraps the OpenAI Whisper library. This UDF will cause Pixeltable to invoke the relevant model locally. In order to use it, you must firstpip install openai-whisper.
udf transcribe()
Signature
transcribe function, as described in the
Whisper library documentation.
Requirements:
pip install openai-whisper
audio(pxt.Audio): The audio file to transcribe.model(pxt.String): The name of the model to use for transcription.
WhisperTranscription: AWhisperTranscriptiondictionary with the transcription’s text, segments, and language.
base.en to an existing Pixeltable column tbl.audio
of the table tbl:
String column with the transcription’s text: