Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Siri をだしにしてみる(Siri Develop Guide 2018)

notoroid
November 24, 2018

Siri をだしにしてみる(Siri Develop Guide 2018)

2018年11月24日(土)に開催されたSiri 機能の実装についての発表資料。

#iPhone #iOS #AppleDeveloper #Siri

Siriを使うにあたって当時キャッチアップできていなかったiOSアプリ開発関連の周辺知識について発表。

https://devsap.connpass.com/event/104285/

notoroid

November 24, 2018
Tweet

More Decks by notoroid

Other Decks in Programming

Transcript

  1. 4JSJΛͩ͠ʹͯ͠ΈΔ

    View full-size slide

  2. ೳొཁ !OPUPSPJE

    w ݸਓࣄۀओ
    w ԰߸͍Γ·͢ిࢉاը
    w ೥͸डୗۀ຿͕૿Ճ
    w !OPUPSPJE
    w !JSJNBTV

    View full-size slide

  3. ୊໨
    w 4JSJͷྺ࢙
    w 4JSJ,JUΛ࢖͏্ͰͷΩʔϫʔυ
    w 4JSJ,JUͷ࣮૷

    View full-size slide

  4. 4JSJͷྺ࢙

    View full-size slide

  5. J04ʹ౥ࡌ͞Ε͍ͯΔ4JSJ

    View full-size slide

  6. Ի੠ΛೝࣝʹJ04Λ௨ͯ͠ػೳΛ
    ఏڙ͢ΔαʔϏε

    View full-size slide

  7. 4JSJͷྺ࢙
    w "QQMFۘ੡ͷػೳ͔Β։࢝
    w J04ެ։౰ॳαʔυύʔςΟʹ͸ඇެ։
    w ໨ۄػೳ͕ͩΞϓϦ͸գாͷ֎
    w J04αʔυύʔςΟ΁Ұ෦ػೳެ։ EPNBJO

    w J04αʔυύʔςΟ΁ͷػೳެ։Λ EPNBJO

    w J044JSJ4IPSUDVUΛ௥Ճ

    View full-size slide

  8. J04͔ΒJ04·Ͱ
    ΞϓϦ͸գாͷ֎ͩͬͨ

    View full-size slide

  9. գாͷ֎ͩͬͨΞϓϦ͕J04
    ͰରԠՄೳʹͳͬͨͷ͸Կނ

    View full-size slide

  10. ͦΕ͸ϥΠόϧ΁ͷରԠʹ͋Γ

    View full-size slide

  11. 4JSJͷྺ࢙
    w J04ϨΠΞ΢τมߋ
    w εϚʔτεϐʔΧʔ "MFYB "NB[PO&DIP
    ͕ීٴ࢝͠ΊΔ
    w J04αʔυύʔςΟ΁Ұ෦ػೳެ։
    w J04
    w 8PSLqPXങऩ ΞϓϦʹΑΔϚΫϩػೳఏڙ

    w J044JSJ4IPSUDVUΛ௥Ճ
    w γϣʔτΧοτΛܦ༝ͯ͠4JSJ͔ΒΞϓϦͷػೳݺͼग़͠

    View full-size slide

  12. εϚʔτεϐʔΧʔ͕ීٴʹର͠
    ๛෋ͳαʔυύʔςΟ੡ΞϓϦ͕γϣʔ
    τΧοτΛ࡞ͬͯ͘ΕΔ͜ͱͰର߅

    View full-size slide

  13. अਪ͢Ε͹ʜ

    View full-size slide

  14. J04·ͰͷҰ෦αʔϏε·Ͱ
    ͷެ։ͩͱ4JSJରԠαʔυύʔ
    ςΟʔ͕૿͑ͳ͍ʂ

    View full-size slide

  15. Ϣʔβʔ͕Α͘࢖͏ػೳΛ
    γϣʔτΧοτͱͯ͠ఏڙͯ͠
    ΋Β͍4JSJ͔Βݺͼग़ͤ͹
    ରԠػೳ͕૿͑Δ͸ͣ

    View full-size slide

  16. ΞϓϦ։ൃऀ͕
    εϚʔτεϐʔΧʔઓ૪ʹ
    ۦΓग़͞Εͨͷ͕
    4JSJ4IPSUDVU

    View full-size slide

  17. ·ͣ͸"QQMFͷ౎߹ʹ
    ͖ͭ͋ͬͯΈΔ

    View full-size slide

  18. 4JSJ,JUΛ࢖͏ͨΊͷΩʔϫʔυ

    View full-size slide

  19. 4JSJ,JUΛ࢖͏ͨΊͷΩʔϫʔυ
    w ؆қ4JSJTIPSU$VUରԠ
    w *OUFOT
    w &YUFOTJPO
    w &NCFEFEGSBNFXPSL
    w "QQ(SPVQ
    w %PNBJO
    w $VTUPN*OUFOU$BUFHPSZ

    View full-size slide

  20. ؆қ4JSJTIPSU$VUରԠ
    w J04·ͰͷΞϓϦͷ4JSJ,JUରԠ͸&YUFOTJPO ޙड़
    ͔͠ͳ͔ͬͨ
    w ΞϓϦͰ4JSJ,JUΛΠϯϙʔτ͓Αͼ/4"DUJWJUZΛొ࿥͢Δ͚ͩͰ΋
    4JSJTIPSUDVUʹରԠͰ͖Δ
    w ͨͩ͠ΞϓϦ͕ىಈ͢Δ͜ͱલఏ

    View full-size slide

  21. /4"DUJWJUZ
    w ΞϓϦ͕֎͔Βͷݺͼग़͠ػೳΛެ։͢ΔͨΊͷఆٛ
    w ΞϓϦଆͰ֎෦ʹެ։͢ΔػೳΛ໌͓ࣔͯ͘͠ඞཁ͕͋Δ
    w 4JSJTIPSU$VU͚ͩͰͳ͘௨஌ͷબ୒ࢶΛ௥ՃͳͲʹ΋࢖༻͢Δ
    w JOGPQMJTUʹఆٛΛ௥Ճ͢Δඞཁ͕͋Δ

    View full-size slide

  22. ͪ͜Βʹ͍ͭͯ͸
    ʦJ04ʧ4JSJ4IPSUDVUTͷ࠷খ࣮૷
    /46TFS"DUJWJUZฤ !TIV

    ͕ৄ͍͠
    IUUQTRJJUBDPNTIVJUFNTEFBFBFDBEFG

    View full-size slide

  23. *OUFOUT
    w J04·Ͱͷ4JSJ,JUʹରԠͤ͞ΔͨΊͷ།Ұͷબ୒ࢶ
    w &YUFOTJPO ޙड़
    ͱ࣮ͯ͠૷
    w *OUFOUT΋4JSJ4IPSUDVUTʹରԠ
    w *OUFOUT͸*OUFOUTGSBNFXPSLͱ*OUFOU6*GSBNFXPSLͰߏ੒

    View full-size slide

  24. &YUFOTJPO
    w J04ΞϓϦʹϑδϡϝϧ͜ͱ͕Ͱ͖ΔΞϓϦͷ֨ೲϞδϡʔϧ
    w ΞϓϦͷϝϞϦۭؒͱ͸ҟͳΔϝϞϦۭؒͰಈ࡞ ௚ײతͳσʔλࢀর͕Ͱ͖ͳ͍

    w &YUFOTJPO͸J04ΞϓϦ͕ΞΫηεͰ͖ΔGSBNFXPSLશͯʹΞΫηεͰ͖ͳ͍
    w ΞϓϦෆཁͰಈ࡞ ඞཁͳ৔߹͸/4"DUJWJUZܦ༝ͰΞϓϦʹख౉͠Մೳ

    w ΞϓϦΑΓ΋࣮૷࣍ୈͰܰྔʹ࡞੒͢Δ͜ͱͰॲཧͷݺͼग़͠Λߴ଎ԽͰ͖Δ

    View full-size slide

  25. ΞϓϦͱ&YUFOTJPOͷϥΠϒϥϦڞ༗
    w ΞϓϦͱ&YUFOTJPO *OUFOTΛؚΉ
    Ͱಉ͡ػೳΛ࢖͍৔߹͕ൃੜ͢Δ
    w ΞϓϦ༻&NCFEFEGSBNFXPSLΛ௥Ճ͢Δ͜ͱͰಉ͡ίʔυΛࢀরՄೳ
    w ಉ͡ίʔυΛࢀরՄೳ͕ͩಈ࡞͍ͯ͠ΔϝϞϦۭ͕ؒҟͳΔͨΊσʔλڞ
    ༗ʹ͸ผ్खஈ͕ඞཁ
    w طଘϓϩδΣΫτʹUBSHFUΛ௥Ճ͢Δ͜ͱͰ௥ՃՄೳ
    w ௥Ճͨ͠&NCFEFEGSBNFXPSL͸JNQPSUఆٛͰ௥ՃՄೳ

    View full-size slide

  26. "QQ(SPVQ
    w ΞϓϦɺ&YUFOTJPOؒͰσʔλΛڞ༗͢Δ࢓૊Έ
    w YDPEF "QQMF%FWFMPQFS$FOUFS ϙʔλϧ
    ͔ΒάϧʔϓΛ࡞੒Ͱ͖Δ
    w /4'JMF.BOBHFSͰϑΝΠϧΛڞ༗͢Δ
    w /46TFS%FGBVMUTͰσʔλΛڞ༗͢Δ

    View full-size slide

  27. %PNBJO
    w *OUFOUTΛ࡞ΔࡍʹؚΊͳͯ͘͸͍͚ͳ͍ػೳͷྖҬͷࣄ
    w ྫ#VTJOFTTEPNBJOࣄۀల։ྖҬ
    w J04·ͰͰछ
    w %PNBJOʹؚ·Εͳ͍ػೳ͸"QQMF͔Βͷఏڙ଴ͪ

    View full-size slide

  28. %PNJOҰཡ
    7P*1$BMMJOH
    7P*1ͷݺͼग़͠
    8PSLPVUT
    ϑΟοτωεͷϫʔΫΞ΢τ
    .BTTBHJOH
    J04ͷϝοηʔδΞϓϦ΁ͷ౤ߘ
    3JEF#PPLJOH
    1BZNFOUT
    ࢧ෷͍ $BS$PNNBOET
    -JTUTBOE/PUFT
    Ϧετ࡞੒ϊʔτ࡞੒
    $BS1MBZ
    7JTVBM$PEFT
    23ίʔυͳͲʹΑΔࢧ෷͍
    1IPUPT
    ࣸਅ

    View full-size slide

  29. $VTUPN*OUFOU$BUFHPSZ
    w 4JSJTIPSU$VUͰػೳΛ෼ྨ͢Δఆٛ
    w ΧςΰϦʹొ࿥͞Ε͍ͯͳ͍΋ͷ͸"QQMFͷొ࿥଴ͪ

    View full-size slide

  30. ֮͑ΔΩʔϫʔυ͕ଟ͍

    View full-size slide

  31. ͜ΕΒΩʔϫʔυΛ࢖ͬͯ
    4JSJ,JUΛݕ౼ͯ͠ΈΔͱ

    View full-size slide

  32. ͓͍ΒͷΞϓϦΛ4JSJ,JUʹରԠͤ͞Α͏͔ɻ/4"DUJWJUZͱ*OUFOUT
    Λ࢖͏ํ͕ࣜ͋Δ͚Ͳ4JSJ4IPSUDVUTͰ͸ͳ͍ͷͰ*OUFOUTҰ୒ͩ
    ͳɻ
    *OUFOUT͸&YUFOTJPOͰ͔࣮͠૷Ͱ͖ͳ্͍ʹΞϓϦͱҰ෦ػೳΛ
    ڞ༗͠Α͏ͱࢥͬͨΒ&NCFEFEGSBNFXPSLΛUBSHFUʹ௥Ճ͠ͳ
    ͚Ε͹ͳΒͳ͍͠ɺ"QQ(SPVQͰΞϓϦͱ*OUFOUOTؒͷσʔλڞ
    ༗΋ߟ͑ͳ͍ͱͳɻ
    *OUFOUTΛ࡞Δʹ͋ͨͬͯͲͷ%PNBJOʹೖΔͷ͔ͳɻ͋Εదͨ͠
    %PNBJO͕ͳ͍͡Όͳ͍͔ɺ΍Ί΍Ί4JSJରԠ΍Ίͨͬ

    View full-size slide

  33. 4JSJରԠͷ஫ҙ
    w 4JSJରԠ͢Δ৔߹ɺ͜͜਺೥Ͱ௥Ճ͞ΕͨJ044%,ͷجຊػೳ
    /46TFS"DUJWJUZ &NCFEFEGSBNFXPSL "QQ(SPVQ
    ͕ҶͮΔࣜʹඞཁʹ
    ͳΔͷͰֶशΛૄ͔ʹ͍ͯ͠Δ৔߹ɺ஌Βͳ͍Ωʔϫʔυ͕ҶͮΔࣜʹग़
    ͖ͯ·͢
    w 4JSJରԠ͸"QQMF͕αʔυύʔςΟͷखߝΛऔΕΔ༷ʹͳ͓ͬͯΓɺ
    %PNBJO΍&YUFOTJPO͕ΞΫηεͰ͖ΔGSBNFXPSLͳͲͷݕ౼͕ඞཁͰ͢
    w ͋ͳͨͷΞϓϦ͸େ఍%PNBJOͷൣᙝ͔Β֎Ε͍ͯ·͢

    View full-size slide