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
280
マインクラフトとGoogleHomeを連携してみた
GDG神戸
GoogleHome勉強会
発表資料
夜子まま
February 26, 2018
Tweet
Share
More Decks by 夜子まま
See All by 夜子まま
小学生における ブロックコーディングからテキストコーディングへの ステップアップの試み
yokmama
0
130
マインクラフトによる プログラミング学習の可能性
yokmama
1
460
Other Decks in Programming
See All in Programming
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
480
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
CSC509 Lecture 12
javiergs
PRO
0
160
受け取る人から提供する人になるということ
little_rubyist
0
250
Contemporary Test Cases
maaretp
0
140
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
910
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
React CompilerとFine Grained Reactivityと宣言的UIのこれから / The next chapter of declarative UI
ssssota
1
100
ふかぼれ!CSSセレクターモジュール / Fukabore! CSS Selectors Module
petamoriken
0
150
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
950
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
110
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
360
Featured
See All Featured
Building Applications with DynamoDB
mza
90
6.1k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Six Lessons from altMBA
skipperchong
27
3.5k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Visualization
eitanlees
145
15k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
900
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Scaling GitHub
holman
458
140k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Side Projects
sachag
452
42k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
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Ͱಈ࡞͍ͯ͠ΔΞ ϓϦ͕ఀࢭͪ͠Ό͏ͷ͕ʢ࠶ੜதͷԻָ͕ࢭ·Δͱ͔ʣ
͋Γ͕ͱ͏͍͟͝·ͨ͠