View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Vídeos

Abrir menu Fechar menu
  • Coleções
  • Todos os vídeos
  • Sobre

Mais vídeos

  • Sobre
  • Código
  • Design high quality Siri media interactions

    Demystify the art of designing Siri experiences for your music and audio apps: We'll show you how to think about crafting great interactions and how you can provide custom vocabulary so that Siri can respond with more accuracy and personality. We'll also explain how you can debug common errors and test your intents using the same methods Apple's own Siri team employs.

    Recursos

      • Vídeo HD
      • Vídeo SD

    Vídeos relacionados

    WWDC20

    • Create quick interactions with Shortcuts on watchOS
    • Decipher and deal with common Siri errors
    • Design for intelligence: Apps, evolved
    • Design for intelligence: Discover new opportunities
    • Design for intelligence: Make friends with "The System"
    • Design for intelligence: Meet people where they are
    • Empower your intents
    • Evaluate and optimize voice interaction for your app
    • Expand your SiriKit Media Intents to more platforms
    • Feature your actions in the Shortcuts app
    • Integrate your app with Wind Down
    • What's new in SiriKit and Shortcuts

    Tech Talks

    • Integrate SiriKit Media Intents with HomePod

    WWDC19

    • Introducing SiriKit Media Intents
  • Buscar neste vídeo...
    • 5:46 - resolveMediaItems method

      func resolveMediaItems(for intent: INPlayMediaIntent, with completion: @escaping ([INPlayMediaMediaItemResolutionResult]) -> Void) {
          let mediaSearch = intent.mediaSearch
          resolveMediaItems(for: mediaSearch) { optionalMediaItems in
              guard let mediaItems = optionalMediaItems else {
                  return
              }
              completion(INPlayMediaMediaItemResolutionResult.successes(with: mediaItems))
          }
      }
    • 10:21 - User vocabulary

      let vocabulary = INVocabulary.shared()
      let playlistNames = NSOrderedSet(objects: "70s punk classics")
      vocabulary.setVocabularyStrings(playlistNames, of: .mediaPlaylistTitle)
    • 11:28 - Global vocabulary example

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      	<key>ParameterVocabularies</key>
      	<array>
      		<dict>
      			<key>ParameterNames</key>
      			<array>
      				<string>INPlayMediaIntent.playlistTitle</string>
      			</array>
      			<key>ParameterVocabulary</key>
      			<array>
      				<dict>
      					<key>VocabularyItemSynonyms</key>
      					<array>
      						<dict>
      							<key>VocabularyItemPhrase</key>
      							<string>70s punk anthems</string>
      						</dict>
      					</array>          
      					<key>VocabularyItemIdentifier</key>
      					<string>70s punk anthems</string>
      				</dict>
      			</array>
      		</dict>
      	</array>
      </dict>
      </plist>
    • 13:07 - Resolve media items method

      func resolveMediaItems(for intent: INPlayMediaIntent, with completion: @escaping ([INPlayMediaMediaItemResolutionResult]) -> Void) {
          let mediaSearch = intent.mediaSearch
          resolveMediaItems(for: mediaSearch) { optionalMediaItems in
              guard let mediaItems = optionalMediaItems else {
                  return
              }
              completion(INPlayMediaMediaItemResolutionResult.successes(with: mediaItems))
          }
      }
    • 13:31 - User vocabulary syncing

      // Set our playlist title in user vocabulary so we get the proper Siri intent
      let vocabulary = INVocabulary.shared()
      let playlistNames = NSOrderedSet(objects: "70s punk classics")
      vocabulary.setVocabularyStrings(playlistNames, of: .mediaPlaylistTitle)
    • 14:57 - Global vocabulary example

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      	<key>ParameterVocabularies</key>
      	<array>
      		<dict>
      			<key>ParameterNames</key>
      			<array>
      				<string>INPlayMediaIntent.playlistTitle</string>
      			</array>
      			<key>ParameterVocabulary</key>
      			<array>
      				<dict>
      					<key>VocabularyItemSynonyms</key>
      					<array>
      						<dict>
      							<key>VocabularyItemPhrase</key>
      							<string>70s punk anthems</string>
      						</dict>
      					</array>          
      					<key>VocabularyItemIdentifier</key>
      					<string>70s punk anthems</string>
      				</dict>
      			</array>
      		</dict>
      	</array>
      </dict>
      </plist>

Developer Footer

  • Vídeos
  • WWDC20
  • Design high quality Siri media interactions
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines