Closed LongMingWei closed 2 months ago
PvRecorder uses Miniaudio as it's backend to provide platform support, so if Miniaudio doesn't support running in Gradio then PvRecorder won't work either.
Eagle itself isn't dependent on PvRecorder specifically, we just use it in our demos to make cross platform support easier. Any audio source providing or converted into the right data format and sample rate will work. I would assume that Gradio has it's own audio recording interface/api? I would suggest trying to use that.
Oh yeah, you are right, should have realised that sooner. Thank you!
Closing as this was not an issue with Eagle
Have you checked the docs and existing issues?
SDK
Python
Eagle package version
1.0.1
Framework version
Python 3.12
Platform
Windows (x86_64)
OS/Browser version
Windows 11
Describe the bug
I'm making a face recognition system with voice verification as well. It has a recognize user, register user and delete user function, where register user collects a new face and voice profile, and recognize user verifies the face and voice and see if they match. (Same user as this one)
When I run my app in my computer, the program works fine. However, when I deployed my app into gradio, the following error appeared whenever PvRecorder is required (which is when the user's face has been verified and the next step is to verify the voice to ensure they match).
The app.py file can be accessed here
Help would be greatly appreciated!
Steps To Reproduce
The web app can be accessed here. Register your face and voice first (don't worry, the database only stores a number array and not the face itself) then switch to verify user and wait until the app asks you to speak (and that's when the error pops out).
Expected Behavior
When the user speaks in the verify user section after his/her face is verified, a message should show up saying Access is granted.