Skip to content

Support for configurable microphone input format #75

@jancernik

Description

@jancernik

Hi! First, thanks for this project. I've been playing around with it on different devices and it works really well, so I’d love to use it on my main hardware.

I'm trying to get this working on a couple of rooted Lenovo Smart Clock 2 devices running Android 10. The app runs, but microphone audio is unusable, speech sounds like it is recorded in slow motion / at the wrong sample rate, so voice input does not work.

This seems to be a known quirk of this device, where the mic only works properly with:

48000 Hz
CHANNEL_IN_STEREO

Here’s a reference to a similar issue: Nailik/rhasspy_mobile#326

Would it be possible to add advanced mic input settings, or a device override, so Ava can capture at 48 kHz stereo and then downmix/resample internally to the existing 16 kHz mono pipeline?

I’m not an Android/Kotlin developer, so I can’t easily patch this myself, but I’m happy to test builds or provide logs if needed.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions