Skip to content

HomePlay 2.0 beta 4

Pre-release
Pre-release

Choose a tag to compare

@surfine surfine released this 02 Nov 00:24
· 11 commits to beta since this release

HomePlay 2.0 beta 4 — release notes

简体中文

HomePlay 2.0 beta 4

这一版把 1.0.6 的 CarPlay 语音修复带进 2.0。界面、表盘和 App 与 beta 3 相同,重点是电话、Siri 和短信朗读现在能双向出声。

修好的

  • 电话、Siri、短信朗读没有下行声音:CarPlay 的 Opus 下行改用 libopus 解码。CoreAudio 的 AudioConverter 对裸 Opus 包解出来是全 0(真机验证)。
  • 回音:电话与 Siri 的 100 流重新走 Apple 原生 VPIO。先接好播放图(player → DynamicsProcessor → PeakLimiter → mixer → 立体声 output),再开 input/output voice processing,并且不在 prepare() 之后才开 VPIO(-10849/-10875)。Studio Display 这种麦克风与扬声器是两个 CoreAudio 装置、输出 8 声道的组合也能起来;起不来时退 SpeexDSP 软件 AEC,再退原始麦克风。
  • Siri 中断、半速、破音:Opus 下行按 SETUP 的 fmt 取 16/24/48 kHz RTP 时钟(Siri 24k 流每 20ms 前进 480),jitter buffer 按正确时钟排包;TTS 播完再结束会话。下行 +6 dB 后接 PeakLimiter。
  • 按下 F5 就能说:CarPlay 一 live 就预热麦克风,SETUP 前最近 3 秒作为预卷在首个下行包(或 500ms)补发。
  • 通话音量:设置 › CarPlay 新增独立通话音量(默认 +6 dB,可调 0…+15 dB),与媒体音量分开,立即生效。
  • Caps Lock 闪退:事件 tap 线程不再构造 NSEvent,改读 CGEvent 的 subtype/data1 字段。

要知道的

  • 这是 2.0 测试版;稳定版是 1.0.6。
  • 2.0 里 Esc 仍然切回桌面(switchSource),没有改成车机的 Back;1.0.6 的 Esc 是 Back。
  • YouTube 的影片只有声音;其他来源的影片可以正常播放。
  • 插着线时,如果无线可用,会话还是走无线、线只充电;拔线不会中断画面。

English

HomePlay 2.0 beta 4

This build brings the 1.0.6 CarPlay voice fixes to 2.0. The interface, faces, and apps are the same as beta 3; the change is that phone calls, Siri, and message read-aloud now have audio in both directions.

Fixed

  • No downlink audio on calls, Siri, or message read-aloud: the CarPlay Opus downlink now uses libopus. CoreAudio's AudioConverter returns silence for raw Opus packets (verified on device).
  • Echo: phone and Siri 100 streams use Apple's VPIO again. The playback graph is wired first (player → DynamicsProcessor → PeakLimiter → mixer → stereo output), then input/output voice processing is enabled, and VPIO is not enabled after prepare() (avoids -10849/-10875). This works when the microphone and speakers are separate CoreAudio devices and the output is 8-channel, as on Studio Display. If VPIO still cannot start, it falls back to SpeexDSP AEC, then to the raw microphone.
  • Siri cutting out, half-speed, distorted: the Opus downlink RTP clock follows the SETUP fmt bits (16/24/48 kHz; a 24 kHz Siri stream advances 480 samples per 20 ms), and the jitter buffer orders packets on that clock. The session waits for TTS to drain. Downlink gain is +6 dB followed by a PeakLimiter.
  • Talk immediately after F5: the microphone is prewarmed as soon as CarPlay goes live. The last 3 seconds before SETUP are sent as pre-roll on the first downlink packet (or after 500 ms).
  • Call volume: Settings › CarPlay has a separate call volume (default +6 dB, adjustable 0…+15 dB) that applies immediately and does not change media volume.
  • Caps Lock crash: the event-tap thread no longer constructs NSEvent; it reads the CGEvent subtype/data1 fields directly.

Notes

  • This is a 2.0 beta; the stable release is 1.0.6.
  • In 2.0, Esc still switches back to the desktop (switchSource), not the car's Back button; in 1.0.6 Esc is Back.
  • YouTube videos play audio only; videos from other sources play normally.
  • With the cable plugged in, the session still runs over Wi-Fi whenever wireless is available and the cable only charges; unplugging it does not drop the picture.