Set StarDict pronunciation in Ubuntu12.04

Source: Internet
Author: User
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

  1. #! /Bin/sh
  2. Stardict_path = "/win/c/edward/dic_sound"
  3. Until [-z "$1"]
  4. Do
  5. Lowerword = 'echo "$1" | tr A-Z a-Z'
  6. Firstchar = 'expr substr "$ lowerword" 1 1'
  7. Case $ firstchar in
  8. [0-9]) firstchar = 0 ;;
  9. Esac
  10. Mp3_file = "$ stardict_path/$ firstchar/$1_11_success"
  11. If [-e "$ mp3_file"]; then
  12. Mpg321 "$ mp3_file"
  13. Else
  14. Espeak "$1"
  15. Fi
  16. Shift
  17. Done
  18. Exit 0

5. Set stardict

6. Restart the dictionary.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.