GTTS Installation
## Install python and use npm install google TTS
npm install -g gtts
## Install mplayer - Debian
sudo apt-get install mplayer
## Install mplayer - CentOS
yum install epel-release
rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
yum install mplayer
## Insall mplayer - MacOSX
brew install mplayer
## Make "tty.sh" the script to run, eg : tts.sh hello
#!/bin/bash
tmp="/tmp/tmp.wav"
gtts $1 -l zh-tw -o $tmp
mplayer $tmp >/dev/null 2>&1 &
Server is hosted by Alanstudio
Linux Operating System
Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.
|