siri

Including commands from separate Ruby file

こ雲淡風輕ζ 提交于 2019-12-25 08:46:35
问题 I have a chunk of code that has commands. I want to keep more commands in a separate file and pull them into the main. Thus my main file can be updated without losing any custom commands. How would I go about that? { class myClass() #commands listen_for /what is your name/i do say "my name is mud" end ## Insert Custom.rb here ## # Everything in the custom rb file is just ike the "listen_for" command above end } 回答1: The answe above will not work in this case because there is no listen_for

Can you teach Siri how to recognize the name of your app?

佐手、 提交于 2019-12-24 01:14:30
问题 It is possible to open an app using Siri just by saying the name of the app. If Siri doesn't recognize the name properly (for example if it's not an english word, she won't), you can prepend it with "Open 'app'" - and Siri will match app names slightly more liberally. Here's the question : Is it possible to include a phonetic pronunciation with your own app so that Siri will understand it without using the "open"-keyword? Kind of like you can define pronunciation for contact-names. 回答1: This

Clear input of SFSpeechAudioBufferRecognitionRequest after every result (Swift3)

做~自己de王妃 提交于 2019-12-23 13:16:01
问题 I have integrated speech to text through this appcoda tutorial. The problem I am facing is I want that user can write/edit something himself, but SFSpeechAudioBufferRecognitionRequest doesn't take into consideration the thing user has typed. What's the way to send user typed input in SFSpeechAudioBufferRecognitionRequest or any way to clear SFSpeechAudioBufferRecognitionRequest input params before sending new request. Thanks in advance. 回答1: Here is what I use to create my recognition request

Launch app from INExtension in SiriKit

你离开我真会死。 提交于 2019-12-21 17:26:37
问题 I want to use SiriKit to start a workout. Starting the workout requires opening the main app from the app extension. The boilerplate that Apple provides for the INStartWorkoutIntentHandling handler is func handle(startWorkout startWorkoutIntent: INStartWorkoutIntent, completion: (INStartWorkoutIntentResponse) -> Void) { let userActivity = NSUserActivity(activityType: NSStringFromClass(INStartWorkoutIntent)) let response = INStartWorkoutIntentResponse(code: .success, userActivity: userActivity

iOS: Is there any notification that Siri has appeared?

瘦欲@ 提交于 2019-12-21 06:16:21
问题 I would like to receive a notification each time Siri appears or disappears from the screen. It may appear when the user puts the iPhone near his ear. Is it possible? 回答1: I ran a test and the following notifications are sent when Siri appears: _UIApplicationWillAddDeactivationReasonNotification UIApplicationWillResignActiveNotification ... and when Siri is dismissed: _UIApplicationDidRemoveDeactivationReasonNotification UIApplicationDidBecomeActiveNotification So, no... since there isn't a

Does Apple provide an API for SIRI?

百般思念 提交于 2019-12-17 05:07:39
问题 Is it possible that Apple does or will provide an API for Siri? It would be great if I can be sipping my coffee and say, User: Hey Siri, could you please open Angry Birds; Level 4 and throw a first bird for me. Make sure you at least hit one green pig or it's coming out of your paycheck. Siri: Yes sure, I will do that for you. Is this possible? And would you think Apple will provide this to us? 回答1: In iOS 10, Apple has announced an API for Siri called SiriKit. However, you can only do it as

如何在Mac上使用Siri

我的未来我决定 提交于 2019-12-13 10:40:58
在您的iPhone上,要求Siri执行命令很简单。但是,如果在计算机上工作时附近没有iPhone,会发生什么情况?您也可以在Mac上使用Siri。快速简便,使其成为iMac或MacBook的完美伴侣。 本文中的说明适用于任何运行macOS Sierra或更高版本的Mac 。 如何在Mac上启用Siri 首次购买新Mac时,系统会要求您在设置过程中启用Siri。但是,如果您跳过该步骤,则需要先启用Siri,然后才能使用它。 1.在Mac上,单击屏幕左上角的Apple图标。 2.在菜单中,选择系统偏好设置。 3.在系统偏好设置中,单击Siri以打开Siri偏好设置窗口。 4.在窗口中的Siri图标下,点击启用询问Siri。 5.完成后,您可以关闭首选项窗口。 如何在Mac上打开和使用Ask Siri 现在您的Mac上已启用Siri,您应该可以在屏幕的右上方看到Siri图标。从这里,您将能够使用Siri来执行许多不同的命令。 1.要打开Siri,您只需在屏幕顶部,扩展坞或触摸栏中单击Siri图标。或者,您可以按住Command键和空格键直到Siri响应。 Mac的最新版本使您只需说“嘿Siri”即可在计算机上打开Siri。此功能仅在MacBook Pro(15英寸,2018),MacBook Pro(13英寸,2018,四个Thunderbolt 3端口),MacBook Air

How to launch Siri using scheme url with xcode?

点点圈 提交于 2019-12-13 08:26:15
问题 I need to launch Siri (on a jailbroken device) through the openUrl: method. For example [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"Siri://"]]; 回答1: This isn't possible. Also, Xcode is an IDE - a code editor. It's not a language or a platform. 回答2: There doesn't seem to be any URL Scheme for Siri, so I don't think you can open it that way. Siri is also not a normal App , it's a library that's used by SpringBoard. Anyway, if you want another way to open it, I would try

Open a different UIViewController when app is launched via SiriKit

旧时模样 提交于 2019-12-12 18:33:54
问题 I am trying to implement SiriKit in my iOS app. I want to open a different view controller when the app is launched through Siri. How can I handle this type of operation in my app? 回答1: You can do this, however, first you will have to setup SiriKit in your app, which is a bit of work with a long list of instructions: https://developer.apple.com/library/prerelease/content/documentation/Intents/Conceptual/SiriIntegrationGuide/index.html#//apple_ref/doc/uid/TP40016875-CH11-SW1 . There's also a

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