-
Notifications
You must be signed in to change notification settings - Fork 28
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
Resampler on input doesn't work in duplex mode #42
Comments
Could you try with this branch if 44.1kHz is working with Onju? external_components:
- source:
type: git
url: https://github.com/gnumpi/esphome_audio
ref: fix_mic_resampler
components: [ adf_pipeline, i2s_audio ] please share your logs if it is not working. |
Still wont work :/ My ADF Config:
Audio over MusicAssistant works fine. |
hmm, sorry to hear :( Could you share a bit more of you log file. So that the full life-cycle of the mic is shown? |
I can provide you a log, but I am not sure if my "fix" is right. tetele/onju-voice-satellite#52 (comment) Github once more casues MADNESS in line 154 where by magic my "audio-in" written there suddently becomes audioIn after a bit. O_o I can build a few times and then Github magically changed it back. So take this one with a bit of salt. |
thx for sharing your logs! |
after a few more iterations, thx @dwyschka for live testing, the "fix_mic_resampler" branch seems to work now. |
I start getting these warnings when I change the sample rate to 44.1kHz
I guess it's because the ring buffer size was halved in this PR esphome/esphome#6830 but the sample rate there is hard-coded to 16kHz |
Per #17, in duplex mode we have to use 16000 Hz and skip the resampler if we want the mic to work. This means poor output audio quality, of course.
The text was updated successfully, but these errors were encountered: