GithubHelp home page GithubHelp logo

xiaomi-aispeaker-simple-example's Introduction

小米AI音箱简单示例(nodejs)

为小米AI音箱开发技能的简单示例

  • 前提条件:
  1. 在小米水滴平台(https://shuidi.mi.com) 成为开发者。
  2. 你得有个域名。
  3. 有这个域名的证书。可以从阿里云取得一个免费证书。(https://yundun.console.aliyun.com/?p=cas#/cas/home)
  4. 你得有个服务器。
  • 使用步骤:
  1. 将阿里云的证书下载解压到keys目录。修改app.js中的文件地址为你的私钥和证书。
const options = {
  key: fs.readFileSync('./keys/214051319980677.key'),//你的私钥
  cert: fs.readFileSync('./keys/214051319980677.pem')//你的证书
};
  1. 在myroute.js中写你的应答逻辑。
  2. 将应用部署到你的服务器。安装:npm i 运行:node app.js
  3. 在小米水滴平台创建技能(https://shuidi.mi.com/skills/create/list) ,在"配置信息"中写你的https://你的域名

xiaomi-aispeaker-simple-example's People

Contributors

fangj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xiaomi-aispeaker-simple-example's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.