1. install stardict in Ubuntu12.04. You need a dictionary and a speech Dictionary (I used a 14 W pronunciation library on the Internet. install the Speech engine/usr/share/WyabdcRealPeopleTTS/usr/share/OtdRealPeopleTTS3. install mpg321 to play the mp3-format word speech file sudoapt-getinstall
1. Install stardict in Ubuntu 12.04. You need a dictionary and a speech Dictionary (I use a vocabulary pronunciation library on the Internet)
2. Install the voice Engine
/Usr/share/wyabdcrealreceivletts
/Usr/share/otdrealw.letts
3. Install mpg321 for playing mp3-format word audio files
Sudo apt-get install mpg321
4. script/data/depot/utils/shell/myespeak
Modify the script permission chmod 755/data/depot/utils/shell/myespeak
- #! /Bin/sh
- Stardict_path = "/win/c/edward/dic_sound"
- Until [-z "$1"]
- Do
- Lowerword = 'echo "$1" | tr A-Z a-Z'
- Firstchar = 'expr substr "$ lowerword" 1 1'
- Case $ firstchar in
- [0-9]) firstchar = 0 ;;
- Esac
- Mp3_file = "$ stardict_path/$ firstchar/$1_11_success"
- If [-e "$ mp3_file"]; then
- Mpg321 "$ mp3_file"
- Else
- Espeak "$1"
- Fi
- Shift
- Done
- Exit 0
5. Set stardict
6. Restart the dictionary.