Skip to content

Feat/microphone plugin - #1

Merged
kessdev merged 3 commits into
mainfrom
feat/microphone-plugin
Oct 11, 2026
Merged

kessdev merged 3 commits into
mainfrom
feat/microphone-plugin

Conversation

@kessdev

@kessdev kessdev commented Oct 11, 2026

Copy link
Copy Markdown
Owner

No description provided.

- Rust core: models, state machine, commands and capabilities
- Desktop native capture (cpal + hound): WAV, FLAC (flacenc) and Ogg/Opus (vendored libopus)
- Android (Kotlin): AudioRecord WAV, MediaRecorder M4A/AAC and Ogg/Opus, permissions, metering, background foreground service
- iOS (Swift): AVAudioRecorder WAV/M4A, metering, raw streaming and background session
- JavaScript facade: unified API with mobile/desktop dispatch, raw PCM streaming and permissions
- Permissions, covector release config, CI workflows, docs and example app
- Move flacenc to shared dependencies and extract encode_flac into src/flac.rs
- Expose an in-process C-ABI encoder (mic_flac_open/write/finish); no panic crosses the FFI boundary
- Android: FlacEncoder JNI bridge feeds AudioRecord PCM to the Rust encoder
- iOS: AVAudioEngine tap feeds the Rust encoder via @_silgen_name
- Resolve the requested format against platform support and degrade to WAV (never mislabel the container)
- Advertise flac on Android/iOS and update docs
- Use npm as the single package manager in the example app (drop
  pnpm-lock.yaml, commit package-lock.json) and install with npm ci in CI
- Install libasound2-dev/pkg-config for the Linux desktop build
- Resolve the in-process FLAC encoder on iOS at runtime with dlsym and
  degrade to WAV when the symbols are not linked
- Size the desktop meter buffer lazily so onMeter works regardless of
  subscription order, and document that native-format desktop recording
  has no metering
@kessdev
kessdev merged commit ad88cd3 into main Oct 11, 2026
11 checks passed
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.

1 participant