0

Alexa 说错了,我怎样才能让她在回复我的技能时说 60 秒内的分钟?

此刻她说“截至 5 分钟前” 5 个非常小的物体哈哈

这是我的技能

{
    "interactionModel": {
        "languageModel": {
            "invocationName": "jarvis",
            "intents": [
                {
                    "name": "NSStatus",
                    "slots": [],
                    "samples": [
                        "How am I doing"
                    ]
                },
                {
                    "name": "UploaderBattery",
                    "slots": [],
                    "samples": [
                        "How is my uploader battery"
                    ]
                },
                {
                    "name": "PumpBattery",
                    "slots": [],
                    "samples": [
                        "How is my pump battery"
                    ]
                },
                {
                    "name": "LastLoop",
                    "slots": [],
                    "samples": [
                        "When was my last loop"
                    ]
                },
                {
                    "name": "MetricNow",
                    "slots": [
                        {
                            "name": "metric",
                            "type": "LIST_OF_METRICS"
                        },
                        {
                            "name": "pwd",
                            "type": "AMAZON.US_FIRST_NAME"
                        }
                    ],
                    "samples": [
                        "What is my {metric}",
                        "What my {metric} is",
                        "What is {pwd} {metric}"
                    ]
                },
                {
                    "name": "InsulinRemaining",
                    "slots": [
                        {
                            "name": "pwd",
                            "type": "AMAZON.US_FIRST_NAME"
                        }
                    ],
                    "samples": [
                        "How much insulin do I have left",
                        "How much insulin do I have remaining",
                        "How much insulin does {pwd} have left",
                        "How much insulin does {pwd} have remaining"
                    ]
                },
                {
                    "name": "AMAZON.NavigateHomeIntent",
                    "samples": []
                }
            ],
            "types": [
                {
                    "name": "LIST_OF_METRICS",
                    "values": [
                        {
                            "name": {
                                "value": "bg"
                            }
                        },
                        {
                            "name": {
                                "value": "blood glucose"
                            }
                        },
                        {
                            "name": {
                                "value": "number"
                            }
                        },
                        {
                            "name": {
                                "value": "iob"
                            }
                        },
                        {
                            "name": {
                                "value": "insulin on board"
                            }
                        },
                        {
                            "name": {
                                "value": "current basal"
                            }
                        },
                        {
                            "name": {
                                "value": "basal"
                            }
                        },
                        {
                            "name": {
                                "value": "cob"
                            }
                        },
                        {
                            "name": {
                                "value": "carbs on board"
                            }
                        },
                        {
                            "name": {
                                "value": "carbohydrates on board"
                            }
                        },
                        {
                            "name": {
                                "value": "loop forecast"
                            }
                        },
                        {
                            "name": {
                                "value": "ar2 forecast"
                            }
                        },
                        {
                            "name": {
                                "value": "forecast"
                            }
                        },
                        {
                            "name": {
                                "value": "raw bg"
                            }
                        },
                        {
                            "name": {
                                "value": "raw blood glucose"
                            }
                        }
                    ]
                }
            ]
        }
    }
}

显然这在解决之前无法启动,因为这听起来很荒谬哈哈

我试图在这里进行一些谷歌搜索和搜索,但是当两个单词拼写相同以区分分钟和分钟时,这真的很难 - 看!

感谢:D

4

2 回答 2

1

使用SSML语音标签作为响应文本。

<speak>
<say-as interpret-as="time" > 5' </say-as>
</speak>

将发音为 5 分钟。

<speak>
<say-as interpret-as="time" > 5'10" </say-as>
</speak>

发音为 5 分 10 秒。

于 2019-01-04T05:08:38.747 回答
0

SSML 标签将say-as帮助您以所需的方式解释您的响应。您可以使用interpret-as="time"Alexa 将其解释为时间。

<speak>
   <say-as interpret-as="time" > 5'10" </say-as> ago.
</speak>

请注意,如果您只想要“分钟”而不是秒,请像 5'0" 一样使用它。如果您只包含 5',它将读作“五个撇号”

<say-as interpret-as="time" > 5'0" </say-as> ago.

以同样的方式单独使用秒,就像 0'10"。这将读作"十秒"

<say-as interpret-as="time" > 0'10" </say-as>

更多关于say-as标签的信息


音素

如果您有一些复杂的发音或相同的文本有不同的发音,则使用phoneme标签提供其准确的拼音发音。

例如,“分钟”(时间)和“分钟”(大小)可以通过给出其确切的语音发音符号来进行不同的突袭。

<speak>
   <phoneme alphabet="ipa" ph="/mʌɪˈnjuːt/">minute</phoneme>particles. 
   One <phoneme alphabet="ipa" ph="/ˈmɪnɪt/">minute</phoneme>.
</speak>

这将被称为 “微小的粒子”“一分钟前”

更多关于phoneme标签的信息

于 2019-01-07T12:05:47.490 回答