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

Dialogflow and Chinese Room

senyoltw
November 18, 2018

Dialogflow and Chinese Room

Dialogflowと中国語の部屋
VUILT登壇資料

senyoltw

November 18, 2018
Tweet

More Decks by senyoltw

Other Decks in Programming

Transcript

  1. Dialogflowͱதࠃޠͷ෦԰
    ͤʹΐʔΔ(@senyoltw)

    View full-size slide

  2. ͤʹΐʔΔ(@senyoltw)

    ͱಡΜͰ͍͚ͨͩΕ͹ɻ
    ΠϯλʔωοτքͰ͸ senyoltw ͱ͍͏໊લͰա͍ͯ͝͠·͢

    View full-size slide

  3. झຯͰIoT΍εϚʔτϗʔϜͰ
    ༡ΜͰ͍·͢ɻ
    ެ։ͨ͠ϓϩάϥϛϯά͕͍ͭͷؒʹ͔঎༻੡඼ʹ࢖ΘΕͯͨΓɺ

    εϚʔτϗʔϜͰΠϯλϏϡʔड͚ͨ͜ͱ΋

    View full-size slide

  4. custom-hotword-for-aiy-voicekit
    • https://github.com/senyoltw/custom-hotword-for-aiy-voicekit
    • Snowboyͱ͍͏ΦϦδφϧͷϗοτϫʔυΛ࡞ΕΔαʔϏε
    • ͍ΖΜͳݴޠ࣮૷αϯϓϧ͕͋Δ
    • ૊ΈࠐΈσόΠεͰ࢖༻Մ,ݸਓϑϦʔ/঎༻ཁ૬ஊ
    • Voice KitͰ࢖͑ΔΑ͏ʹ
    • ޷͖ͳϗοτϫʔυ͔ΒGoogle homeΛݺͼग़ͤΔΑ͏ʹ
    • J.A.R.V.I.S.(δϟʔϰΟε), Alexa,υϥ͑΋Μ,ͳͲͳͲ

    View full-size slide

  5. ࠓ೔ɺ࿩͢͜ͱ

    View full-size slide

  6. Dialogflowͱதࠃޠͷ෦԰
    ͤʹΐʔΔ(@senyoltw)

    View full-size slide

  7. தࠃޠͷ෦԰ͬͯ஌ͬͯΔ?

    View full-size slide

  8. νϡʔϦϯάςετͬͯ஌ͬ
    ͯΔ?
    தࠃޠͷ෦԰͸νϡʔϦϯάςετͷൃలܗͳͷͰɻ

    View full-size slide

  9. νϡʔϦϯάςετͱ͸
    ίϯϐϡʔλʔ͕஌ೳΛ΋͔ͭͲ͏͔Λ൑ఆ͢Δςετɻ
    1950೥ʹӳࠃͷ਺ֶऀΞϥϯɾνϡʔϦϯά͕ߟҊɻ
    ਓ͓ؒΑͼਓؒΛϚω͢Δίϯϐϡʔλʔʹର͠ɺ؍࡯ऀ͕Θ͔Βͳ͍ܗͰձ࿩Λͤ͞Δɻ
    ؍࡯ऀ͕ਓؒͱίϯϐϡʔλͷ۠ผ͕͔ͭͳ͍৔߹͸ίϯϐϡʔλ͸஌ੑΛ͍࣋ͬͯΔɻ
    உੑ͸ϝʔϧͷ૬ख͕
    ίϯϐϡʔλ͔ঁੑ͔
    ൑அͰ͖ΔͩΖ͏͔ɾɾɾ?

    ΋͠ɺ൑அͰ͖ͳ͍ͷͰ͋Ε͹
    ίϯϐϡʔλ͸஌ੑΛ͍࣋ͬͯΔɻ

    View full-size slide

  10. தࠃޠͷ෦԰ͱ͸
    1. ෦԰ʹ͸தࠃޠΛ໢ཏͨ͠ϚχϡΞϧͱ

    ϚχϡΞϧΛҾ͘ਓ͕ؒଘࡏ͢Δ
    2. ෦԰ʹ͸தࠃޠͰ࣭໰͕෣͍ࠐΉ
    3. ϚχϡΞϧΛҾ͘ਓ͸தࠃޠͷҙຯ͸Θ͔Βͳ͍͕ɺ

    ϚχϡΞϧʹैͬͯճ౴Λ֎ʹฦ͢ɻ
    4. ͢Δͱɺ෦԰ͷ֎ʹ͍Δਓ͸ɺ

    ʮ෦԰ʹ͸தࠃޠΛཧղ͢Δਓ͕͍Δʯͱߟ͑Δɻ
    5. ͔͠͠ɺ࣮ࡍ͸෦԰ͷதʹ͸

    தࠃޠΛཧղͯ͠ΔਓͳͲ͍ͳ͍

    View full-size slide

  11. தࠃޠͷ෦԰ͱ͸
    • ఩ֶऀͷδϣϯɾαʔϧ͕ɺ1980೥ʹఏএɻ
    • AI͸ϚχϡΞϧͱϚχϡΞϧΛҾ͘ೳྗ͔Β੒ཱ͢Δͱ͢Δ
    • νϡʔϦϯάςετͰɺAI͕ਓؒͱ۠ผ͕͔ͭͳ͍͘Β͍

    ਓؒΒ͍͠ձ࿩Ͱ͖Δͱͯ͠΋ɺ

    ͦΕ͸ϧʔϧʹैͬͯɺϚχϡΞϧ͔Βճ౴͍ͯ͠Δ͚ͩ

    ͳͷͰɺAI͸஌ੑͱ͍͏΋ͷΛ࣋ͨͳ͍ͷͰ͸ͳ͍͔ɻ

    View full-size slide

  12. Dialogflow
    ͱ͜ΖͰɺDialogflowͱ͍͏ɺαʔϏε͕ଘࡏ͠·͢Ͷɻ

    View full-size slide

  13. Dialogflowͱ͸
    Dialogflowͱ͸ɺGoogle͕ఏڙ͍ͯ͠Δࣗવݴޠର࿩ϓϥοτϑ
    ΥʔϜɻ
    Dialogflow͸೔ຊޠ(ࣗવݴޠ)Λղੳ͠ɺࣄલʹઃఆ͞Εͨձ࿩
    ϧʔϧʹैͬͯɺճ౴Λग़ྗ͢Δɻ
    Google HomeͷΞϓϦͷόοΫΤϯυʹ࢖༻͞Ε͍ͯΔαʔϏε

    View full-size slide

  14. Dialogflowͱ͸
    Dialogflow͸೔ຊޠ(ࣗવݴޠ)Λղੳ͠ɺࣄલʹઃఆ͞Εͨձ࿩
    ϧʔϧʹैͬͯɺճ౴Λग़ྗ͢Δɻ
    தࠃޠͷ෦԰ͱ͸
    ɾ෦԰ʹ͸தࠃޠΛ໢ཏͨ͠ϚχϡΞϧͱϚχϡΞϧΛҾ͘ਓؒ
    ͕ଘࡏ͢Δ

    View full-size slide

  15. Dialogflowͬͯ

    தࠃޠͷ෦԰ʹ͍ΔਓؒͰ͸
    ֎෦͔Β༩͑ΒΕͨݴ༿(࣭໰)ʹରͯ͠ɺ

    ϧʔϧʹै͍ɺσʔλϕʔε(ϚχϡΞϧ)͔Βճ౴͢Δ

    ͱ͍͏ػೳΛఏڙ͢ΔαʔϏεͩ͠ɾɾɾ

    View full-size slide

  16. Πϯλʔϗϯ
    υΞӽ͠ʹ෦԰ͷதͱ֎Λͭͳ͛Δ΋ͷɻ
    ฦࣄ͕ͯ͠΋ɺຊ౰ʹɺ෦԰ͷதʹਓ͕͍Δ͔Ͳ͏͔൑அ͸Ͱ͖ͳ͍

    ͦΕ͕ɺਓؒͷ੠͔࿥Իͨ͠Ի੠͔Ͳ͏͔΋ɾɾɾ

    View full-size slide

  17. DialogflowͱΠϯλʔϗϯ

    ૊Έ߹ΘͤͨΒதࠃޠͷ෦԰͕࣮
    ૷ग़དྷΔͷͰ͸

    View full-size slide

  18. σϞ(࣮ࡍʹ࣮ݧͨ͠ͱ͖ͷϦϓϨΠ)
    ୐഑ศ͞Μʮ୐഑ศͰʔ͢ʯ
    ϩϘʮ͓ർΕ༷Ͱ͢ɻࠓɺख͕཭ͤͳ͍ͷͰυ
    Ξʹ͋Δ୐഑ϘοΫεʹೖΕ͍͚ͯͨͩ·͔͢ʯ
    ୐഑ศ͞ΜʮΘ͔Γ·ͨ͠ʯ
    ϩϘʮΑΖ͓͘͠Ͷ͕͍͠·͢ɻʯ

    View full-size slide

  19. ϑϩʔνϟʔτ
    1. Πϯλʔϗϯɾݰؔʹਓ͕͍Δ͜ͱΛݕ஌(Cloud Vision API)


    2. ୭͔ΛਘͶΔԻ੠Λग़ྗ


    3. ฦࣄΛςΩετԽ(Google Cloud Speech-to-Text)


    4. DialogflowʹςΩετΛૹΓɺϨεϙϯεΛ΋Β͏

    (௚઀ձ࿩ͷσʔλΛDialogflowʹૹΔඞཁ͕͋Δ)


    5. ϨεϙϯεͱҰகͨ͠Ի੠Λग़ྗ͢Δ


    6. Χϝϥͷಈ͖Λ֬ೝ͠ɺ·ͩݰؔʹਓ͕͍ΔͳΒ3ʹ໭Δ

    View full-size slide

  20. Dialogflow-for-aiy-voicekit
    • https://github.com/senyoltw/dialogflow-for-aiy-voicekit
    • DialogflowΛVoice Kit(Raspberry PiͰ࡞Δࣗ࡞Google Home)Ͱ௚઀࢖
    ͑ΔΑ͏ʹ
    • Dialogflowʹ௚઀઀ଓͰ͖ΔͷͰΞϓϦͷςετʹ΋࠷ద
    • ʮOK Google [ςετதΞϓϦ]ʹͭͳ͍Ͱʯͱ͔ݴΘͳͯ͘΋େৎ෉
    • ͏·͘࢖͑͹ಠࣗͷεϚʔτεϐʔΧʔ΋
    • ୯Ұͷػೳ͔͠ඞཁ͕ͳ͍৔߹ͷεϚʔτεϐʔΧʔΛ࡞ΕΔ
    • ྫ͑͹ձࣾͷड෇ʹஔ͘ͱ͔ɺΠϕϯτͰ੡඼ͷઆ໌ʹ࢖͏ͱ͔

    View full-size slide

  21. ͱ͜ΖͰɺɺɺɺ

    View full-size slide

  22. Dialogflowͱి࿩΋

    தࠃޠͷ෦԰Ͱ͢ΑͶ???

    View full-size slide

  23. ి࿩ΛtwilioͰड͚ͯɺόοΫΤϯυͰࣗવݴޠղੳΛͯ͠

    DialogflowͰฦࣄΛͯ͠ɺ݁ՌΛkintoneʹ౤ߘ

    View full-size slide

  24. தࠃޠͷ෦԰ͱΈͳͤΔ

    αʔϏε͸͢΂ͯDialogflowͱ

    ૊Έ߹ΘͤΔ͜ͱͰࣗಈԽͰ͖Δɻ


    εϚʔτεϐʔΧʔͷ΄͔ʹ΋

    VUIͷະདྷ͸ͨ͘͞Μ͋Δɻ

    View full-size slide

  25. ऴΘΓɻ
    senyoltw.net

    View full-size slide