Search code examples
iosspeech-recognitionvoice-recognitionsirikit

How do I embed my app commands with siri or any other voice activation library


Basically, I want my app to be voice activated If user asks my app to open then it should open if the user says something it has to be typed in the textbox if the user says to click on a button it has to be done if the user wants to be voice read then it should read it out. basically, I would like to read the user command sometimes if possible in the app and serve my user base the best

There is no much documentation available there,,, so I thought of asking the question here


Solution

  • This is not possible. You cannot use Siri with apps for anything else than what is implemented in the SiriKit framework and SiriKit does not provide any methods for just opening your app without actually handling an intent and custom commands are also not supported at the moment.

    For dictation you can use the Speech framework and for the system to "read out" something from your UI, you need to support VoiceOver, which is part of Accessibility.