See here for chinese version of readme.
Line provides voice message which can be transmitted without typing any text. But this type of message is not very convenient for message receiver. There are serveral reasons as follows:
- For instance, if you are in a metting or in school, you can not understand those voice messages because you can not play those voice messages.
- Although voice message is very convenient for message sender, but for message receiver, voice message spends lots of time to get the content(you must repeat it again).
So TranslatedPudding(翻譯布丁), a line chatbot is created to help you translate voice msg to text message.
This project's name is inspired by 都拉A夢-翻譯蒟蒻, just because I like eat pudding more than konjac:|
The chatbot service is not open yet(maybe will open in the feature), but I provide source codes and you can deploy TranslatedPudding any modify it by youself(see below).
When deployment is finish, just add this chatbot into any group and then use it!
In this chatbot, you can typing three keyword to open/close translation service, or see helping message:
翻譯布丁
: show what keywords you can use.吃下翻譯布丁
: open translation service.布丁消化完了
: close translation service.
btw, when translation mode is on, there exist some easter egg to make funny(try to send some sticker message!)
After open translation service, anyone in the group can send voice message and TranslatedPudding will help you transfer to text message automatically. If you don't want to use this service, just type '布丁消化完了' and close service.
I deploy this chatbot on Heroku now, of course you can also deploy on your own service.
- Python
- Line messaging api, flask, SpeechRecognition, pydub, ffprobe, ffmpeg
I will write a blog to describe this project in detail...if I still remember:|