Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream audio from a microphone peripheral #7

Open
tim-shea opened this issue Jul 17, 2023 · 0 comments
Open

Stream audio from a microphone peripheral #7

tim-shea opened this issue Jul 17, 2023 · 0 comments

Comments

@tim-shea
Copy link

As an application developer, I want to be able to stream audio efficiently to Lava processes from a microphone attached to my PC.

Conditions

  • A process called Microphone or StreamingMicrophone or something like that exists.
  • The process can accept parameters for the device id, sampling rate, bit format, etc.
  • A PyProcessModel for the process exists that will start recording audio using an existing, well-designed audio library such as PyAudio. The selected audio library must work on Ubuntu, and ideally should also work on Windows and Mac. Properly configuring the audio library may be considered out of scope for this issue, although it should not be excessively difficult to do so.
  • The PyProcessModel should implement an appropriate buffering algorithm, such as pushing audio chunks into a non-blocking queue or ring buffer.
  • When run on a standard x86 CPU, the process model should not use more than 10% CPU time on a single core, and no audio samples should be dropped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant