Skip to content

Convert a message received via WhatsApp into a text (Text-to-speech)

License

Notifications You must be signed in to change notification settings

amalheiros/transcriber-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transcriber-bot

Convert a message received via WhatsApp into a text (Text-to-speech)

Transcriber

Usage and documentation

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/transcriptions

Use below command to run locally

make run

And 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 8080

For more details, access this medium link to the complete step-by-step article on how the code was built.

TODO

  • Unit tests
  • Refactor to remove coupling of Gin usage in some files

License

Distributed under MIT License, please see license file in code for more details.

About

Convert a message received via WhatsApp into a text (Text-to-speech)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published