Is there a way to have change female to male voice during the conversation in DialogFlow (Api.ai)

前端 未结 1 666
梦如初夏
梦如初夏 2020-12-17 04:36

We a building a chatbot app for Google Home using Api.ai (Dialogflow now) which has both male and female historical figures. We are using Actions on google. Google lets you

1条回答
  •  离开以前
    2020-12-17 05:01

    Maybe. Although SSML supports a tag, the documentation for Actions does not list it as supported. However, as you noted, there appears to be some support. The gender and variant attributes seem to work, at least for en-US. The languages attribute doesn't seem to be. So something like this might work:

    
        male
        male
        female
        female
    
    

    However what is documented as working is to adjust the pitch of the default voice (whichever one you pick) using the SSML tag. Here is an example you can use to see how it sounds if you vary the pitch:

    
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
        test
    
    

    You can also combine the two tags.

    0 讨论(0)
提交回复
热议问题