Amazon Alexa: store user's words

前端 未结 6 1560
日久生厌
日久生厌 2020-12-05 10:38

I\'m new to writing Alexa skills and want to write a skill to store the speaker\'s words.
For example, if I say, \'Alexa, save {whatever i say}\', it should save the wor

6条回答
  •  无人及你
    2020-12-05 11:09

    (8/5/17) Unfortunately this feature was removed from Amazon with the elimination of AMAZON.LITERALS.

    However, depending on how interested you are in capturing free form inputs you may be satisfied with an input MODE that captures one word, name, city, number, letter, symbol, etc. at a time and strings them together into a single variable with no message in between.

    I've worked on a password input mode that can be modified to collect and concatenate user inputs. While your input would be slower, if you optimize your lambda function you may be able to achieve a fast user experience for entering a few sentences. The structure is what's important. The code could easily be adapted.

    How to give input to Amazon Alexa Skills Kit (ASK) mixed string with numbers? https://stackoverflow.com/a/45515598/8408056

提交回复
热议问题