Repository navigation
v0.9.1 — cutting in stops the agent's voice on the phone
Since 0.8.0 the agent's voice reaches the phone as MP3. Cutting in on it stopped the rest of the answer, but not the sentence already playing: on an iPhone that one played on over you — up to a quarter of a minute, since sentences are merged into longer segments. Now it stops where it is.
Cutting in
The daemon was never the problem: it hears you, stops sending the answer in the same millisecond, and tells the phone. The phone then stops its playback — and MP3 plays through the system player, which Paseo's app let go of with expo-audio's remove(). On iOS that only takes the player out of a registry; the AVPlayer under it plays to the end of the file. The app built with ios-build/build.sh now releases the player instead, which stops it at once and frees it, however playback ended.
- Rebuild the app with
ios-build/build.shand install it. Nothing changed in the plugin or in the corrections to the daemon. - The desktop was never affected: its player stops MP3 at once.
- The App Store app has the same flaw, and cannot be patched from here. Until Paseo fixes it,
PASEO_VOICE_TTS_FORMAT=pcmin the daemon's environment sends the agent's voice as PCM again, which stops properly — at six times the traffic.
The harness
It missed this because its stand-in for the system player went quiet on remove(), and its native module cut the system player's sound along with its own. Both now behave as they do on an iPhone.
e2e/cut-in.e2e.tscuts into a reply as MP3 and as PCM, and checks that an uninterrupted MP3 reply still plays to its end. Red without the correction, green with it.- The live test that cuts into a long answer now waits for a segment long enough to cut into: the model's short opening line used to play out by itself, leaving nothing to stop. Red on the old app, green on the new.
- 162 unit tests, 20 offline end-to-end tests.
After updating: rebuild the iOS app with ios-build/build.sh and install it. Nothing to apply or restart on the Mac.
Full changelog: v0.9.0...v0.9.1