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
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
LocalStack を使ったサーバーレスアプリケーション開発 / Serverless Development with LocalStack
kakakakakku
1
370
組み立てて楽しむ AWS Blocks 入門
kmiya84377
0
230
Execution in the Kingdom of Agents: Reflections on Abstraction and Complexity
bcantrill
0
900
Snapshot Testing in Practice: Predictable and Reliable SwiftUI Views
fespinoza
0
180
AI駆動開発、viviONの1年 ── うまくいったこと・いかなかったこと
vivion
0
290
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
620
IoTデバイスを繋げるプロトコルMatterをAndroidで使用する方法
harutiro
0
130
3つのアプローチで目指す チームを強くするAI駆動開発
thkt
0
150
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
280
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
0
1.6k
全PRの83%が AIレビューだけでマージできるようになった開発組織は その後どうなったか @2026/10
athug
0
140
大型犬好きによるPugの紹介
yamanoku
1
110
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
590
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
30 Presentation Tips
portentint
PRO
1
420
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Building Adaptive Systems
keathley
44
3.2k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
540
Bash Introduction
62gerente
615
220k
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
210
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