1
我正在嘗試在Python3中爲亞馬遜Echo顯示創建測驗美國各州用戶的技能。爲了做到這一點,我想在Show的屏幕上顯示一個圖像。但是,當我嘗試這樣做時,我的圖像被切斷。我嘗試調整圖像的大小,但這無能爲力。Amazon Echo Show的背景圖片不會縮放
爲了使我使用下面的代碼(原諒空字符串我作爲佔位符文本)的模板:
'directives': [{
'type': 'Display.RenderTemplate',
'template': {
'type': 'BodyTemplate1',
'token': 'some sample card',
'backButton': 'VISIBLE',
'title': '',
'backgroundImage': {
'contentDescription': '',
'sources': [
{
'url': 'https://upload.wikimedia.org/wikipedia/commons/9/94/California_in_United_States.svg',
# 'widthPixels': 350, --> Tried these as well
# 'heightPixels': 350,
'size': 'SMALL'
}
]
},
'textContent': {
'primaryText': {
'type': 'RichText',
'text': ''
}
}
}
}]
我懷疑它可能有一些做我的模板類型(BodyTemplate1)或我試圖使用backgroundImage來實現它不應該用於的東西。
有什麼想法?