Added the pronunciation function for your Fedora system | Linux China, fedoralinux

Source: Internet
Author: User
Tags amazon alexa

Added the pronunciation function for your Fedora system | Linux China, fedoralinux
By default, the Fedora workstation has a small software called espeak. It is a sound synthesizer, that is, software that converts text into sound. -- Alessio Ciregia


In the navigation bar of this article, run espeak22 % compiled from | https://fedoramagazine.org/add-speech-fedora-system/
Author | Alessio Ciregia
Translator | lujun9972

By default, the Fedora workstation has a small software called espeak. It is a sound synthesizer, that is, software that converts text into sound.

In today's world, pronunciation devices are already quite common. Sound synthesizer is available on smartphones, Amazon Alexa, and even the bulletin board of the railway station. Moreover, the synthesis sound is similar to the human voice. We live in 80 bandaid sci-fi movies!

Compared with the tools mentioned above, espeak sounds a little primitive. However, in the end, espeak can produce a good pronunciation effect. And whether you think it is useful or not, at least it can bring you some fun.

Run espeak

You can set various parameters in the Command Behavior espeak. Including:

Amplitude ( -a) Pitch adjustment ( -p) Speed of sentence reading ( -s) Pause between words ( -g)

Each option has a different effect. You can adjust them to make the pronunciation clearer.

You can also use the command line option to select different audios. For example,-ven+m3Represents another English male-ven+f1English female. You can also try pronunciation in other languages. Run the following command to view the list of Supported languages:

 
  1. espeak --voices

Note that many non-English languages are still in the experimental stage.

You can use-wOption:

 
  1. espeak -w out.wav "Audio file test"

Espeak can also read the file content.

 
  1. espeak -f plaintextfile

You can also pass the text to be pronounced using standard input. To give a simple example, you can create a pronunciation box and use the sound to notify you when an event occurs. Is your backup complete? Add the following command to the final result of the script:

 
  1. echo "Backup completed" | espeak -s 160 -a 100 -g 4

If an error occurs in the log file:

 
  1. tail -1F /your/log/file | grep --line-buffered 'ERROR' | espeak

Alternatively, you can create a time clock, which is reported once every minute:

 
  1. while true; do date +%S | grep '00' && date +%H:%M | espeak; sleep 1; done

You will find that the use of espeak is limited only by your imagination. Enjoy your ora system!

Via: https://fedoramagazine.org/add-speech-fedora-system/

Author: Alessio Ciregia [2] Translator: lujun9972 Proofreader: wxy

This article was originally compiled by LCTT and launched with the honor of Linux in China

LCTT translator lujun9972? ? ? ? Total Translation: 51 contributions: 39 days

Recommended articles

<Slide left and right to view related articles>

Click an image, enter the Document ID, or identify the QR code.

For the original text link, visit "Original Text Link" to obtain the link that can be clicked, full-size source images, and related articles.



Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger. Http://blog.csdn.net/F8qG7f9YD02Pe/article/details/78988321

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.