Transcription¶
Using listen to perform speech-to-text tasks
PromptScript currently supports audio transcription using OpenAI’s Whisper
through the listen keyword.
Syntax¶
listen file_path, api_key
Parameters
file_path (str: required): File to transcribe.
api_key (str: required): OpenAI API key.
Output
str: Transcribed text.
Note
The following file formats are supported: .mp3, .mp4, .wav, .mpeg, .mpga, .webm