Skip to content

Implementation of microphone input backend for Linux (--from-mic)#13

Open
Lompo790 wants to merge 2 commits intoantirez:mainfrom
Lompo790:linux-mic-backend
Open

Implementation of microphone input backend for Linux (--from-mic)#13
Lompo790 wants to merge 2 commits intoantirez:mainfrom
Lompo790:linux-mic-backend

Conversation

@Lompo790
Copy link

@Lompo790 Lompo790 commented Feb 13, 2026

Summary

This PR extends --from-mic support to GNU/Linux by introducing a native ALSA-based microphone input backend, implementing the voxtral_mic.h interface, matching the behavior of the existing macOS backend.
A tool for the user microphone tests has also been added (for both macOS and GNU/Linux).

Diff

  • Added voxtral_mic_linux.c backend implementing voxtral_mic.h
  • Added OS-agnostic microphone test tool by using voxtral_mic.h functions
  • Updated Makefile BLAS target to build Linux mic backend
  • Added "mic_test" target to the Makefile for mic test tool builds
  • Extended README.md with new features
  • Updated .gitignore for new build artifacts

Testing

Tested on Debian GNU/Linux 13 (kernel 6.12.69, x86_64)

Enable --from-mic support on GNU/Linux by introducing a native
ALSA-based microphone input backend implementing the voxtral_mic.h
interface, matching the behavior of the existing macOS backend.

- Added voxtral_mic_linux.c with ALSA capture implementing voxtral_mic.h
- Added OS-agnostic microphone test tool using voxtral_mic.h
- Updated Makefile BLAS target to build Linux mic backend
- Added mic_test target to the Makefile for mic test builds
- Extended README with new features
- Updated .gitignore for new build artifacts
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.

2 participants