question

newuser-d0d786c5-33cf-4815-ba62-a310057dbbfb avatar image

Asking for serial numbers in my custom skill with big numbers

Hello


We are trying Alexa Skill Kit with a Echo Show 5 in pr-br language. Our skill will integrate Alexa and a internal system, but when asking for a specific serial number, Alexa could not recognize the whole number, some times a part, some times a number that we din´t said.


Ex.: 1050430187, 1051060781.


The last one is more strange, because we can saying digit by digit, or ten by ten, and some times alexa recognize the number 1 before the second zero, interpreting as 10511060781. If the number starts with zero, than Alexa strips it out.

Instead of using AMAZON.NUMBER there is another way to spell this type of numbers?


Thanks you all

Jackson

alexa skills kit
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hi Jackson and thank you for your message.

As suggested in the other post you wrote, you could try and brake the serial number in two or more parts in order to make sure that Alexa is getting the right information. The interaction would look something like:

...
Alexa: "Please provide the first 5 digits of the serial number"
User: "10510"
A: "I got 10510. Is that correct?"
U: "Yes"
A: "Please provide the last 5 digits of the serial number"
U: "60781"
A: "Did you say 60781?"
U: "Yes"
...

Regards,
Barry

10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Robert G Schaffrath avatar image
Robert G Schaffrath answered

@NewUser-d0d786c5-33cf-4815-ba62-a310057dbbfb

I've done a similar implementation that might need up to 26 numbers. One of several skills I written but never published so I cannot point you to a running example you could enable.

For numbers, I create a custom slot type called "Digits" as follows and use that in my utterance:

        {
          "name": "Digits",
          "values": [
            {
              "name": {
                "value": "0",
                "synonyms": [
                  "zero",
                  "oh"
                ]
              }
            },
            {
              "name": {
                "value": "9",
                "synonyms": [
                  "niner",
                  "nine"
                ]
              }
            },
            {
              "name": {
                "value": "8",
                "synonyms": [
                  "eight"
                ]
              }
            },
            {
              "name": {
                "value": "7",
                "synonyms": [
                  "seven"
                ]
              }
            },
            {
              "name": {
                "value": "6",
                "synonyms": [
                  "six"
                ]
              }
            },
            {
              "name": {
                "value": "5",
                "synonyms": [
                  "five"
                ]
              }
            },
            {
              "name": {
                "value": "4",
                "synonyms": [
                  "four"
                ]
              }
            },
            {
              "name": {
                "value": "3",
                "synonyms": [
                  "tree",
                  "three"
                ]
              }
            },
            {
              "name": {
                "value": "2",
                "synonyms": [
                  "to",
                  "two"
                ]
              }
            },
            {
              "name": {
                "value": "1",
                "synonyms": [
                  "won",
                  "one"
                ]
              }
            }
          }

I have found that if I say "Alexa, ask Skill Name to lookup (some number up to 26 digits)", I have less than ten seconds to speak the digits. However, if I start the skill such as "Alexa, open Skill Name" and have the skill prompt me to say the number, then I get more time and I have been able to speak 26 digits at a moderate pace without timing out. It gets tricky dealing with the first example where you time out and get partial data.

10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.