Question on SiriKit Capability

Does anyone know if there’s an easy way to get the contents of the spoken text from a Siri session using SiriKit alone? I’m writing an Intents Extension and need only to be able to read into my Swift code whatever it was that the user said in a Siri session. I don’t want to use the Speech Framework as I want my Intents Extension to work directly via Siri each time Siri is used. I already have my IE Framework set up in xcode, along with signing, Siri use authorization etc. Any help is much appreciated.

Hey @osullivan and welcome to the forums :slightly_smiling_face:

SiriKit is fairly strict in the way that intents are discovered, resolved and handled and the text representation of the users actual request isn’t exposed to third party developers via SiriKit.

There is no generic intent to allow for anything like this so you have to stick with the supported actions as defined by Apple:

  • Audio or video calling
  • Messaging
  • Payments
  • Searching photos
  • Workouts
  • Ride booking

Like you already mentioned, you’ll need to use the Speech Framework in your app and not use Siri if you wanted to do anything more i’m afraid. Hope this helped :+1:

Related Reading:

1 Like

About what I thought. Thanks much Liam - very helpful.

1 Like