Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
マインクラフトとGoogleHomeを連携してみた
Search
夜子まま
February 26, 2018
Programming
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
マインクラフトとGoogleHomeを連携してみた
GDG神戸
GoogleHome勉強会
発表資料
夜子まま
February 26, 2018
Transcript
26 slides
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Ͱಈ࡞͍ͯ͠ΔΞ ϓϦ͕ఀࢭͪ͠Ό͏ͷ͕ʢ࠶ੜதͷԻָ͕ࢭ·Δͱ͔ʣ
͋Γ͕ͱ͏͍͟͝·ͨ͠
More Decks by 夜子まま
See All by 夜子まま
小学生における ブロックコーディングからテキストコーディングへの ステップアップの試み
yokmama
0
160
マインクラフトによる プログラミング学習の可能性
yokmama
1
490
Other Decks in Programming
See All in Programming
AI駆動TDD ― 2026年10月版
hrmstrsmgs
0
110
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
310
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
450
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
正解の無い問題を 「できるだけ上手く」解く ヒューリスティックで感性を磨こう。〜現実課題をプログラミングで解きあうコミュニティについて〜
allegrogiken
0
110
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
680
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
Debian JP Projectのサーバー構成
uwabami
1
180
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
230
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
120
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
170
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
130
Featured
See All Featured
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
540
The Language of Interfaces
destraynor
162
27k
A Soul's Torment
seathinner
9
3.9k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
310
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Un-Boring Meetings
codingconduct
0
510
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Agile that works and the tools we love
rasmusluckow
331
22k
The untapped power of vector embeddings
frankvandijk
2
2k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k