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
マインクラフトとGoogleHomeを連携してみた
Search
夜子まま
February 26, 2018
Programming
0
260
マインクラフトとGoogleHomeを連携してみた
GDG神戸
GoogleHome勉強会
発表資料
夜子まま
February 26, 2018
Tweet
Share
More Decks by 夜子まま
See All by 夜子まま
小学生における ブロックコーディングからテキストコーディングへの ステップアップの試み
yokmama
0
120
マインクラフトによる プログラミング学習の可能性
yokmama
1
450
Other Decks in Programming
See All in Programming
業務ツールとして使うPostman
msys75
0
110
新宿ダンジョンを可視化してみた
satoshi7190
3
390
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
380
『Railsオワコン』と言われる時代に、なぜブルーモ証券はRailsを選ぶのか
free_world21
1
360
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
140
Hanami and htmx
bkuhlmann
0
220
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
1k
CREってこういうこと? 体験入社 - 提案資料 - / what-is-cre-trial-employment
shinden
1
520
2 週間で Twitter Bot を作ってみた
contour_gara
0
770
slow types ってなんだろう?
karad
0
100
敵対的ポイフル
futabato
0
130
Behind VS Code Extensions for JavaScript / TypeScript Linnting and Formatting
unvalley
6
1.2k
Featured
See All Featured
Unsuck your backbone
ammeep
663
57k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
Building Applications with DynamoDB
mza
88
5.6k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
117
18k
The Pragmatic Product Professional
lauravandoore
26
5.8k
Web Components: a chance to create the future
zenorocha
306
41k
The Mythical Team-Month
searls
216
42k
Making Projects Easy
brettharned
109
5.5k
Faster Mobile Websites
deanohume
300
30k
Imperfection Machines: The Place of Print at Facebook
scottboms
261
12k
Infographics Made Easy
chrislema
238
18k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
21
1.9k
Transcript
GoogleHomeͱϚΠΫϥΛ ͭͳ͛ͯΈͨ
ɹࣗݾհ ͜·· גࣜձࣾRe.Kayo-Systemɹදऔకࣾ גࣜձ͇ࣾ̔̕ɹऔక ΩοζϓϩάϥϛϯάεΫʔϧ͇̔̕ɹߨࢣ GDGਆށɾຊAndroidͷձਆށࢧ෦ PyData OsakaɹڞಉΦʔΨφΠβʔ 8x9Craft ϝΠϯϓϩάϥϚ
ࣥචͨ͠ຊ
ٕज़ॻయʹࢀՃ͠·͢ʂ ࣌ 2018/04/22 () ॴ ळ༿ݪUDX ΞΩόɾεΫΤΞ ओ࠵ TechBooster/ୡਓग़൛ձ ҰൠࢀՃ
ແྉ αʔΫϧࢀՃਃࠐظؒ 01/05ʙ01/24 αʔΫϧࢀՃඅ Ұൠ 7,000ԁ / ύτϩϯ 20,000ԁ ʢ੫ࠐΈʣ
ୈ15ճใίϛϡχςΟʔֶձશࠃେձͰ ͖ͬͯ·͢ɻ http://www.cis.gr.jp/zenkoku.html ςʔϚɿ ʰҬڞͱίϛϡχέʔγϣϯʱ ࣌ɿ 201803݄10()ɾ11() ձɿ େखલେֶɹ͘͞Β॒Ωϟϯύε
αϯTVʹग़ԋ͠·͢ʂ 3/4์ૹ
ຊ
ࠓճͬͯΈ͍ͨ͜ͱ
GoogleHome͔ΒMinecraft • Actions on Google Google Assistant༻ͷΞϓϦέʔγϣϯΛ࡞͢ΔͨΊͷϓϥο τϑΥʔϜͰɺGoogleHome͜ΕΛͬͯΞϓϦΛ࡞Δ͜ͱ͕ Ͱ͖Δɻ •
node.jsͳͲ • herokuɺnowͳͲ
Minecraft ͔ΒGoogleHome • google-home-notifier ࠷Α͘ΘΕ͍ͯΔ https://github.com/noelportugal/google-home-notifier • node-corevo-tts-cast ຊɺcorevo APIΛ͔ͭͬͯTTS͍ͯ͠Δ
https://github.com/futomi/node-corevo-tts-cast
google-home-notifierσϞ ͔ͬ͜Βͽͽͬ͘෩ຯͰ͍͖·͢
google-home-notifierΛ͏߹ Minecraft node.js google-home-notifier Express Google Home http
͏ͪΐͬͱͰ͖ͳ͍͔ʁ Minecraft Google Home ͜͜ ࣗ࡞Ͱ͖ͳ͍ʁ
google-home-notifier ΛݟͯΈΑ͏ʂ
google-home-notifierͷத
google-home-notifier.jsͷத ߦ 111ߦ αΠζɹ2.76kb ؔ 8ݸ
APIͷϑϩʔΛཧͯ͠Έͨ notify(message, callback) getSpeechUrl(message, host, callback) mdsn ϚϧνΩϟετDNS browse found
google-tts-api Text2Speech create url onDeviceUp(host, url, callback) castv2-client Chromecast json
͔͠ɺgoogle-tts-apiΛΈΔͱ
͠ɺ͓ࣄͰ google-home-notifierΛ͏࣌ ͝ҙ͍ͩ͘͞
Γ͍ͨ͜ͱ 8x9Craft Google Home Plugin google-home- notifier
Plugin։ൃ public interface I8x9CraftPlugin { String getPluginName(); boolean initialize(); boolean
terminate(); String call(String param); } TTSΫϥεΛ࡞ Jarʹ͢Δ
minecraftʹσϓϩΠ ϓϥάΠϯϑΥϧμʹJar ϑΝΠϧΛஔ͘
8x9Craft͔Βͷར༻ let tts = world.getPlugin("TTS") while(true){ let chat = crab.waitForChat()
tts.call(chat.message+”ͱ"+chat.playerName+"͕ݴ͍·ͨ͠") } • getPluginͰTTSͷϓϥάΠϯΛऔಘ • νϟοτͷൃݴ͕͘Δ·Ͱͭ • ൃݴͨ͠νϟοτΛGoogleHomeʹΒͤΔ
8x9Craft 2 GoogleHome σϞ
ײͨ͡ࣄ • GoogleHomeChromeCastͷٕज़͕ϕʔεʹͳ͍ͬͯΔͷͰ ChromeCastͷAPIΛͬͯ৭ʑ੍ޚͰ͖ΔɻJava͔ΒωΠςΟ ϒͰ͔ͭ͑ΔChromecastAPI͋ΔͷͰνϟϨϯδͯ͠Έ͍ͨɻ • google-home-notifier৭ʑ͋ΕͳͷͰΘͳ͍΄͏͕͍͍ • ChromecastͰૢ࡞͢ΔͱɺGoogleHomeͰಈ࡞͍ͯ͠ΔΞ ϓϦ͕ఀࢭͪ͠Ό͏ͷ͕ʢ࠶ੜதͷԻָ͕ࢭ·Δͱ͔ʣ
͋Γ͕ͱ͏͍͟͝·ͨ͠