- similar to Mac's say
- install vlc player
sudo apt-get install vlc
- install python3 and required librarys
python3 -m pip install -r requirements.txt
- write a conf.json file in the same directory as file "say"
cp conf_sample.json conf.json
- replace the key and secret of yours, which can be obtained from baidu here.
"api_key" : "your api key",
"api_secret" : "your api secret",
"file_name" : "out.mp3", temp file used to save data
"per" : 0, person from 0 to 5, to choose the voice type
"speed" : 4
./say text1 text2 ...
you can link it to bin directory
ln -s `pwd`/say ~/.local/bin/say
# now you can call say
say text1 text2 ...