Skip to content

v0.1.5 — Voice Output Fix

Choose a tag to compare

@AXEUS5346 AXEUS5346 released this 26 Jun 08:09
· 61 commits to main since this release

🔊 Voice Output Fix

What's Fixed

  • Voice mode now produces audio output — the core issue was that audio.play() was silently failing due to browser autoplay policy. After the user holds-to-speak and the TTS response comes back from the server, the browser no longer considers the original press a "user gesture", blocking audio playback with no error.

What Changed

Frontend — Voice Mode (voice-mode.tsx)

  • AudioContext unlock on gesture — a silent audio buffer is played the moment the user presses down, pre-unlocking the browser's audio pipeline for subsequent playback
  • Awaited audio.play() — promise rejections are now properly caught instead of being silently swallowed
  • Web Audio API fallback — if HTMLAudioElement.play() still fails, audio is decoded and played through the already-unlocked AudioContext
  • Proper cleanup — AudioContext is closed on component unmount

Backend

  • Minor configuration updates to CORS and TTS service

Infrastructure

  • Next.js 16 proxy routing configured for API pass-through to FastAPI backend
  • Upload dialog and chat panel UX improvements
  • TypeScript config updates

Full Changelog: 3d3945b...v0.1.5