odas icon indicating copy to clipboard operation
odas copied to clipboard

How to use the audio stream from PyAudio as input in ODAS

Open as4mz opened this issue 3 years ago • 2 comments

Hi,

I am using Respeaker mic array v 2.0 to save the raw audio stream. I plan to get the audio stream using pyaudio/portaudio, and then feed it into ODAS. I want to keep the raw audio stream for further usages. I do not find any option in ODAS to get the raw audio stream as I can get using pyaudio/portaudio.

I see there is an option in the config file to use the recorded audio file. Is it possible to feed the real-time audio stream into ODAS? If not, is it possible to change the pre-recorded audio-file name on the fly?

Also, I feel the proper intro/tutorial is missing for the beginners? Is there any chance of publishing a tutorial soon?

Thanks for your time!

as4mz avatar Mar 22 '21 15:03 as4mz

I have the same problem!

Qinyang-bit avatar Nov 12 '21 13:11 Qinyang-bit

You could use a alsa loopback (snd-aloop) I guess and set the input to odas as the source side of the loopback and play your pyaudio into the sink side.

StuartIanNaylor avatar Feb 22 '22 16:02 StuartIanNaylor