Make Your Raspberry Pi Speak!
장점: 오프라인 TTS
단점: 로보틱 사운드
예제: 입력되는 숫자로부터 카운트 다운
목소리, 속도,언어,젠더 변경
준비물: 라즈베리파이
sd카드
파워
와이파이 동글
https://www.dexterindustries.com/howto/make-your-raspberry-pi-speak/
https://github.com/DexterInd/Raspberry_Pi_Speech
Introduction: Make Your Raspberry Pi Speak!
Sometimes your robot just wants to talk! This tutorial will show you how to make your Raspberry Pi speak aloud. We will use a software package called Espeak to convert text (or strings) into spoken words, out loud, on your robot. We show you three examples:
- How to create a countdown.
- How to modify the voice.
- Modify the voice for speed, language, and gender.
aplay /usr/share/sounds/alsa/*
sudo apt-get install espeak
espeak "Text you wish to hear back" 2>/dev/null
https://github.com/DexterInd/Raspberry_Pi_Speech
sudo pip3 install num2words
sudo python3 speak_count.py
pi@raspberrypi:~/Raspberry_Pi_Speech-master $ sudo python3 speak_count.py
Enter a number: 3
three Count Down Starts
3
2
1
0
pi@raspberrypi:~/Raspberry_Pi_Speech-master $ sudo python3 speak_text.py
Enter the Text: twinkle twinkle little stars
twinkle twinkle little stars
pi@raspberrypi:~/Desktop $ aplay Text.wav
Playing WAVE 'Text.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
pi@raspberrypi:~ $ espeak -ven-us "Welcome to raspbian tutorial" 2>/dev/null
pi@raspberrypi:~ $ espeak -vfr "Ce tutoriel de raspbian vous souhaite la bienvenue" 2>/dev/null
pi@raspberrypi:~ $ espeak -ves "Bienvenido al tutorial de raspbian" 2>/dev/null
pi@raspberrypi:~ $ espeak -ven+m5 "Welcome to raspbian tutorial" 2>/dev/null
pi@raspberrypi:~ $ espeak -ven+f4 "Welcome to raspbian tutorial" 2>/dev/null
pi@raspberrypi:~ $ espeak -ven+whisper "Welcome to raspbian tutorial" 2>/dev/null
pi@raspberrypi:~ $ espeak -s250 "Welcome to raspbian tutorial" 2>/dev/null
pi@raspberrypi:~ $ espeak -s80 "Welcome to raspbian tutorial" 2>/dev/null
pi@raspberrypi:~ $ espeak -g10 "Welcome to raspbian tutorial" 2>/dev/null
pi@raspberrypi:~ $ espeak -g180 "Welcome to raspbian tutorial" 2>/dev/null
댓글
댓글 쓰기