美文网首页音视频
Alexa-Voice-Service Demo

Alexa-Voice-Service Demo

作者: JonorZhang | 来源:发表于2018-08-29 10:45 被阅读86次

Talk is cheap, show you my code ☞JrAlexa

本项目基于objective-c、Xcode9.4,演示如何集成AVS(Alexa Voice Service)。

准备工作

☞详细注册步骤可以戳这里看

  1. 注册Amazon开发者账户
  2. 注册并激活你的Alexa产品

完成以上步骤你就拿到了 bundleIDAPIKeyproductID

创建Xcode项目

  • Bundle Identifier
    一定要和注册Alexa产品时填写的bundleID一样,我的是com.jonor.JrAlexa

  • info.plist

    • 新增 APIKey
      APIKey : eyJhbGciOiJSU0EtU0hBMjU2IiwidmVyIjoiMSJ9...(很长一串)

    • 新增 URL Types
      URL Types : [{
      Identifier : com.jonor.JrAlexa
      URL Schemes : [amzn-com.jonor.JrAlexa]
      }]

  • 导入登陆框架

    • 导入LoginWithAmazon.framework
    • 添加依赖框架SafariServices.frameworkSecurity.framework

示例代码

请看demo ☞JrAlexa

官方文档

更多详细内容请移步:☞Get Started With Alexa Voice Service

相关文章

网友评论

    本文标题:Alexa-Voice-Service Demo

    本文链接:https://www.haomeiwen.com/subject/hzjhwftx.html