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

Add explicit audio converters to voice processor and echo probe #53

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

igsha
Copy link
Collaborator

@igsha igsha commented Apr 16, 2024

This PR adds sample rate and audio format conversion for VoiceProcessor and EchoProbe. This is necessary because the microphone or speakers may not have a 48kHz sampling rate. For example, on Bluetooth headphones on a Mac the sampling frequency is no longer 16 kHz, on Windows in wasapi it is 44.1 kHz. This will be useful to avoid any problems with unknown microphones and headphones.

The VoiceProcessor and EchoProbe plugins have fixed caps: rate=48000,channels=1.
There is no such cap on windows, hence append explicit resampler and converter.
@igsha igsha force-pushed the feat-voice-processor branch from 6e00e09 to f742898 Compare April 16, 2024 10:51
@igsha igsha marked this pull request as ready for review April 16, 2024 11:04
@mxlgv mxlgv requested review from kkonsw and mxlgv April 17, 2024 11:26
@mxlgv mxlgv merged commit 0ca02a7 into mxlgv:master Apr 17, 2024
4 checks passed
@igsha igsha deleted the feat-voice-processor branch April 17, 2024 11:51
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

Successfully merging this pull request may close these issues.

3 participants