I would like to be able to tell Siri "Hey Siri, play [app name]" for my radio app, and have it play a default station. What are the basic steps to achieve this? I'm not really looking for a Siri Shortcut per se, but built in "play" functionality. Is this possible?
You can achieve the following with Swift.
However, without any coding, Hey Siri, open [App Name] is possible automatically.
To add custom functionalities such as play a default station, please refer to this link
Related
I am writing an app that include a scenario where I want a search using Siri like "Hey Siri, APP_NAME PHRASE" give any phrase using Siri and I need that PHRASE as Text to my app. I tried with custom intent but no luck. Is it possible to achieve with custom intent??
I want to control my BLE Device with the help of Siri. Like "Fan On" or "Fan Off". So, Is that possible with the help of Siri Shortcuts?
Or is there any alternative way to Contorl BLE Device Fan with Siri.
I think if I am able to change a value of variable through Siri Shortcut then I can do this.
I am now able to switch to On or Off my BLE Device Fan with the help of Siri Shortcuts. I just needed to to do one thing that I missed before: to pass the complete class to Siri Shortcuts Intent.
When I invoked Siri and said my own phrase, then Siri will execute the complete class code and off my device fan.
The main thing that I missed is Pass the complete class to Siri Intent rather than passing only specific section of code or function.
According to Intents and thanks to this thread, I know that you can open your app via Siri with "Open [APP NAME]",
What I want to know is if it is possible to tell to Siri just only one word like 'Cheese' to open the Camera app or an other specific keyword set beforehand to open your own app using Siri.
Is it possible ? If yes, I have to use Intents to do that or there is another way ?
Siri runs on the OS level, so in order to use any intents you have set within your app, the user must specify your app.
"Get a ride with Lyft" or "Message Mom in Facebook" etc..
More examples in the doc:
https://developer.apple.com/sirikit/
You can use shortcuts app which comes inbuilt in all iOS devices, for knowing more about Siri Shortcuts refer below links.
https://developer.apple.com/documentation/sirikit/adding_user_interactivity_with_siri_shortcuts_and_the_shortcuts_app
https://www.pocket-lint.com/phones/news/apple/144718-what-is-siri-shortcuts-and-how-does-it-work
after reading the apple doc on SiriKit, there are only 6 services where Siri SDK can be used. But i would like to know if there is any crack or way where i can use this in my home automation app, where the api request is sent to my server on my voice command.
Edited 2018
Is it possible now with the release of iOS 12, WWDC 2018 and the new updates in Siri, Siri Shortcuts.
Thanks in advance
As you have already pointed it out that there are currently only six categories which are supported by SiriKit. If you want to achieve something like Siri, you can give try to SpeechFramework introduced in iOS 10. That is not actually like SiriKit, but you can achieve your goal with some efforts and playing with the framework. Here is the very good tutorial for using SpeechFramework.
For the point of any crack or something, I would highly not recommend it as there may be chances of app disapproval from apple.
EDIT:
Please check the EDIT section in question.
You can kind-of do it with Siri Shortcuts, but it takes effort from the user.
There is no way for the you to create a special voice command. Only users can go into Settings > Siri Shortcuts and define a voice command to execute a shortcut you created from the Application.
Also, note that the voice command cannot have any parameters that are passed to the application. The voice command would have to execute a specific action that was defined by the application via the Shortcut. So, "Turn on light X," is a different shortcut than "Turn on light Y." The user would have to create two different voice commands.
As far as the shortcut goes, you can execute pretty much any code, so making an API call shouldn't be an issue.
Here is my detailed description to achieve by using Siri.
I'm new in Siri kit integration. I have an app which has certain functionalities like send some information to server. The input is number. Below mentioned actions I want to do via Siri :
Instruct to Siri - Send MyAppname amount used
Siri asks - what is the amount.
Instruct to Siri - Submit
Go through Apple doc and some of other blogs but I didn't find any solution as per my requirements.
1.https://developer.apple.com/library/prerelease/content/documentation/Intents/Conceptual/SiriIntegrationGuide/SiriDomains.html#//apple_ref/doc/uid/TP40016875-CH9-SW2
2.http://jamesonquave.com/blog/adding-siri-to-ios-10-apps-in-swift-tutorial/
Do we have any custom Intent to perform this?
Is there any way to achieve this actions
Please let me your ideas.
Thanks in advance.
You can only use the intents from the available domains. If you want to send money or something similar to another user use the INSendPaymentIntent intent.