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
AlexaSkillのVUIを改善した話
Search
euledge
April 28, 2021
Technology
69
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AlexaSkillのVUIを改善した話
JAWS-UG浜松 AWS勉強会 2021#4で話した資料です。
個人開発のAlexaスキルを改善するために行ったことの紹介
euledge
April 28, 2021
More Decks by euledge
See All by euledge
初Amplifyデプロイした話.pdf
euledge
0
130
春だから始めようVue.js/2018-spring-hamamatsujs-3-vuejs
euledge
0
520
Other Decks in Technology
See All in Technology
module Synths; end
asonas
1
130
AIで仕事のやり方を変える
matsu7874
3
1k
Nav2、Nav3 ... はたまた自作?〜 作って理解する Nav3 の設計意図 〜 / Nav2, Nav3 ... or Build Your Own? — Understanding Nav3's design intent by building it from scratch
yanzm
0
260
#jawssonic2026 あの時代が悪かった ~動かなかったSageMakerと共に迎えたイベント当日~
ktkn1129
0
140
V8コントリビュート超入門
riyaamemiya
0
150
Bet AI Day 2026丨How We Bet AI: AIとともに働く場をつくる
layerx
PRO
2
2.8k
enechainの内製セルフサービスプラットフォーム
hiyosi
0
140
推論の観測、できていますか? 〜 Google Cloud Gemini Enterprise Agent Platformで 3つの Gemini モデルを実測して踏んだ、評価の罠 〜
shukob
PRO
0
180
2026-09-11 【Snowflake World Tour Tokyo 2026】Snowflakeを起点に、AI Agentが自律稼働し続ける未来へ / Driving AI Agents with Snowflake
civitaspo
0
220
プロダクト思考 × 基盤思考を AIで実現する Compound Engineering
tkc66buzz
1
290
Bet AI Day 2026丨バクラク Autopilot、業務システムの再設計
layerx
PRO
2
1.6k
synctest時代のhttptest Go 1.27で変わるHTTPサーバテストの裏側 / go conference2026 synctest and httptest
budougumi0617
1
260
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
970
RailsConf 2023
tenderlove
30
1.5k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
490
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
560
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
560
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
890
Discover your Explorer Soul
emna__ayadi
2
1.3k
Transcript
Alexa SkillのVUIを改善した話 @eulede (kuroyanagi) JAWS-UG浜松 AWS勉強会 2021#4
Kuroyanagi Hitoshi @euledge https://github.com/euledge 黒 柳 仁 自己紹介 普段は SpringBoot(Java)
+ Vue.js でお仕事してます。 開発チームの体制づくりのためのツール導入とか、フレームワークづくりとか 最近はDDDとかAmplify+LINE APIに興味あり
袋井市のオープンデータ活用事例 Alexaスキル「ゴミ出しふくろい」 を掲載していただきました。
Alexa Hosted Skill
今までの変遷 2019/6 最初のバージョン公開 2020/10 袋井市から実証実験に使いたいとの連絡 放置していたので慌てて2020年のデータに対応 2020/12 スキル名称を「ゴミ出しふくろい」に変更 2021/2 街の名前を覚える機能追加
2021/4 リマインド機能 EchoShow対応
https://alexa-skills.amazon.co.jp/apis/custom/skills/amzn1.ask.skill.2a344529-21df-4d41-9d39-cce634cf07ed/launch -
川井はカワイイ? 川井(かわい)をアレクサが ‘かわいい’ と間違える 東通り(ひがしどおり) ? 東同笠(ひがしどうり)
値 同義語 東通り ひがしどおり、ひがしどうり、ひがしどーり、 東通り、東通 東同笠 ひがしどおり、ひがしどうり、ひがしどーり、 東通り、東通 値 同義語
川井東 かわいい、かわい、かわいひがし、かわいいひ がし、川井
えっ、また聞かれるの? 昨日 今日
let persistAttributes = (await attributesManager.getPersistentAttributes()) || {}; persistAttributes.lastAccess = dayjs().toISOString();
persistAttributes.streetName = streetName; attributesManager.setPersistentAttributes(persistAttributes); await attributesManager.savePersistentAttributes(); Alexa Skill KitでDynamoDBに対して attributesManagerでアクセスできる。
町名の発音はAlexaには、むづかしい 見取 初越 西同笠 木原 上新池 みどり はづこし にしどうり きわら
かみにいけ
読み仮名も一緒に渡して読ませる function getPronounceTown(streetName) { const street = area_days.find((item) => item.street
=== streetName); const streetPronunciation = street.streetPronunciation; return `<break time="0.2s" /><say-as interpret-as="address">${streetPronunciation}</say- as><break time="0.1s" />`; } const speechText = `${getPronounceTown(resolutionName)}の次の収集日 は ${collectionDate} です。<break time="0.2s" /> 次のご利用の時にも<break time="0.1s" /> ${getPronounceTown(resolutionName)}<break time="0.1s" />の収集日をお知らせ しますか?`; {"street": "木原", "area": "袋井西", "streetPronunciation": "木原(きわら)", "areaPronunciation": "袋井西", "alias": "", "days": "20210309 20210324 20210408 20210422 }, { "street": "土橋", "area": "袋井西", "streetPronunciation": "土橋(つちはし)", "areaPronunciation" : "袋井西", "alias" : "", "days" : "20210309 20210324 20210408 20210422 }, { "street" : "可睡" , "area" : "袋井北" , "streetPronunciation" : "可睡(かすい)" , "areaPronunciation" : "袋井北", "alias" : "かすい" , "days" : "20210311 20210326 20210413 20210427 }
音声の補助としてディスプレイも使う
いや、この前聞いたけど忘れちゃった Alexaは基本的には自発的には しゃべってくれない。 前の日になったら 教えてほしいな
リマインダーに追加するにはアクセス権の許可が必要 const client = handlerInput.serviceClientFactory.getReminderManagementServiceClient(); const reminderRequest = { trigger:
{ type: "SCHEDULED_ABSOLUTE", // 指定時刻にリマインド scheduledTime: remindAt, }, alertInfo: { spokenInfo: { content: [ { locale: "ja-JP", text: `明日は${streetName}の不燃物収集日です。`, }, ], }, }, pushNotification: { status: "ENABLED", }, }; console.log(JSON.stringify(reminderRequest)); const reminderResponse = await client.createReminder(reminderRequest); console.log(JSON.stringify(reminderResponse));
2. 申請されたスキルは、スキルがリマインダーにアクセスする必要がある理由に関する詳細情報をユーザーに提示していません。 スキルはこちらのドキュメントにリストされているサンプルメッセージに則った音声プロンプトを提供し、 またユーザーがパーミッションを許可する為のカードを提示する必要があります。 カードについての詳細はこちらを参照してください。 補足: スキルの権限について、なんの権限が必要なのかどうして必要なのかという理由をユーザーに提示しておりません。 3. スキルは、各リマインダーまたはリマインダーの一連を設定する際に、ユーザーの許可を取得しませんでした。 スキルとユーザー間の対話の中で、スキルが明確な許可を得ていることを確認してください。
例:毎週のトーナメントのために、リマインダーを週毎に設定しますか? リマインダ―の詳細については、こちら を参照してください。リクエスト例については こちら を参照してください。 リマインダーに関する申請時のフィードバック
Alexa Skill開発の情報ソース • Alexa道場 Alexa Skills Kit: Webinars (amazon.com) •
Alexa Skills Kit (ASK) (日本語) - Forums (amazon.com) • Slack alexa-jp
Alexa Skill開発者にお得な特典! AWS Promotional Credits for Alexa - Amazon Alexa