Configuring a voice
Configure your agent to use voice when communicating with users. On IBM watsonx Orchestrate, you can configure more than one voice to be used in any agent.
Before you begin
Before configuring a voice, you need:
- Access to IBM Watson Speech to Text and Text to Speech service instances.
- API details, including the API key, for both instances.
To get the API details or create new instances of these services, access the IBM Cloud page.
Creating a voice configuration
To create a voice configuration and enable it in an agent:
-
Click the watsonx Orchestrate menu
.
-
Select Manage > Voice.
-
Click Create voice configuration.
-
In the Details tab, enter a name for the voice configuration and click Next.
-
In the Speech to Text tab, you must configure the Watson Speech to Text service.
- Enter the API URL of the Watson Speech to Text instance.
- Enter the API key of this instance.
- Select the Speech to Text language model.
For more information, see the Speech to Text documentation.
-
Click Next.
-
In the Text to Speech tab, you must configure the Watson Text to Speech service.
- Enter the API URL of the Watson Text to Speech instance.
- Enter the API key of this instance.
- Select the language of the voice.
For more information, see the Text to Speech documentation.
-
Select the type of voice.
-
Define the speed and pitch of the voice.
-
Click Save.
You have a voice configuration available to define voice interactions for your agents.
Editing voice configuration
To edit the voice configuration:
- On the Voice page, choose the voice configuration and click the three vertical ellipses.
- Select the Edit option.
- Apply the changes through the three tabs.
- Click Save.
Deleting voice configuration
To delete the voice configuration:
- On the Voice page, choose the voice configuration and click the three vertical ellipses.
- Select the Delete option.
- In the pop-up window that appears, click Delete.
Selecting the voice in the agent
After you have created the voice configuration, you must select it in your agent. See the following steps:
- Open the agent in the agent builder.
- In the Profile tab, go to the Voice modality section.
- Select the voice configuration from the drop-down list.
Testing the voice
You can test the voice in the chat preview in the following way:
- Click Being voice chat
.
- Give the required microphone permission in the browser.
- After interacting with the agent through the voice, click End voice chat to finish the conversation.