在某些情况下,希望回复的内容是多个音频素材和文字内容混合顺序回复。只需要在 actions 集合中,根据希望的播报顺序添加播报音频素材和文本内容的 Action 即可。数据如下所示:

    1. {
    2. "returnCode": "0",
    3. "returnErrorSolution": "",
    4. "returnMessage": "",
    5. "returnValue": {
    6. "reply": "文本回复内容",
    7. "resultType": "RESULT",
    8. "actions": [
    9. {
    10. "name": "audioPlayGenieSource",
    11. "properties": {
    12. "audioGenieId": "500000235"
    13. }
    14. },
    15. {
    16. "name": "playTts",
    17. "properties": {
    18. "content": "文本回复内容1",
    19. "format": "text",
    20. "showText": "设备对话流展示内容1"
    21. }
    22. },
    23. {
    24. "name": "audioPlayGenieSource",
    25. "properties": {
    26. "audioGenieId": "500000236"
    27. }
    28. },
    29. {
    30. "name": "playTts",
    31. "properties": {
    32. "content": "文本回复内容2",
    33. "format": "text",
    34. "showText": "设备对话流展示内容2"
    35. }
    36. }
    37. ],
    38. "properties": {},
    39. "executeCode": "SUCCESS",
    40. "msgInfo": ""
    41. }
    42. }

    PS: 在混排回复时,在线测试的显示结果可能与真机测试的播报效果不一致。请以真机测试的播报效果为准。