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
答案 0 :(得分: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秒。
答案 1 :(得分: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
标签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的更多信息。