<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Thanks, I'll look into how other libraries use the jack API to read the data and use this lib to try and attempt the same.<br></div><div><br></div><div>On Tue, 7 Apr 2020, at 23:42, Hannes Helmholz wrote:<br></div><blockquote type="cite" id="qt"><div>On 2020-04-07 23:02, Louis Foster wrote:<br></div><div>> I've been trying to find a good way to a stream of audio from jack into<br></div><div>> opusenc (the official opus encoder tool) and then pass it to something<br></div><div>> like oggfwd to send to Icecast. However, a few different things I've<br></div><div>> tried in python haven't worked out, and I'm trying to not have to rely<br></div><div>> on an "audio file player" (like sox or pyaudio) to sit in the middle.<br></div><div>> Now I'm wondering if there's a way I can get the raw pcm data from jack.<br></div><div>> Is this possible? Is there an existing tool?<br></div><div><br></div><div>You should be able to get raw audio data by means of any JACK API i.e.,<br></div><div>in Python this works very well with jack-client<br></div><div>https://github.com/spatialaudio/jackclient-python<br></div><div><br></div><div>/Hannes<br></div><div><br></div><div><br></div><div><br></div><div><b>Attachments:</b><br></div><ul><li>signature.asc<br></li></ul></blockquote><div><br></div></body></html>