mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
iOS rejects play() outside a user gesture unless the same media element was already played inside one. Each chunk used a new Audio element, so replies in voice mode failed with "Reading the reply failed". - reuse one audio element for all external TTS playback - add tts.unlock(), which plays a short silent clip on that element, and call it from the voice mode start and orb taps - route every playback failure through failPlayback(message) and pass the message to onEnd so voice mode shows the underlying reason - report a blocked play() as "Audio playback was blocked by the browser"