Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.32 KB

README.md

File metadata and controls

39 lines (26 loc) · 1.32 KB

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.