You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your example you are using stdin to pipe the data, is there a way to do it from a variable, or an outputStream() which I have access to? Please provide working examples if possible! :)
// PCM data from stdin gets piped into the speaker
process.stdin.pipe(speaker);
The text was updated successfully, but these errors were encountered:
You may need to cork your pipe initially to allow enough of a buffer to build up, before outputting to the speaker. I would also recommend ensuring you are sending a large chunk of data at once to ensure the speaker isn't running out of data intermittently when your application is busy elsewhere, I transmit in 1024 sample chunks to my speakers, enough ms in advance of when I want it to be played.
In your example you are using stdin to pipe the data, is there a way to do it from a variable, or an outputStream() which I have access to? Please provide working examples if possible! :)
The text was updated successfully, but these errors were encountered: