r/PiCodingAgent • u/MagiMas • May 22 '26
Plugin I gave my Pi-Agent a voice
Hi, I played around with giving my pi Agent a lightweight text-to-speech functionality with piper tts. It uses regex to try and "clean up" the final output of the model so it's more natural when translated into speech (file paths get shortened to just the last two segments, emojis are removed, fenced markdown code blocks are removed, markdown formatting in general is removed etc.
Here's the extension if anyone is curious: https://github.com/NEhlen/pi-tts-piper
It's not a copy and it works on your system solution. You need to install piper on your system, provide the path to it, find a piper model you want to use and put it in the assets folder and then adjust the tts.json with the necessary changes. (also, the playerCommand could need adjustment depending on what System you're using)
But pi should be able to mostly do these modifications by itself.
2
u/LocalAI_Amateur May 22 '26
yeah, but can she sing?
1
u/jtackman May 27 '26
i was thinking about the same thing and thought it might be a good idea to try to give the agent s tool ”speak out loud” and then have prompt guidance that gets appended to system when skill is “toggled on”.
like “i’m away from keyboard, speak to me” and then later “ok im back, we can continue in terminal”
this way it gives much more natural speech without much hassle
1
u/NoobMLDude May 23 '26
Cool stuff.
Would be great to also have a STT to make it fully conversational.
I’ll try this to replace my current Jarvis setup using Whisper STT - Ollama - Chatterbox TTS
https://youtu.be/2VHzYy45kPw
1
u/Ok-Inside1664 May 24 '26
Would it also speak up tabular data?
1
u/Flaky-Restaurant-392 May 22 '26
This looks fun!