How to stop announcing of Siri Shortcuts Parameters over headsets (iOS 13)?

放肆的年华 提交于 2019-12-11 16:44:44

问题


Whenever I invoked Siri Shortcut say "HomeControl" and if my iPhone is not connected with any bluetooth device then Siri say's "What can I do for you" (Disambiguation Prompt) after this show the list of all parameters and ready to listen.

But if my iPhone is connected with any Bluetooth device then Siri Say's "What can I do for you" (Disambiguation Prompt) and after this announced all the parameters like "Turn Off the fan", "Turn On the fan" .... etc.

What i want to do is :- I want to stop announcing all parameters.

Question is :- How can I stop accounting all the parameters when I invoked Siri over headset and perform actions?

class IntentHandler: INExtension, FwAssistanceIntentHandling{

func handle(intent: FwAssistanceIntent, completion: @escaping (FwAssistanceIntentResponse) -> Void) {
    switch intent.everthing {
    case .turnOnTheFan:
        completion(.success(result: "Turning on the fan"))
    case .turnOffTheFan:
        completion(.success(result: "Turning off the fan"))
    default:
        completion(.init(code: .failure, userActivity: .none))
    }
}

func resolveEverthing(for intent: FwAssistanceIntent, with completion: @escaping (FAQandActionsResolutionResult) -> Void) {
    if intent.everthing == .unknown{
        completion(FAQandActionsResolutionResult.needsValue())
    }else{
        completion(FAQandActionsResolutionResult.success(with: intent.everthing))
    }
}

来源:https://stackoverflow.com/questions/57759031/how-to-stop-announcing-of-siri-shortcuts-parameters-over-headsets-ios-13

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!