Skip to content

HomePlay 1.0.6

Choose a tag to compare

@surfine surfine released this 02 Nov 00:02
· 13 commits to main since this release

HomePlay 1.0.6 — release notes

简体中文

HomePlay 1.0.6

这一版把 CarPlay 的电话、Siri 和短信朗读的语音通道修通了,并处理了回声、破音和“按下 F5 要等一下才听得到”的问题。

修好的

  • 电话与 Siri 听不到对方/回话:CarPlay 的 Opus 下行原来交给 CoreAudio 的 AudioConverter,它对裸 Opus 包解出来是全 0(真机验证)。现在改用 libopus 解码,电话、Siri、短信朗读的下行都能出声。
  • 回音:电话与 Siri 的 100 流重新走 Apple 原生 VPIO。先把播放图接好(player → DynamicsProcessor → PeakLimiter → mixer → 立体声 output),再开 input/output 的 voice processing;不先 prepare(),避免 -10849/-10875。Studio Display 这类“麦克风与扬声器是两个 CoreAudio 装置、输出 8 声道”的组合也能起来。真的起不来时自动退到 SpeexDSP 软件回声消除,再不行才用原始麦克风。
  • Siri 声音中断、半速、破音:Opus 下行 RTP 时钟按 SETUP 的 fmt 位取 16/24/48 kHz(Siri 24k 流每 20ms 只前进 480),jitter buffer 按正确时钟排包;TTS 播完再结束会话,不再每 2.5 秒被切一次。下行加 +6 dB 后接 PeakLimiter,压住 Siri 的瞬态。
  • 按下 F5 就能说:CarPlay 一 live 就预热麦克风,SETUP 前最近 3 秒的预卷在首个下行包(或 500ms)补发给手机;Siri 不用再等引擎启动。
  • 通话音量:设置 › CarPlay 新增“通话音量”(默认 +6 dB,可调 0…+15 dB),与媒体音量分开,立即生效。
  • Esc 键:CarPlay 画面里按 Esc 现在等同车机的 Back(旋钮 back HID),不再直接退出 CarPlay。
  • Caps Lock 闪退:事件 tap 线程不再构造 NSEvent,改读 CGEvent 的 subtype/data1 未公开字段;按 Caps Lock 不会 SIGTRAP。
  • 1.0.5 的连接修复(退出前收干净蓝牙、外接相机“跟随我”不闪退)也都包含在内。

要知道的

  • 仅 Apple 芯片,macOS 14 以上;Developer ID 签名并通过 Apple 公证。
  • 电话/Siri 的上行音量默认 +18 dB,适配 Studio Display 这类远场麦克风;可用 HOMEPLAY_MIC_GAIN_DB 调整。
  • 如果仍然没有回声消除,日志会写明是 VPIO 还是 SpeexDSP;把日志发出来即可继续查。

English

HomePlay 1.0.6

This release fixes the voice path for CarPlay phone calls, Siri, and message read-aloud, along with echo, distortion, and the delay after pressing F5.

Fixed

  • No downlink audio on calls or Siri: CarPlay's Opus downlink used CoreAudio's AudioConverter, which returns silence for raw Opus packets (verified on device). It now decodes with libopus, so calls, Siri, and message read-aloud are audible.
  • 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 prepare() is not called before setVoiceProcessingEnabled (avoids -10849/-10875). This also 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 acoustic echo cancellation, then to the raw microphone.
  • Siri cutting out, half-speed, distorted: the Opus downlink RTP clock now 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 instead of tearing down every 2.5 seconds. Downlink gain is +6 dB followed by a PeakLimiter to catch Siri transients.
  • 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), so Siri no longer waits for the engine to start.
  • Call volume: Settings › CarPlay now has a separate call volume (default +6 dB, adjustable 0…+15 dB) that applies immediately and does not change media volume.
  • Esc: in the CarPlay view, Esc now behaves like the car's Back button (knob back HID) instead of leaving CarPlay.
  • Caps Lock crash: the event-tap thread no longer constructs NSEvent; it reads the CGEvent subtype/data1 fields directly, so Caps Lock no longer SIGTRAPs.
  • Includes the 1.0.5 connection fixes (clean Bluetooth teardown before exit; no crash when "Follow me" uses an external camera).

Notes

  • Apple silicon only, macOS 14 or later; Developer ID signed and notarized by Apple.
  • Uplink microphone gain defaults to +18 dB for far-field mics such as Studio Display's; override with HOMEPLAY_MIC_GAIN_DB.
  • If echo cancellation still does not engage, the log says whether VPIO or SpeexDSP is active; include it in a report.