mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
When BUZZ_TRANSCRIPTION_MODEL is a realtime-whisper variant, the relay now omits server_vad from the session config. Without server VAD, OpenAI buffers audio indefinitely until a manual input_audio_buffer.commit is sent. This commit adds the client-side counterpart: 1. Export commitAudioBuffer() and requiresManualCommit() from realtimeAudio.ts. 2. On session creation, track whether the model requires manual commit. 3. After flushing the pre-connection buffer, commit immediately and start a 2s periodic commit interval so streaming transcripts flow during recording. 4. On stop, send a final commit before teardown and keep the data channel open briefly (3s) to receive the last transcript response. 5. Clear the commit interval on cleanup. Without this, realtime-whisper sessions would stream/buffer audio but never produce transcripts because no commit was ever sent.
Buzz
Desktop chat shell with:
- Tauri + React + TypeScript + Vite
- Tailwind CSS
- shadcn/ui-ready shared components
- Biome (lint/format/check)
- Feature-driven frontend structure
Scripts
pnpm dev- run the web frontendpnpm tauri dev- run the desktop apppnpm build- typecheck and build frontendpnpm typecheck- TypeScript checkspnpm lint- Biome lintpnpm format- Biome format (write)pnpm check- Biome check
Structure
src/shared- reusable app-wide code (ui,lib,styles)src/features- feature modules (vertical slices)src/app- top-level app composition