The ability to configure speech models enables you to experiment with current or future speech models to use for the entire bot, or an individual turn. Configure a Google Cloud Dialogflow ES speech model for use with Genesys Cloud by creating a Custom Payload Response for your bot in the Google Cloud Dialogflow ES console. 

Model selection

When you enter the custom payload response as described in the following task, you can use one of the models defined in the Model selection list in the Google Cloud Speech-to-Text guide, or you can use an empty string. If you use an empty string, Google Cloud selects the best available model. If you omit the property, then Google Cloud uses the last specified model. For example, if you set the model to “latest_short” and supply a second set of options without choosing a model, then Google Cloud uses “latest_short.”

Variant selection

When you enter the custom payload response as described in the following task, you can set the variant to one of these options:

  • Standard
  • Enhanced
  • Empty string

If you use an empty string, then Google Cloud selects the best available variant. If you omit the property, then Google Cloud uses the last specified variant. For example, if you set the variant to “enhanced” and then supply a second set of options without choosing a variant, then Google Cloud uses “enhanced.”

Use a custom payload to specify the Google Cloud Dialogflow ES speech model

  1. In the Google Cloud Platform console, go to the Dialogflow ES Console.
  2. Select an agent.
  3. Select Intents in the left sidebar menu.
  4. Select an intent.
  5. Scroll down to the Responses section.
  6. Click Add Responses and then click Custom Payload.
  7. To specify the Google Cloud Dialogflow ES speech model, add the following code to the custom payload response:
    {
    
         "recognition-options": {
    
              "model": "",
    
              "variant": ""
    
         }
    
    }
  8. Click Save.