Аудиотег SSML не отображается при основном вызове Google Assistant.
У меня есть следующий призыв:
candidates:
- first_simple:
variants:
- speech: >-
<speak><audio
url="https://example.com/welcome.mp3"></audio></speak>
text: Welcome to my App!
suggestions:
- title: Explore
- title: Guess
Когда я тестирую его, я не слышу, как проигрывается mp3, вижу только приветственный текст.
Что я здесь неправильно делаю?
1 ответ
Решение
It turns out that using SSML is only possible in a webhook. Returning
speech
from a webhook resolved the issue.