让 iOS 应用程序检测用户是否试图呼叫 Siri - swift
Make iOS app detect if user is trying to call for Siri - swift
我想知道您是否可以收听用户对 Siri 的呼叫?每次打开 Siri(导致 "Hey Siri"),我都希望我的应用注册它。例如,目标是计算调用次数,或者每次调用 Siri 时在我的应用程序中并行执行某些操作。
我知道 Siri 的 API 非常封闭......这可能吗?
如前所述,不,但我会告诉你另一个原因。
To avoid running the main processor all day just to listen for the
trigger phrase, the iPhone’s Always On Processor (AOP) (a small,
low-power auxiliary processor, that is, the embedded Motion
Coprocessor) has access to the microphone signal (on 6S and later). We
use a small proportion of the AOP’s limited processing power to run a
detector with a small version of the acoustic model (DNN).
https://machinelearning.apple.com/2017/10/01/hey-siri.html
tl;博士
您无权访问 AOP 正在做什么,因此您将永远不知道它何时被调用。
我想知道您是否可以收听用户对 Siri 的呼叫?每次打开 Siri(导致 "Hey Siri"),我都希望我的应用注册它。例如,目标是计算调用次数,或者每次调用 Siri 时在我的应用程序中并行执行某些操作。 我知道 Siri 的 API 非常封闭......这可能吗?
如前所述,不,但我会告诉你另一个原因。
To avoid running the main processor all day just to listen for the trigger phrase, the iPhone’s Always On Processor (AOP) (a small, low-power auxiliary processor, that is, the embedded Motion Coprocessor) has access to the microphone signal (on 6S and later). We use a small proportion of the AOP’s limited processing power to run a detector with a small version of the acoustic model (DNN).
https://machinelearning.apple.com/2017/10/01/hey-siri.html
tl;博士
您无权访问 AOP 正在做什么,因此您将永远不知道它何时被调用。