It just like the say command in Mac OSX, but born to be much powerful. We used Baidu Yuyin as the TTS engine. You need to have network access to use this tool. The pronunciation of Chinese is much better than English. Generally this could be a tool to help you to learn Chinese or English.
go get -u github.com/wahyd4/say-itsay-it "Hello 世界"
say-it -p 3 "春晓 孟浩然 春眠不觉晓,处处闻啼鸟。夜来风雨声,花落知多少。"
say-it -p 4 "Life is like riding a bicycle. To keep your balance, you must keep moving. ― Albert Einstein"
say-it --help
Due to Baidu Yuyin's limit, right now we only support Chinese and English.
This is package is developed and tested against under macOS Sierra and Windows 10, For windows user please make sure download cmdmp3 and add it to PATH environment.
For macOS user we used afplay which is already installed by default, so you don't need to anything.
Currently we don't have plan to support Linux
afplaycmdmp3c:/cmdmp3PATH environment variable by adding ;c:/cmdmp3 to the end.cmdmp3, if there is some outputs contains cmdmp3 v2.0. Congratualtions, all done!say-it by downloading the binary, then you can make the say-it to be globally executable just do some works like this.MIT