Skip to content

paratustra/audio-transcription-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audio Transcription WhatsApp Bot

A simple Flask application that allows users to send audio messages through WhatsApp and receive the transcribed text as a response, using OpenAI’s Whisper.

Prerequisites

Setup

  1. Clone this repository and navigate to the project directory.
  2. Install the required packages using pip:

pip install -r requirements.txt

  1. Set up a Twilio account and WhatsApp API sandbox.
  2. Create a file named .env in the root of the project directory and set the following environment variables:
ACCOUNT_SID=YOUR_TWILIO_ACCOUNT_SID
AUTH_TOKEN=YOUR_TWILIO_AUTH_TOKEN
FROM=YOUR_TWILIO_PHONE_NUMBER
  1. Run the application
  2. Expose the application using ngrok:

ngrok http 5000

  1. Make sure to follow the instructions in the Twilio documentation to set up your sandbox phone number and configure the webhook for incoming messages.

Usage

  1. Send an audio message to the configured sandbox phone number through WhatsApp.
  2. The application will transcribe the audio and send the transcribed text back as a response.

About

Audio Transcription WhatsApp Bot using Whisper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages