Search code examples
actions-on-googlessml

Change voice in Action


How do I change the voice during my response in "Actions on Google"? Is there an SSML code to temporarily change the voice, for example, from male to female, while reading a quotation?


Solution

  • You actually can change the voice bye adding a voice tag inside the speak tag. You can try something like this:

    <speak><voice gender="female">Hello I'm Mary</voice><break time="2s"/><voice gender="male">Hey I'm John</voice><speak>