How To Use Amazon Skill Set Without Amazon Echo Device

前端 未结 5 2006
陌清茗
陌清茗 2021-01-31 12:06

I am trying to integrate amazon skill kit in my website without an amazon echo unit. I want to implement voice commands on my website using the laptop/PC microphone instead of a

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 12:33

    Things you can do with this library:

    1. Login with Amazon and get access token
    2. Get access token and refresh token from 'code' response type
    3. Get access token from refresh token
    4. Request user microphone
    5. Record user audio using microphone
    6. Send user audio to AVS
    7. Parse response from AVS
    8. Queue and play MP3 responses from AVS.

    The audio recorded in this library is mono channel, sampled at 16k Hz, and signed 16 bit PCM encoding which is required by AVS.

    Tutorial: https://github.com/miguelmota/alexa-voice-service.js Demo:https://miguelmota.com:9745/

提交回复
热议问题