Posts

Post not yet marked as solved
0 Replies
715 Views
Our main issue seems to be getting Siri to recognize the name of the App, which is a bit of a mouthful. Currently only about 40-50% of voice commands get recognized by Siri as being meant for out app and reach the INPlayMediaIntentHandling code we have set up. The app name currently consists of an acronym/initials, I won't post the name here, but something similar to the app name would be “BBCV Ember”. I’ve set up a pronunciation hint in the info.plist, and have also set up localized alternative app names and pronunciations. The pronunciation hints I've set for the acronym look like "B B C V Ember". As well as a "AppIntentVocabulary.plist" file with Intent Examples. For example: Play trending videos in BBCV Ember and Play popular audio with BBCV Ember As you can see above, we’re really only looking for the “play” verb with our SiriKit extension. The app is configured with for INPlayMediaIntent and INSearchForMediaIntent so that we can get access to an INMediaSearch object when parsing out the voice commands that do actually reach our SiriKit code. Half the time one of the intent examples above will trigger Apple Music or YouTube instead of our app. I’ve also registered “podcast” names in the app that match the examples above, but that hasn’t helped much either.    static func updateSiriVocabulary() {      let context = INMediaUserContext()      context.numberOfLibraryItems = 20      context.subscriptionStatus = .subscribed      context.becomeCurrent()      let vocabulary = INVocabulary.shared()      vocabulary.setVocabularyStrings(IntentMediaType.playlistNames, of: .mediaPlaylistTitle)    } In the code above, IntentMediaType.playlistNames would resolve to the following: {(    audio,    "trending audio",    "top audio",    "popular audio",    podcast,    "trending podcast",    "top podcast",    "popular podcast",    podcasts,    "trending podcasts",    "top podcasts",    "popular podcasts",    video,    "trending video",    "top video",    "popular video",    videos,    "trending videos",    "top videos",    "popular videos" )}
Posted Last updated
.