play-audio icon indicating copy to clipboard operation
play-audio copied to clipboard

allow piped input from stdin

Open zuloo opened this issue 7 years ago • 3 comments

Hello, It would be very nice to be able to pipe in pcm streams via standart in.

zuloo avatar May 02 '17 10:05 zuloo

In Bash you could just use process substitution:

play-audio <(wget "http://localhost/myaudio.wav" -O -)

nonnymoose avatar Jul 25 '17 11:07 nonnymoose

However, unless you have a really fast internet connection, you'll get Underflow when prefetching data because wget will not finish first. @fornwall Do you think you can do anything about this?

nonnymoose avatar Jul 29 '17 15:07 nonnymoose

Adding this would be nice, also making it wait until it has more data to play. It'd make for some cool scripts.

includereserved avatar Oct 05 '18 22:10 includereserved