ããã«ã¡ã¯ãé³å£°UIã®éçºãæ å½ãã¦ããæ¦ç°ã§ããAlexaã®ã¹ãã«ãã³ã¼ãç¸è« by WEARãã¯ã¹ãã«ã®å¿çããåæã¾ã§ãã»ã¼å ¨ã¦Amazon Web Servicesï¼ä»¥ä¸ãAWSï¼ã®ã¿ã使ã£ã¦æ§æããã¦ãã¾ããä»åã¯å¦çã®ç¨®é¡ãã¨ã«AWSã®æ§æã®å 容ããCloudFormationã®ã³ã¼ãã¨ã¨ãã«ç´¹ä»ãã¦ããã¾ãã ã¦ã¼ã¶ã¼ã«å¿çãè¿ã AWS Lambda Amazon DynamoDB Amazon CloudWatch Amazon S3 CloudFormation åé¡ããã£ãæã«ã¢ã©ã¼ããé£ã°ã Amazon CloudWatch Amazon SNS AWS Lambda CloudFormation åæãã Amazon Kinesis Data Firehose AWS Lambda Amazon S3 Amazon Athena Amazon QuickSig
Virtual Alexaãå°å ¥ããã¨ãAlexaã¹ãã«éçºã®ä¼è©±ãã¹ããç°¡åã«èªååã§ãã¾ããç©æ¥µçã«ãã¹ãã¨ãªãã¡ã¯ã¿ãªã³ã°ã®ãµã¤ã¯ã«ãåãã¦è¡ãã¾ãããã ã¯ããã« Alexaã®ã¹ãã«éçºããã¦ããã¨ãå®æ©ããã¹ãã·ãã¥ã¬ã¼ã¿ã使ã£ãã¦ã¼ã¶ã¼ãã¹ãã ãã§ã¯ã ãã ãã¨è¾ããªã£ã¦ããã±ã¼ã¹ãããã¾ãã ã§ããã°ãã¹ãã«ã§è¡ãããä¼è©±ã«ã¤ãã¦ããã¼ã«ã«ã§èªåãã¹ãããããã¨ããã§ãã ä»åã¯ãVirtual Alexaã¨ãããã¼ã«ã使ã£ã¦Alexaã¹ãã«ã®ä¼è©±ãã¹ãããã¼ã«ã«ã§è¡ãæ¹æ³ããç´¹ä»ãã¾ãã Virtual Alexaã¨ã¯ Bespoken Toolsãªã©ãæä¾ããBespoken社ã«ãããAlexaã¹ãã«ã®ãã¹ãããããã°ãè¡ããã©ã¤ãã©ãªã§ãã NPM - virtual-alexa Virtual Alexaã使ããã¨ã§ãããã¯ã¨ã³ãLambdaã®ãã³ãã©ã«ã¤ãã¦ã®ãã¹ãã
1 ã¯ããã« æ¬æ¥ãAlexa Blogsã§ãAlexaã¹ãã«ããAmazon Pollyï¼ä»¥ä¸ãPollyï¼ã使ç¨ãããã¨ãä¸è¬å©ç¨å¯è½ã«ãªã£ãã¨çºè¡¨ãããã¾ããã Amazon Polly Voices in Alexa Skills Now Generally Available ãã§ã«ãè±èªã§ã¯å©ç¨å¯è½ã§ãããæ¥æ¬èªããã¬ãã¥ã¼ã¨ãªã£ã¦ãã¾ããããæ¬æ¥ãããAlexaããµãã¼ããã¦ããå ¨ã¦ã®ãã±ã¼ã«ã§ãä¸è¬å©ç¨å¯è½ã«ãªã£ãããã§ãã ã¨è¨ããã¨ã§ãæ©é試ãã¦ã¿ã¾ããã 2 ãµã³ãã«ã³ã¼ã ä¸è¨ã®åç»ã®ã³ã¼ãã¯ã以ä¸ã®ã¨ããã§ãã ãGood to see you again.ãã¨ãããã¬ã¼ãºããAlexaã§ãã®ã¾ã¾èªã¾ãã¦ããã®ã¨ãï¼voiceï¼ã¿ã°ã§ï¿½Pollyãæå®ãã¦èªã¾ãã¦ãã¾ãã import * as Alexa from 'ask-sdk'; import { Req
1 ã¯ãã㫠以åã¯ç±³å½è±èªã®ã¹ãã«ã®ã¿ã§å©ç¨ã§ãã£ãã以ä¸ã®7ã¤ã®ãã«ãã¤ã³ã¹ãããããæ¥æ¬èªã§ãå©ç¨å¯è½(ãããªãã¯ãã¼ã¿)ã«ãªãã¾ããã AMAZON.Color AMAZON.Country AMAZON.DayOfWeek AMAZON.Genre AMAZON.Language AMAZON.Month AMAZON.Room Additional Built-in Slot Types Now Available in All Alexa Locales (Beta) ãã«ãã¤ã³ã¹ãããããªãå ´åãã«ã¹ã¿ã ã¹ãããã§å¯¾å¿ããããããã¾ãããããããå®ç¾©ãããã¨ã¯ãçµå¥åä»ãªä½æ¥ã§ãã è¨èã®æºããã表ç¾ã®æºããªã©ããã·ããã ãé§ä½¿ãã¦å®ç¾©ããä½æ¥ã¯ãçµæ§å·¥æ°ã®ãããä½æ¥ã§ãããã«ãã¤ã³ã¹ããããããã°ããã®ãããªä½æ¥ããéæ¾ãããããä¸è²«ããã¦ã¼ã¶ã¼ä½é¨ãç°¡åã«æä¾ãããã¨ã
建å ã¤ã¾ããã¦ãã¾ã£ããã¨ããã£ãã®ã§åããã¨ã§æ©ãã§ã人ã®ããã«ç´¹ä»ãããï¼ æ¬é³ Qiitaã«æ稿ãã¦ã¿ããã£ã ##ãã¨ã®ããã¾ã Amazon Echo Spotè³¼å ¥ããã£ããã«Alexaã¹ãã«ãä½ãå§ãã¾ããã æåã¯ã¹ãã«éçºãã¬ã¼ãã³ã°ãåèã«ã³ãã³ãã¨ä½ã£ã¦ããã®ã§ãããask-sdk v2ãªããã®ããããã¨ãç¥ãã¾ãã¦ã (追è¨ï¼ã¹ãã«éçºãã¬ã¼ãã³ã°ã2018/10/16ã«v2ã«å¯¾å¿ããããã§ããï¼ å ¬å¼ããä»å¾ã¯v2ã使ãï¼ãã¨ã¢ãã¦ã³ã¹ãã¦ãã®ã§æ¸ã ã¨v1ã®ã³ã¼ããv2ã«æ¸ãç´ãã¦ãã¾ããã ##ã¨ãããã©ã£ãã v1ã§ã¯ããã°ã¬ãã·ãå¿çãããã®ã«ãv2ã®ããã¥ã¡ã³ããè¦ã¦ãè¦å½ãããªããã©ããããã¨ãªã®ããã ASKé¢é£ããã¥ã¡ã³ããè¦ãªããä»æ¹ãªãèªåã§ä½ããããªãããªã¼ã¨æã£ã¦ããã¨ããã ##åãããããã¨ã ä¸çã«ã¯åããã¨ã§å°ã£ã¦ããæ¹ããããããã
ã¯ããã« èªåãAlexaã¹ãã«ãä½ã£ã¦ã¿ããã¨ã¡ãã£ã¨ããã£ã¦ã¿ãã Alexaã¹ãã«ã®ããã¯ã¨ã³ãã«ã¯ AWS Lambda ã Node.js ã©ã³ã¿ã¤ã ã§å©ç¨ããã®ãæã£åãæ©ãã ã©ãããªãããã®æ©ä¼ã« Typescript ã使ã£ã¦ã¿ããã¨æã£ã¦ Typescript 㨠VSCode ã«ãå ¥éããã ã¾ããLambdaã®ãããã¤çã®æä½ã«ã¯ä»ã®æã AWS SAM ããã æéãå°ãªãã¨æãã Serverless Framework ãå©ç¨ãã¦ããã Serverless Framework ã«ã¯Githubãªã©ã§å ¬éããã¦ããæ¢åã®ã¢ããªã±ã¼ã·ã§ã³ãå ã«ã¢ããªã±ã¼ã·ã§ã³ã®éå½¢ãä½ãæ©è½(serverless install)ãããã®ã§ããã¼ã¹ã®é¨åããã³ãã¬ã¼ãã¨ãã¦å ¬éãã¦ã¿ãã HeRoMo/serverless-aws-alexa-ts READMEã®æ¥æ¬èªçããã
ASK-SDK v2ããªãªã¼ã¹ãããå°ãæéãçµã£ãã®ã§ç§»è¡ãããããªã¨æã£ããããªãç ´å£çãªå¤æ´ãå ¥ã£ã¦ãã¾ããã ãã®è¨äºã¯ãASK-SDK v1(以ä¸,V1)ã§ä½ã£ãã¹ãã«ãã¤ãV1ã®SDKããDynamoDBã®æä½ãè¡ã£ã¦ããã¹ãã«ãéçºãã¦ããéçºè åãã§ãã ##ASK-SDK V1ã¨V2ã§ã¯ãDynamoDBã«çæããããã©ã¤ããªãã¼ãã£ã·ã§ã³ãã¼ãç°ãªã å¾æ¥ã®V1ã§ãAlexaã¹ãã«ããDynamoDBãæä½ããå ´åã¯ãä¸è¨ã®ãããªã³ã¼ããLambdaå´ã«ç¨æãã¦ãã¾ãããä¸è¨ã®ã³ã¼ãã§ã¯ãDynamoDBã®ãã¼ãã«åã«AlexaUserData_V1ãè¨å®ããä½ããã®ã¤ã³ãã³ããåãä»ããã¨ãã«**AlexaSDK V1ã®ãã¹ãã§ããã¨è¿çãã¾ããè¿çæã«useridããã©ã¤ããªãã¼ãã£ã·ã§ã³ãã¼ã¨ãã¦DynamoDBã®ãã¼ãã«ãçæããã¾ããä»åã¯ãmsgã¨ãããã¼ã¨
ã¯ããã« Alexaã¹ãã«ãå®è£ ããã¨ãã«ããã¹ãããªããéçºãããã ã§ããå®æ©ã§å£°ãåºããªããå®è£ ããã®ã¯æµç³ã«å¹çãæªãã Alexaã·ãã¥ã¬ã¼ã¿ã使ãã®ãç¹°ãè¿ãã¦ããã¨è¾ããªã£ã¦ããã ã³ã¼ããå¤æ´ãããã³ã« Lambdaé¢æ°ããããã¤ããã®ãè¾ãããAlexaã·ãã¥ã¬ã¼ã¿ã«çºè©±ãå ¥åããã®ãé¢åã ãªã«ãããã¨ã©ã¼ã«ãªã£ãã¨ãã«çºçç®æããããã«ããããããã°ãã°ãä»è¾¼ãã§ã¯CloudWatchLogsã§ç¢ºèªããã®ãè¾ãã ãã¼ã«ã«ã§ãã¹ãããªããéçºã§ããªããã®ãããã ã¨ãããã¨ã§ Jest + virtual-alexa ã§Alexaã¹ãã«ããã¹ãããæ¹æ³ãç´¹ä»ããã éçºç°å¢ æåã«ç§ã®éçºç°å¢ã«ã¤ãã¦ãè¨è¿°ããã Alexaã¹ãã«ã®ããã¯ã¨ã³ãã¯Lambdaãå©ç¨ãã¦ãããã©ã³ã¿ã¤ã ã¯Node8.10ããã¼ã«ã«ã®ãã¹ãã«ããã¦ãNode8.10ãå©ç¨ãã¦ããã Typ
çµç·¯ å æ¥ãTypeScriptã§Alexaã¹ãã«ãä½ã£ããã¨ã«ã¤ãã¦LTããæ©ä¼ããã£ãã®ã§ããããã¦ï¼ï¼ï¼ alexa-skill-typescript-template ã¨ãããªãã¸ããªã§Alexaã¹ãã«ãTypeScriptã§ä½ããã³ãã¬ã¼ããå ¬éãã¾ããã Alexaã®ã«ã¹ã¿ã ã¹ãã«ã¯AWS Lambdaã使ã£ã¦éçºãããã¨ãå¤ããã¨æãã®ã§ããã調ã¹ã¦ããéãã§ã¯ãªããªãTypeScriptã§éçºããã¦ããããã¥ã¡ã³ãã¯ãã¾ãå¤ãããã¾ããã§ããã èªåã¨ãã¦ã¯TypeScriptã§éçºããæ¹ãä»ã¾ã§ã®AWS Lambdaã使ã£ãéçºã®ä¸ã§ãå¹çãè¯ãã£ãã¨æããã®ã§ãèªåãå ¬éãã¦ããAlexaã¹ãã«ã®éçºã§ãå©ç¨ãã¦ãããã®ã§å ±æåºæ¥ãé¨åããã³ãã¬ã¼ãã¨ãã¦å ¬éãã¦ã¿ã¾ããã ï¼ã¾ãã2018å¹´4æã«ãªãªã¼ã¹ãããAlexa Skills Kit SDK v2 for N
0 ãªãã¬ã¤ã¹ã«ã¤ã㦠Alexaã¯ãæ¨å¹´ï¼2017å¹´ï¼11æã«æ¥æ¬èªå¯¾å¿ã¨ãªãã¾ãããããDevelopers.IOã§ã¯ãè±èªã§ããå©ç¨ã§ããªãé ããè²ã Blogã«æ¸ãã¦ããã®ã§ãããæ´æ°ãããæ å ±ãå«ãã¦æ¥æ¬èªã§å©ç¨ããAlexaã«ã¤ãã¦çºãç´ãã¦ã¿ããã¨æãã¾ãã ãã®è¨äºã¯ãä¸è¨ã®è¨äºã®ãªãã¬ã¤ã¹çã§ãã Amazon Alexaã®Skillã«ããããapplicationId,userId,deviceIdã®ä¸ææ§ã®èª¿æ» 1 ã¯ããã« Alexaã®ã¹ãã«éçºã§ã¯ãããã¦ã¼ã¶ã¼ãã¬ã³ããªã¼ãªãã®ã追æ±ããã°ãç¹å®ã®æ¡ä»¶ã§å¦çãåããããªãã®ã¯ãå½ç¶ã®ããã«çºçãããã¼ãºã§ãããã ä¾ãã°ãã¹ãã«èµ·åæã®ã¦ã¨ã«ã«ã ã¡ãã»ã¼ã¸ããåãã¦ã¹ãã«ãèµ·åããå ´åã¨ãï¼åç®ä»¥éã§å¤ãããããªäºã¯èããããªãã§ããããã ããããããã«ãã«ã¹ãã«ã¸ï¼ããã®ã¹ãã«ã¯ãâ³â³â³ãªã¨ãã«â â â ã¨è©±ãæã
1 ã¯ããã« æ¬æ¥å ¬éãããAlexaããã°ã§ãä¸è¨ã®ãããªè¨è¿°ãããã¾ããã Previously, the dialog model required the user to complete the dialog in order to switch context to a different intent, but recent updates to dialog management now make it possible to switch context between intents. æè¿ããã¤ã¢ãã°ã¢ãã«ã§å¿ é ã¹ãããã¸ã®èªå°ãè¡ã£ã¦ããæä¸ã«ãå¥ã®ã¤ã³ãã³ãã«é·ç§»ã§ããããã«ãªã£ãããã§ãã ã£ã¦äºã§ããã£ã¦ã¿ã¾ããã 2 ã³ã¼ãã¼ã·ã§ãã ä¾ã¨ãã¦ä½æããã®ã¯ãã³ã¼ãã¼ã注æããã¹ãã«ã§ãã (1) CoffeeOrderIntent æåã«ä½æããã®ã¯ãCof
æ°æ©è½ ãã¦ãã£ã¼ã«ããã¤ãã³ã管çæ©è½ããªãªã¼ã¹ãã¾ãããåè³ä¼æ¥ã®ç¤¾å¡ãé¢ä¿è ã®ã¤ãã³ãåå ãåæ»ã«ãããã¨ã«æ´»ç¨ããã ãã¾ãã詳ããã¯ãã«ããã¼ã¸ãã覧ãã ããã æ°æ©è½ connpass APIã«æ°ãããæå±ã°ã«ã¼ããåå¾ã§ããAPIãã¦ã¼ã¶ã¼ã®åå ã¤ãã³ãAPIã追å ãã¾ãããåAPIã®è©³ç´°ãªä»æ§ãå©ç¨æ¹æ³ã«ã¤ãã¾ãã¦ã¯ã APIãªãã¡ã¬ã³ã¹ ãã確èªãã ãããã¾ãAPIå©ç¨å¸æã®æ¹ã¯ connpassã®APIå©ç¨ã«ã¤ã㦠ãã覧ãã ããã ãç¥ãã 2024å¹´9æ1æ¥ãããconnpassã§ã¯ã¹ã¯ã¬ã¤ãã³ã°ãç¦æ¢ããå©ç¨è¦ç´ã«æè¨ãã¾ããã以éã®æ å ±åå¾ã«ã¯connpass APIããå©ç¨ãã ãããAPIãå©ç¨ã«ã¤ãã¦ã¯ãã«ããã¼ã¸ãã確èªãã ããã
1 ã¯ããã« Alexaã®ã¹ãã«ã§ã¯ãSSMLã®Audioã¿ã°ã使ç¨ãã¦é³å£°ãã¡ã¤ã«ãåçãããã¨ãã§ãã¾ããä»åã¯ãã¹ããã©ã§é²é³ããé³å£°ãã¹ãã«ã§åçãããã¨ã§å®¶æã§ä½¿ç¨ããä¼è¨æ¿ï¼ã»ã¨ãã©çå®çªé»è©±ï¼ãä½æãã¦ã¿ã¾ããã å¤åºå ã§ã¯ãã¹ããã©ã§ä¼è¨ãå ¥åãã¾ããèªå® ã§ã¹ãã«ãèµ·åããã¨ããæºã¾ã£ã¦ããä¼è¨ãèãããã¨ããæãã§ãã ä¸è¨ã¯ãã¹ãã«ãåä½ãã¦ããæ§åã§ãã 家æã®ä¼è¨æ¿ ãã¹ããã©ã§é²é³ãã¦Echoã§åçããã 2 æ§æ æ§æã¯ãæ¦ã以ä¸ã®ã¨ããã§ãã iPhoneã§é²é³ããé³å£°ãã¡ã¤ã«ã¯ãS3ã§ç®¡çããã¦ãã¾ããiPhoneã§å©ç¨ãããAudioãã¡ã¤ã«ã¯ãé常.cafãªã®ã§ãããiPhoneã§.mp3ãæ±ãã®ãã¡ãã£ã¨æéãªã®ã§ãS3ã«ä¿åããã¨ããã¾ã§.cafã®ã¾ã¾è¡ã£ã¦ãã¾ãã ã¹ãã«ãèµ·åãããã¨ãS3ä¸ã®.cafãä¸è¦§ããã¾ã ã.mp3ã«å¤æããã¦ããªããã®
1 ã¯ããã« ã¹ããããè¨å®ãããã¤ã³ãã³ãã§ã¯ãåãåã£ãã¹ãããå¤ãå¦çããããã§ãã¯ãããããå¿ ãæãéãã«åå¾ã§ãã¦ããã¨ã¯éãã¾ããã ä»åã¯ãã©ã®ãããªç¨®é¡ã®èª¤èªèãåå¨ããããåæãããã®å¯¾çãèãã¦ã¿ããã¨æãã¾ãã 2 ãã¹ãã¹ãã« æåã«ç°¡åãªãã¹ãã¹ãã«ãä½æãã¦ããã®ã¹ãããã¸ã®å ¥ãå ·åã確èªãã¦ã¿ã¾ãã ä½æãããã¹ãã¹ãã«ã«ã¯ãã¤ã³ãã³ããã²ã¨ã¤ã ãè¨å®ããä¸è¨ã®ããã«ãµã³ãã«çºè©±ãè¨å®ãã¾ããã {drink} ã {number} ãã ãã ãµã³ãã«çºè©±ã«ã¯ãï¼ã¤ã®ã¹ããããããããã®ã¿ã¤ãã¯ãAMAZON.Number㨠LIST_OF_DRINK(ã«ã¹ã¿ã ã¹ããã) ã«ãªã£ã¦ãã¾ãã 1ã¤ç®ã®ã¹ãããã®ã¿ã¤ãã¨ãã¦æå®ããã¦ããLIST_OF_DRINK ã«ã¯ãããããã³ã¼ãã¼ãããã¢ã¤ã¹ã³ã¼ãã¼ãããã³ã¼ã©ãåã³ããã«ã«ãã¹ãã®4ã¤ãå®ç¾©ããã¦ãã¾ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}