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+m3
Represents another English male-ven+f1
English female. You can also try pronunciation in other languages. Run the following command to view the list of Supported languages:
espeak --voices
Note that many non-English languages are still in the experimental stage.
You can use-w
Option:
espeak -w out.wav "Audio file test"
Espeak can also read the file content.
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:
echo "Backup completed" | espeak -s 160 -a 100 -g 4
If an error occurs in the log file:
tail -1F /your/log/file | grep --line-buffered 'ERROR' | espeak
Alternatively, you can create a time clock, which is reported once every minute:
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