mmaks17 / whatsapp-audiobot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This chatbot download audio messages from whatsapp chat, translate it and reply text message

vktoken - token from https://mcs.mail.ru/app/mcs2676925534/services/machinelearning/voice/access/

yatoken - token from https://cloud.yandex.ru/docs/iam/concepts/authorization/api-key

  • enable in your phone dev feature multi login
  • first run app and render qr code echo 2@... | qrencode -t ansiutf8 in a terminal and scan it

example run

export vktoken="<yor_mcs_token>"
export VOICE_MODEL="MAILRU" 

or

export yatoken=<your_yandex_token>
export VOICE_MODEL="YANDEX"

or

export vktoken=<your_mcs_token>
export yatoken=<your_yandex_token>

go mod tidy go build ./wh-audiobot

you can build image 

docker build -t wh-audio . docker run -it -v ./examplestore.db:/app/examplestore.db -e vktoken= -e yatoken= -e VOICE_MODEL=YANDEX wh-audio



easy kill 

ps -aux | grep "whatsapp-audiobot" | grep -v "grep " | awk {'print $2'} | xargs kill -9 nohup ./whatsapp-audiobot &

  
  

About

License:Other


Languages

Language:Go 90.4%Language:Dockerfile 9.6%