Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Dialogflow and Chinese Room
Search
senyoltw
November 18, 2018
Programming
1
550
Dialogflow and Chinese Room
Dialogflowと中国語の部屋
VUILT登壇資料
senyoltw
November 18, 2018
Tweet
Share
More Decks by senyoltw
See All by senyoltw
Nature Remo Meet Up ユーザートーク
senyoltw
0
210
Other Decks in Programming
See All in Programming
Click-free releases & the making of a CLI app
oheyadam
2
110
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
190
CSC509 Lecture 11
javiergs
PRO
0
180
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
220
RubyLSPのマルチバイト文字対応
notfounds
0
120
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
Better Code Design in PHP
afilina
PRO
0
120
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
CSC509 Lecture 09
javiergs
PRO
0
140
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
310
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
The Cost Of JavaScript in 2023
addyosmani
45
6.7k
Optimizing for Happiness
mojombo
376
70k
What's in a price? How to price your products and services
michaelherold
243
12k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Designing for humans not robots
tammielis
250
25k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
Transcript
Dialogflowͱதࠃޠͷ෦ ͤʹΐʔΔ(@senyoltw)
ࣗݾհ
ͤʹΐʔΔ(@senyoltw) ͱಡΜͰ͍͚ͨͩΕɻ ΠϯλʔωοτքͰ senyoltw ͱ͍͏໊લͰա͍ͯ͝͠·͢
झຯͰIoTεϚʔτϗʔϜͰ ༡ΜͰ͍·͢ɻ ެ։ͨ͠ϓϩάϥϛϯά͕͍ͭͷؒʹ͔༻ʹΘΕͯͨΓɺ εϚʔτϗʔϜͰΠϯλϏϡʔड͚ͨ͜ͱ
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,υϥ͑Μ,ͳͲͳͲ
ࠓɺ͢͜ͱ
Dialogflowͱதࠃޠͷ෦ ͤʹΐʔΔ(@senyoltw)
தࠃޠͷ෦ͬͯͬͯΔ?
νϡʔϦϯάςετͬͯͬ ͯΔ? தࠃޠͷ෦νϡʔϦϯάςετͷൃలܗͳͷͰɻ
νϡʔϦϯάςετͱ ίϯϐϡʔλʔ͕ೳΛ͔ͭͲ͏͔Λఆ͢Δςετɻ 1950ʹӳࠃͷֶऀΞϥϯɾνϡʔϦϯά͕ߟҊɻ ਓ͓ؒΑͼਓؒΛϚω͢Δίϯϐϡʔλʔʹର͠ɺ؍ऀ͕Θ͔Βͳ͍ܗͰձΛͤ͞Δɻ ؍ऀ͕ਓؒͱίϯϐϡʔλͷ۠ผ͕͔ͭͳ͍߹ίϯϐϡʔλੑΛ͍࣋ͬͯΔɻ உੑϝʔϧͷ૬ख͕ ίϯϐϡʔλ͔ঁੑ͔ அͰ͖ΔͩΖ͏͔ɾɾɾ? ͠ɺஅͰ͖ͳ͍ͷͰ͋Ε ίϯϐϡʔλੑΛ͍࣋ͬͯΔɻ
தࠃޠͷ෦ͱ 1. ෦ʹதࠃޠΛཏͨ͠ϚχϡΞϧͱ ϚχϡΞϧΛҾ͘ਓ͕ؒଘࡏ͢Δ 2. ෦ʹதࠃޠͰ࣭͕͍ࠐΉ 3. ϚχϡΞϧΛҾ͘ਓதࠃޠͷҙຯΘ͔Βͳ͍͕ɺ ϚχϡΞϧʹैͬͯճΛ֎ʹฦ͢ɻ 4.
͢Δͱɺ෦ͷ֎ʹ͍Δਓɺ ʮ෦ʹதࠃޠΛཧղ͢Δਓ͕͍Δʯͱߟ͑Δɻ 5. ͔͠͠ɺ࣮ࡍ෦ͷதʹ தࠃޠΛཧղͯ͠ΔਓͳͲ͍ͳ͍
தࠃޠͷ෦ͱ • ֶऀͷδϣϯɾαʔϧ͕ɺ1980ʹఏএɻ • AIϚχϡΞϧͱϚχϡΞϧΛҾ͘ೳྗ͔Βཱ͢Δͱ͢Δ • νϡʔϦϯάςετͰɺAI͕ਓؒͱ۠ผ͕͔ͭͳ͍͘Β͍ ਓؒΒ͍͠ձͰ͖Δͱͯ͠ɺ ͦΕϧʔϧʹैͬͯɺϚχϡΞϧ͔Βճ͍ͯ͠Δ͚ͩ ͳͷͰɺAIੑͱ͍͏ͷΛ࣋ͨͳ͍ͷͰͳ͍͔ɻ
Dialogflow ͱ͜ΖͰɺDialogflowͱ͍͏ɺαʔϏε͕ଘࡏ͠·͢Ͷɻ
Dialogflowͱ DialogflowͱɺGoogle͕ఏڙ͍ͯ͠Δࣗવݴޠରϓϥοτϑ ΥʔϜɻ Dialogflowຊޠ(ࣗવݴޠ)Λղੳ͠ɺࣄલʹઃఆ͞Εͨձ ϧʔϧʹैͬͯɺճΛग़ྗ͢Δɻ Google HomeͷΞϓϦͷόοΫΤϯυʹ༻͞Ε͍ͯΔαʔϏε
Dialogflowͱ Dialogflowຊޠ(ࣗવݴޠ)Λղੳ͠ɺࣄલʹઃఆ͞Εͨձ ϧʔϧʹैͬͯɺճΛग़ྗ͢Δɻ தࠃޠͷ෦ͱ ɾ෦ʹதࠃޠΛཏͨ͠ϚχϡΞϧͱϚχϡΞϧΛҾ͘ਓؒ ͕ଘࡏ͢Δ
Dialogflowͬͯ தࠃޠͷ෦ʹ͍ΔਓؒͰ ֎෦͔Β༩͑ΒΕͨݴ༿(࣭)ʹରͯ͠ɺ ϧʔϧʹै͍ɺσʔλϕʔε(ϚχϡΞϧ)͔Βճ͢Δ ͱ͍͏ػೳΛఏڙ͢ΔαʔϏεͩ͠ɾɾɾ
Πϯλʔϗϯ υΞӽ͠ʹ෦ͷதͱ֎Λͭͳ͛Δͷɻ ฦࣄ͕ͯ͠ɺຊʹɺ෦ͷதʹਓ͕͍Δ͔Ͳ͏͔அͰ͖ͳ͍ ͦΕ͕ɺਓؒͷ͔Իͨ͠Ի͔Ͳ͏͔ɾɾɾ
DialogflowͱΠϯλʔϗϯ Έ߹ΘͤͨΒதࠃޠͷ෦͕࣮ ग़དྷΔͷͰ
࡞ͬͯΈͨ
֓೦ਤ
σϞ(࣮ࡍʹ࣮ݧͨ͠ͱ͖ͷϦϓϨΠ) ศ͞ΜʮศͰʔ͢ʯ ϩϘʮ͓ർΕ༷Ͱ͢ɻࠓɺख͕ͤͳ͍ͷͰυ Ξʹ͋ΔϘοΫεʹೖΕ͍͚ͯͨͩ·͔͢ʯ ศ͞ΜʮΘ͔Γ·ͨ͠ʯ ϩϘʮΑΖ͓͘͠Ͷ͕͍͠·͢ɻʯ
ϑϩʔνϟʔτ 1. Πϯλʔϗϯɾݰؔʹਓ͕͍Δ͜ͱΛݕ(Cloud Vision API) ↓ 2. ୭͔ΛਘͶΔԻΛग़ྗ ↓ 3.
ฦࣄΛςΩετԽ(Google Cloud Speech-to-Text) ↓ 4. DialogflowʹςΩετΛૹΓɺϨεϙϯεΛΒ͏ (ձͷσʔλΛDialogflowʹૹΔඞཁ͕͋Δ) ↓ 5. ϨεϙϯεͱҰகͨ͠ԻΛग़ྗ͢Δ ↓ 6. Χϝϥͷಈ͖Λ֬ೝ͠ɺ·ͩݰؔʹਓ͕͍ΔͳΒ3ʹΔ
Dialogflow-for-aiy-voicekit • https://github.com/senyoltw/dialogflow-for-aiy-voicekit • DialogflowΛVoice Kit(Raspberry PiͰ࡞Δࣗ࡞Google Home)Ͱ ͑ΔΑ͏ʹ •
DialogflowʹଓͰ͖ΔͷͰΞϓϦͷςετʹ࠷ద • ʮOK Google [ςετதΞϓϦ]ʹͭͳ͍Ͱʯͱ͔ݴΘͳͯ͘େৎ • ͏·͑͘ಠࣗͷεϚʔτεϐʔΧʔ • ୯Ұͷػೳ͔͠ඞཁ͕ͳ͍߹ͷεϚʔτεϐʔΧʔΛ࡞ΕΔ • ྫ͑ձࣾͷडʹஔ͘ͱ͔ɺΠϕϯτͰͷઆ໌ʹ͏ͱ͔
ͱ͜ΖͰɺɺɺɺ
Dialogflowͱి தࠃޠͷ෦Ͱ͢ΑͶ???
ిΛtwilioͰड͚ͯɺόοΫΤϯυͰࣗવݴޠղੳΛͯ͠ DialogflowͰฦࣄΛͯ͠ɺ݁ՌΛkintoneʹߘ
தࠃޠͷ෦ͱΈͳͤΔ αʔϏεͯ͢Dialogflowͱ Έ߹ΘͤΔ͜ͱͰࣗಈԽͰ͖Δɻ εϚʔτεϐʔΧʔͷ΄͔ʹ VUIͷະདྷͨ͘͞Μ͋Δɻ
ऴΘΓɻ senyoltw.net