New feature request: Text-to-speech (TTS) Solved! #181
Replies: 2 comments 2 replies
-
I have managed to install Piper and it works when running from the command prompt. I really would like to have some help from somebody knowing Python or PHP to implement the following string taken from the Piper instructions into the BirdNET-Pi code. Instead of 'Welcome to the world of speech synthesis!' the last detected species should be filled in, for example 'Blackbird'. Please note the species name must be surrounded by single quotation marks according to the Piper syntax. The updated string should then be sent to Piper as a command.
I have spent some hours with this trying to create a terminal command, but have zero Python skills and just get syntax errors or no response from Piper. If I get this working I will of course write down instructions here. Thanks! |
Beta Was this translation helpful? Give feedback.
-
With a little help from ChatGPT with changing the code and writing instructions, I have solved the problem. I've tested it outdoors and it works just fine. Installation Guide for Raspberry PiStep 1: Update and Reboot the System
Step 2: Install pip
Step 3: Install Piper
Step 4: Install BirdNET-Pi
Step 5: Create a Directory for TTS
Step 6: Download Piper Language Files
Step 7: Modify the Code in
|
Beta Was this translation helpful? Give feedback.
-
It would be nice to have a text-to-speech feature so you can hear what species have been detected. For me, it is interesting to be able to have detected species read out in headphones when you are out walking. The idea is to have the RPi computer connected to a power bank to make it portable and this I have tried and it works. The requirement then is that the text-to-speech function works offline. Another requirement is that it supports as many languages as possible (Swedish for me). After a quick look on the internet I found the program Piper which seems to meet the requirements and is also open source and free. It is based on Python, which is already installed.
I have previously expressed this wish for species readings to the BirdWeather PUC and Merlin teams, but no feedback so far. It would be nice if BirdNET-Pi could be first and the solution shouldn't be too complicated.
The program Piper itself should be easy to install yourself with the language you want. What needs to be done in the code for BirdNET-Pi is the actual call to Piper of the species name each time a detection occurs.
https://github.com/rhasspy/piper
Beta Was this translation helpful? Give feedback.
All reactions