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"
}
}
]
}
]
}
}
}
显然,在解决此问题之前无法启动此功能,因为这听起来很荒谬哈哈
我试图在这里进行一些谷歌搜索和搜索,但是当 2 个单词拼写相同以区分分钟和分钟时,这真的很难 - 请参阅!
谢谢:D
对响应文本使用 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 秒。
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
标签的更多信息,请单击此处。