Тёмный

SaraKIT - Text To Speech with Piper on Raspberry Pi 

SaraAI
Подписаться 331
Просмотров 690
50% 1

Text To Speech with SaraKIT
After scouring the internet for the best current offline, fast, and easy-to-install option, Piper stands out as the top choice (if you find something better, please let us know).
SaraKIT is equipped with three microphones and a specialized sound processor that cleans voice audio and supports speech recognition on Raspberry Pi from distances up to 5 meters, as described in our "speech-recognition" section. However, to complete the setup, we now turn our attention to text-to-speech (TTS) processing, which can be incredibly useful for building voice assistants, talking devices, or integrating with Home Automation (HA) systems. While the best TTS systems currently available are online services like ElevenLabs (paid) which offers top-notch voice quality, or Google Text to Speech (detailed in a separate section), here we focus on offline text-to-speech processing.
Piper is fast, generates high-quality voice in real-time, and is optimized for Raspberry Pi 4. Although its installation is straightforward, I have further simplified it for you, and a demo with a description is provided below.
You can test Piper at:
rhasspy.github.io/piper-samples
Below is the text to speech script in your chosen language, available at
github.com/SaraEye/SaraKIT-Te... :
#include "lib/piper/piperclass.hpp"
int main() {
//Choose your language and voice
piper::PiperClass piper("lib/piper/models/en/amy/en_US-amy-medium.onnx", "lib/piper/lib/espeak-ng-data");
while (true) {
string text;
cout // "Enter the text to synthesize : ";
getline(cin, text);
piper.say(text);
}
return 1;
}
sarakit.saraai.com/

Наука

Опубликовано:

 

29 фев 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Yeni Özbək Mahnisi Yoxsa Vefali Reqsi? 😍
00:36
Просмотров 2,3 млн
Local Piper TTS Training (Using WSL)
11:55
Просмотров 3,3 тыс.
SaraKIT Short History
1:46
Просмотров 303
12 NEW Raspberry Pi Projects you must try!!!
8:38
Просмотров 538 тыс.
The Top 10 Best AI Voice Generators 2024
12:33
Просмотров 582 тыс.
Choose a phone for your mom
0:20
Просмотров 6 млн