vinibgoulart / wpp-playground

Whatsapp playground
35 stars 15 forks source link

feat: add transcript audio command #42

Closed mauvieira closed 5 months ago

mauvieira commented 5 months ago

Audio Transcription using OpenAI

Transcription of quoted audio messages in WhatsApp using the Whisper API from OpenAI. The transcription is supported for various audio formats and is integrated into the existing middleware architecture.

Usage

The transcription process is triggered when a user quotes an audio message using the command !transcript The bot downloads the quoted audio, saves it, transcribes it using the Whisper API, and replies with the transcribed text.