Voice 14: apps/fluxer voice runtime wiring #75

Closed
opened 2026-11-11 12:17:39 +00:00 by charles · 0 comments
Owner

Files:

  • Create: apps/fluxer/src/{voice_rt.rs,audio_rt.rs}
  • Modify: apps/fluxer/src/{runtime.rs,config.rs,record.rs,main.rs}, apps/fluxer/Cargo.toml
  • Test: apps/fluxer/tests/voice_runtime.rs

Interfaces:

  • Consumes: VoiceHandle, AudioEngine, StatusApi, the new ApiClient methods.

  • Produces: execution of Effect::Voice and Effect::Audio; capture frames → (Apm when available) → CaptureChain → push_microphone; remote_audio() → AudioEngine::push_remote; EngineEvent → CoreEvent::Audio (levels throttled to 20 Hz, coalesced); ApiRequest voice/soundboard variants executed incl. FetchMedia with the Foundation disk cache; StatusApi::publish(selectors::voice_status(&app)) after each apply; with --devserver the runtime uses FakeRoom and NullHost; --audio-null flag forces NullHost.

  • Capture runs only while connected or during a microphone test.

  • Step 1: Write failing tests (devserver + fakes): join_reaches_connected_and_mic_frames_reach_room, remote_tone_reaches_mixer_with_user_gain, deafen_stops_remote_audio, soundboard_event_plays_clip, status_api_reports_connected_channel, record_mode_never_contains_token_or_e2ee_key, leaving_stops_capture.

  • Step 2–5: FAIL → implement → PASS → commit feat(app): voice and audio runtime.

Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-voice.md
Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-voice-design.md

**Files:** - Create: `apps/fluxer/src/{voice_rt.rs,audio_rt.rs}` - Modify: `apps/fluxer/src/{runtime.rs,config.rs,record.rs,main.rs}`, `apps/fluxer/Cargo.toml` - Test: `apps/fluxer/tests/voice_runtime.rs` **Interfaces:** - Consumes: `VoiceHandle`, `AudioEngine`, `StatusApi`, the new `ApiClient` methods. - Produces: execution of `Effect::Voice` and `Effect::Audio`; capture frames → (`Apm` when available) → `CaptureChain` → `push_microphone`; `remote_audio()` → `AudioEngine::push_remote`; `EngineEvent` → `CoreEvent::Audio` (levels throttled to 20 Hz, coalesced); `ApiRequest` voice/soundboard variants executed incl. `FetchMedia` with the Foundation disk cache; `StatusApi::publish(selectors::voice_status(&app))` after each `apply`; with `--devserver` the runtime uses `FakeRoom` and `NullHost`; `--audio-null` flag forces `NullHost`. - Capture runs only while connected or during a microphone test. - [ ] **Step 1: Write failing tests** (devserver + fakes): `join_reaches_connected_and_mic_frames_reach_room`, `remote_tone_reaches_mixer_with_user_gain`, `deafen_stops_remote_audio`, `soundboard_event_plays_clip`, `status_api_reports_connected_channel`, `record_mode_never_contains_token_or_e2ee_key`, `leaving_stops_capture`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(app): voice and audio runtime`. Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-voice.md Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-voice-design.md
charles added this to the Voice milestone 2026-11-11 12:17:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#75
No description provided.