Convert a message received via WhatsApp into a text (Text-to-speech)
Create environment variables in your .env file
TWILIO_ACCOUNT_SID=YOUR_SID
TWILIO_AUTH_TOKEN=YOUR_TOKEN
OPEN_AI_APY_KEY=YOUR_OPEN_AI_KEY
OPEN_AI_URL=https://api.openai.com/v1/audio/transcriptionsUse below command to run locally
make runAnd for you to test it integrated with WhatsApp, you will need to expose this local address, to an address that is accessible via the internet.
To do this, you can use some tools like:
localtunnel is simpler, and for this test scenario it is sufficient. To get the accessible DNS from the internet just run:
lt -p 8080For more details, access this medium link to the complete step-by-step article on how the code was built.
- Unit tests
- Refactor to remove coupling of Gin usage in some files
Distributed under MIT License, please see license file in code for more details.
