rhasspy / piper

A fast, local neural text to speech system
https://rhasspy.github.io/piper-samples/
MIT License
4.38k stars 297 forks source link

Piper Nodejs, knowing when proccessing is done #481

Open pixelblob opened 3 weeks ago

pixelblob commented 3 weeks ago

Im Using piper in nodejs alongside a discord.js voice bot, the bot only seems to start speaking when the stdout of piper ends (me manually killing it) but when I use it long running in the background, continusly piping text into it and piping voice data out it doesnt seem to ever start speaking, I currently have gotten around this by waiting until I stop recieving data from pipers stdin for a specifc amount of time but is there a better way to do this? some kind of event or charcter I can look for that signifys the end of proccessing? Please tell me if snippets are needed, my code is pretty ungodly looking...

chiefMarlin commented 3 weeks ago

This issue maybe of help #376