以下代码为我工作:
def lambda_handler(event, context): return { "response": { "directives": [ { "type": "AudioPlayer.Play", "playBehavior": "REPLACE_ALL", "audioItem": { "stream": { "token": "12345", "url": "https://emit-media-production.s3.amazonaws.com/pbs/the-afterglow/2016/08/24/1700/201608241700_the-afterglow_64.m4a", "offsetInMilliseconds": 0 } } } ], "shouldEndSession": True } }]
唯一的区别是URL是https而不是http。
如果它在技能模拟器中不起作用,请不要拖延。尚未升级到可与流音频一起使用的功能。您甚至在那里都看不到指令。但是,当与您的设备一起使用时,它应该可以工作。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)