{"id":202,"date":"2026-03-21T22:47:22","date_gmt":"2026-03-21T14:47:22","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/platforms-mac-voice-overlay\/"},"modified":"2026-03-21T23:08:51","modified_gmt":"2026-03-21T15:08:51","slug":"platforms-mac-voice-overlay","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/platforms-mac-voice-overlay\/","title":{"rendered":"\u8bed\u97f3\u6d6e\u5c42"},"content":{"rendered":"<h1>\u8bed\u97f3\u6d6e\u5c42<\/h1>\n<h1>\u8bed\u97f3\u6d6e\u5c42\u751f\u547d\u5468\u671f\uff08macOS\uff09<\/h1>\n<p>\u53d7\u4f17\uff1amacOS \u5e94\u7528\u8d21\u732e\u8005\u3002\u76ee\u6807\uff1a\u5728\u5524\u9192\u8bcd\u4e0e\u6309\u952e\u8bf4\u8bdd\u91cd\u53e0\u65f6\u4fdd\u6301\u8bed\u97f3\u6d6e\u5c42\u884c\u4e3a\u53ef\u9884\u6d4b\u3002<\/p>\n<h3>\u5f53\u524d\u610f\u56fe<\/h3>\n<ul>\n<li>\u5982\u679c\u6d6e\u5c42\u5df2\u56e0\u5524\u9192\u8bcd\u663e\u793a\uff0c\u6b64\u65f6\u7528\u6237\u6309\u4e0b\u70ed\u952e\uff0c\u70ed\u952e\u4f1a\u8bdd\u4f1a<em>\u63a5\u7ba1<\/em>\u73b0\u6709\u6587\u672c\u800c\u975e\u91cd\u7f6e\u3002\u6d6e\u5c42\u5728\u70ed\u952e\u6309\u4f4f\u671f\u95f4\u4fdd\u6301\u663e\u793a\u3002\u7528\u6237\u677e\u5f00\u65f6\uff1a\u5982\u679c\u6709\u53bb\u9664\u7a7a\u767d\u540e\u7684\u6587\u672c\u5219\u53d1\u9001\uff0c\u5426\u5219\u5173\u95ed\u3002<\/li>\n<li>\u5355\u72ec\u4f7f\u7528\u5524\u9192\u8bcd\u65f6\u4ecd\u5728\u9759\u97f3\u540e\u81ea\u52a8\u53d1\u9001\uff1b\u6309\u952e\u8bf4\u8bdd\u5728\u677e\u5f00\u65f6\u7acb\u5373\u53d1\u9001\u3002<\/li>\n<\/ul>\n<h3>\u5df2\u5b9e\u73b0\uff082025 \u5e74 12 \u6708 9 \u65e5\uff09<\/h3>\n<ul>\n<li>\u6d6e\u5c42\u4f1a\u8bdd\u73b0\u5728\u4e3a\u6bcf\u6b21\u6355\u83b7\uff08\u5524\u9192\u8bcd\u6216\u6309\u952e\u8bf4\u8bdd\uff09\u643a\u5e26\u4e00\u4e2a\u4ee4\u724c\u3002\u5f53\u4ee4\u724c\u4e0d\u5339\u914d\u65f6\uff0c\u90e8\u5206\/\u6700\u7ec8\/\u53d1\u9001\/\u5173\u95ed\/\u97f3\u91cf\u66f4\u65b0\u4f1a\u88ab\u4e22\u5f03\uff0c\u907f\u514d\u8fc7\u65f6\u56de\u8c03\u3002<\/li>\n<li>\u6309\u952e\u8bf4\u8bdd\u4f1a\u63a5\u7ba1\u4efb\u4f55\u53ef\u89c1\u7684\u6d6e\u5c42\u6587\u672c\u4f5c\u4e3a\u524d\u7f00\uff08\u56e0\u6b64\u5728\u5524\u9192\u6d6e\u5c42\u663e\u793a\u65f6\u6309\u4e0b\u70ed\u952e\u4f1a\u4fdd\u7559\u6587\u672c\u5e76\u8ffd\u52a0\u65b0\u8bed\u97f3\uff09\u3002\u5b83\u6700\u591a\u7b49\u5f85 1.5 \u79d2\u83b7\u53d6\u6700\u7ec8\u8f6c\u5f55\u7ed3\u679c\uff0c\u7136\u540e\u56de\u9000\u5230\u5f53\u524d\u6587\u672c\u3002<\/li>\n<li>\u63d0\u793a\u97f3\/\u6d6e\u5c42\u65e5\u5fd7\u4ee5 <code>info<\/code> \u7ea7\u522b\u8f93\u51fa\uff0c\u5206\u7c7b\u4e3a <code>voicewake.overlay<\/code>\u3001<code>voicewake.ptt<\/code> \u548c <code>voicewake.chime<\/code>\uff08\u4f1a\u8bdd\u5f00\u59cb\u3001\u90e8\u5206\u3001\u6700\u7ec8\u3001\u53d1\u9001\u3001\u5173\u95ed\u3001\u63d0\u793a\u97f3\u539f\u56e0\uff09\u3002<\/li>\n<\/ul>\n<h3>\u540e\u7eed\u6b65\u9aa4<\/h3>\n<ol>\n<li><strong>VoiceSessionCoordinator\uff08actor\uff09<\/strong><br \/>\n   * \u540c\u4e00\u65f6\u95f4\u53ea\u62e5\u6709\u4e00\u4e2a <code>VoiceSession<\/code>\u3002<br \/>\n   * API\uff08\u57fa\u4e8e\u4ee4\u724c\uff09\uff1a<code>beginWakeCapture<\/code>\u3001<code>beginPushToTalk<\/code>\u3001<code>updatePartial<\/code>\u3001<code>endCapture<\/code>\u3001<code>cancel<\/code>\u3001<code>applyCooldown<\/code>\u3002<br \/>\n   * \u4e22\u5f03\u643a\u5e26\u8fc7\u65f6\u4ee4\u724c\u7684\u56de\u8c03\uff08\u9632\u6b62\u65e7\u8bc6\u522b\u5668\u91cd\u65b0\u6253\u5f00\u6d6e\u5c42\uff09\u3002<\/li>\n<li><strong>VoiceSession\uff08\u6a21\u578b\uff09<\/strong><br \/>\n   * \u5b57\u6bb5\uff1a<code>token<\/code>\u3001<code>source<\/code>\uff08wakeWord|pushToTalk\uff09\u3001\u5df2\u63d0\u4ea4\/\u4e34\u65f6\u6587\u672c\u3001\u63d0\u793a\u97f3\u6807\u5fd7\u3001\u8ba1\u65f6\u5668\uff08\u81ea\u52a8\u53d1\u9001\u3001\u7a7a\u95f2\uff09\u3001<code>overlayMode<\/code>\uff08display|editing|sending\uff09\u3001\u51b7\u5374\u622a\u6b62\u65f6\u95f4\u3002<\/li>\n<li><strong>\u6d6e\u5c42\u7ed1\u5b9a<\/strong><br \/>\n   * <code>VoiceSessionPublisher<\/code>\uff08<code>ObservableObject<\/code>\uff09\u5c06\u6d3b\u8dc3\u4f1a\u8bdd\u955c\u50cf\u5230 SwiftUI\u3002<br \/>\n   * <code>VoiceWakeOverlayView<\/code> \u4ec5\u901a\u8fc7 publisher \u6e32\u67d3\uff1b\u7edd\u4e0d\u76f4\u63a5\u4fee\u6539\u5168\u5c40\u5355\u4f8b\u3002<br \/>\n   * \u6d6e\u5c42\u7528\u6237\u64cd\u4f5c\uff08<code>sendNow<\/code>\u3001<code>dismiss<\/code>\u3001<code>edit<\/code>\uff09\u643a\u5e26\u4f1a\u8bdd\u4ee4\u724c\u56de\u8c03\u5230 coordinator\u3002<\/li>\n<li><strong>\u7edf\u4e00\u53d1\u9001\u8def\u5f84<\/strong><br \/>\n   * <code>endCapture<\/code> \u65f6\uff1a\u5982\u679c\u53bb\u9664\u7a7a\u767d\u540e\u6587\u672c\u4e3a\u7a7a \u2192 \u5173\u95ed\uff1b\u5426\u5219 <code>performSend(session:)<\/code>\uff08\u64ad\u653e\u4e00\u6b21\u53d1\u9001\u63d0\u793a\u97f3\u3001\u8f6c\u53d1\u3001\u5173\u95ed\uff09\u3002<br \/>\n   * \u6309\u952e\u8bf4\u8bdd\uff1a\u65e0\u5ef6\u8fdf\uff1b\u5524\u9192\u8bcd\uff1a\u53ef\u9009\u81ea\u52a8\u53d1\u9001\u5ef6\u8fdf\u3002<br \/>\n   * \u6309\u952e\u8bf4\u8bdd\u7ed3\u675f\u540e\u5bf9\u5524\u9192\u8fd0\u884c\u65f6\u65bd\u52a0\u77ed\u6682\u51b7\u5374\uff0c\u9632\u6b62\u5524\u9192\u8bcd\u7acb\u5373\u91cd\u65b0\u89e6\u53d1\u3002<\/li>\n<li><strong>\u65e5\u5fd7<\/strong><br \/>\n   * Coordinator \u5728\u5b50\u7cfb\u7edf <code>bot.molt<\/code>\u3001\u5206\u7c7b <code>voicewake.overlay<\/code> \u548c <code>voicewake.chime<\/code> \u4e0b\u8f93\u51fa <code>.info<\/code> \u7ea7\u522b\u65e5\u5fd7\u3002<br \/>\n   * \u5173\u952e\u4e8b\u4ef6\uff1a<code>session_started<\/code>\u3001<code>adopted_by_push_to_talk<\/code>\u3001<code>partial<\/code>\u3001<code>finalized<\/code>\u3001<code>send<\/code>\u3001<code>dismiss<\/code>\u3001<code>cancel<\/code>\u3001<code>cooldown<\/code>\u3002<\/li>\n<\/ol>\n<h3>\u8c03\u8bd5\u6e05\u5355<\/h3>\n<ul>\n<li>\u590d\u73b0\u6d6e\u5c42\u7c98\u6ede\u95ee\u9898\u65f6\u6d41\u5f0f\u67e5\u770b\u65e5\u5fd7\uff1a<\/li>\n<\/ul>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n  sudo log stream --predicate 'subsystem == \"bot.molt\" AND category CONTAINS \"voicewake\"' --level info --style compact<\/code><\/p>\n<ul>\n<li>\n<p>\u9a8c\u8bc1\u53ea\u6709\u4e00\u4e2a\u6d3b\u8dc3\u4f1a\u8bdd\u4ee4\u724c\uff1b\u8fc7\u65f6\u56de\u8c03\u5e94\u88ab coordinator \u4e22\u5f03\u3002<\/p>\n<\/li>\n<li>\n<p>\u786e\u4fdd\u6309\u952e\u8bf4\u8bdd\u677e\u5f00\u65f6\u59cb\u7ec8\u4f7f\u7528\u6d3b\u8dc3\u4ee4\u724c\u8c03\u7528 <code>endCapture<\/code>\uff1b\u5982\u679c\u6587\u672c\u4e3a\u7a7a\uff0c\u9884\u671f <code>dismiss<\/code> \u4e14\u4e0d\u64ad\u653e\u63d0\u793a\u97f3\u6216\u53d1\u9001\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u8fc1\u79fb\u6b65\u9aa4\uff08\u5efa\u8bae\uff09<\/h3>\n<ol>\n<li>\u6dfb\u52a0 <code>VoiceSessionCoordinator<\/code>\u3001<code>VoiceSession<\/code> \u548c <code>VoiceSessionPublisher<\/code>\u3002<\/li>\n<li>\u91cd\u6784 <code>VoiceWakeRuntime<\/code>\uff0c\u4f7f\u5176\u521b\u5efa\/\u66f4\u65b0\/\u7ed3\u675f\u4f1a\u8bdd\uff0c\u800c\u975e\u76f4\u63a5\u64cd\u4f5c <code>VoiceWakeOverlayController<\/code>\u3002<\/li>\n<li>\u91cd\u6784 <code>VoicePushToTalk<\/code>\uff0c\u4f7f\u5176\u63a5\u7ba1\u73b0\u6709\u4f1a\u8bdd\u5e76\u5728\u677e\u5f00\u65f6\u8c03\u7528 <code>endCapture<\/code>\uff1b\u65bd\u52a0\u8fd0\u884c\u65f6\u51b7\u5374\u3002<\/li>\n<li>\u5c06 <code>VoiceWakeOverlayController<\/code> \u8fde\u63a5\u5230 publisher\uff1b\u79fb\u9664\u6765\u81ea runtime\/PTT \u7684\u76f4\u63a5\u8c03\u7528\u3002<\/li>\n<li>\u6dfb\u52a0\u4f1a\u8bdd\u63a5\u7ba1\u3001\u51b7\u5374\u548c\u7a7a\u6587\u672c\u5173\u95ed\u7684\u96c6\u6210\u6d4b\u8bd5\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u8bed\u97f3\u6d6e\u5c42 \u8bed\u97f3\u6d6e\u5c42\u751f\u547d\u5468\u671f\uff08macOS\uff09 \u53d7\u4f17\uff1amacOS \u5e94\u7528\u8d21\u732e\u8005\u3002\u76ee\u6807\uff1a\u5728\u5524\u9192\u8bcd\u4e0e\u6309\u952e\u8bf4\u8bdd\u91cd\u53e0\u65f6\u4fdd\u6301\u8bed\u97f3 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-202","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=202"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":497,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/202\/revisions\/497"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}