【问题标题】:Alexa saying "minute" (the time) wrong as minute(very small)Alexa 说“分钟”(时间)错误为分钟(非常小)
【发布时间】:2019-05-30 08:57:37
【问题描述】:

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

【问题讨论】:

    标签: alexa alexa-skills-kit alexa-skill ssml


    【解决方案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 秒。

    【讨论】:

      【解决方案2】:

      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标签here


      音素

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

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

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

      这将被说成 “分钟粒子”“一分钟前”

      更多关于phoneme标签here

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-05-18
        • 1970-01-01
        • 2014-12-01
        • 2015-07-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-02-14
        相关资源
        最近更新 更多