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

Use live audio #5

Open
jeroenboumans opened this issue Jun 4, 2021 · 9 comments
Open

Use live audio #5

jeroenboumans opened this issue Jun 4, 2021 · 9 comments

Comments

@jeroenboumans
Copy link

I'm looking for docs to use live audio stream as input for a BirdNET-Lite based application like the live stream demo:
https://birdnet.cornell.edu/live/

Is it possible to do this with the current setup as well?

@CoreProduction
Copy link

I'm also interested in this topic.

@ghost
Copy link

ghost commented Aug 27, 2021

This would be fine, also interested.

@CoreProduction
Copy link

CoreProduction commented Aug 29, 2021

I was able to make Live Audio work as follows. Perhaps it is a naive approach but it seems robust.

  • Create a script that records audio in 3 second clips and stashes them in a working directory. Only record up to a maximum number of clips eg. 2 files.
  • Modify the analysis script to scan for files in the working directory - process the oldest file and then delete it.
  • Run these scripts as separate processes. The recording script will fill the directory and the analyses script will empty it.

Analysing a 3s clip on a Raspberry Pi 4 only takes about 0.5s, so this scheme should never fall behind real-time (ignoring the 3s delay for sampling the audio)

@ghost
Copy link

ghost commented Sep 3, 2021 via email

@nilspupils
Copy link

nilspupils commented Sep 8, 2021

Hi @CoreProduction, hi @kahst
as i am also in the process of setting up a live stream analysis (and struggeling a bit) would you be so kind and share your scripts for live audio with us?
Also if anyone could give a walkthrough of setting up BirdNET on a Pi 4 this would be super nice!
Thanks and greetings!

@ghost
Copy link

ghost commented Sep 8, 2021 via email

@nilspupils
Copy link

To keep this issue reserved to the live audio input i am going to open a new issue relating to BirdNET and Tensorflow installation on the Raspberry Pi 4. Please comment there!

@ghost
Copy link

ghost commented Sep 9, 2021 via email

@nilspupils
Copy link

nilspupils commented Sep 9, 2021

@Christoph-Lauer: Please use the new issue i opened for the topic on installation. Instead of compiling yourself you could have used a precompiled bin from:
https://github.com/PINTO0309/TensorflowLite-bin

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

3 participants