Giter VIP home page Giter VIP logo

Comments (6)

JorenSix avatar JorenSix commented on May 31, 2024

Hi, the output is currently debug output which makes sure that audio blocks are flowing through the system. This seems to be the case.

But many things can go wrong. To make it work you need to sample (16kHz) and step through the audio according to the expected block size and step size (1024 and 128 samples). Some digital microphones have problems with a 16kHz sample rate. Make sure this is in order.

The first thing you might want to check is the "olaf mem" program and try it out on a computer for your recognition task. This is the same code which runs on the ESP 32. Only if this works correctly I would go over to the much harder to debug ESP32.

from olaf.

JonRLG avatar JonRLG commented on May 31, 2024

Hi, this is the output from the example "no_mic_test". Im not using any microphone at the moment.
Do you have any idea what could cause the example to not work?

from olaf.

JorenSix avatar JorenSix commented on May 31, 2024

Hi the no mic test has two header files with data. The first header contains a list of target fingerprints for the audio you want to match.

The second header contains audio data. Since there is no microphone or audio input, the 'audio' is read from the header file and fed to Olaf. When the end of the audio data is reached, the same audio is repeated over and over.

Unfortunately the RAM of the ESP32 is not that large and audio takes up quite a bit (byte) of space. This means that the audio in the header file is short. For fingerprint matching, Olaf needs a few seconds of audio. The audio in the header file is too short for a match. The repetition does not help for the match.

The no_mic_test is essentially only checking if the audio can flow through the system and the matching step can be executed (but no matches are reported). The output is basically debug output.

To fix it you either need more audio (a larger header file, more RAM) or an actual microphone input.

from olaf.

JonRLG avatar JonRLG commented on May 31, 2024

Thank you for your feedback!
I´m still struggling to create an working example for the ESP32 with an microphone. I tried to use parts of your older Code for the song "Let it go" but with no success. Could you create a new example code or an instruction how to use your Code on Esp32?

from olaf.

JorenSix avatar JorenSix commented on May 31, 2024

Hi, I have included a new working example with a INMP441 MEMS microphone and an ESP32. There is also a readme for the ESP32 folder with additional details. Please have a look.

from olaf.

JorenSix avatar JorenSix commented on May 31, 2024

More details here: https://github.com/JorenSix/Olaf/tree/master/ESP32

from olaf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.