Run Voice Assistant with Realtime API
This guide will help you to run the Voice Assistant with Voice to Voice Realtime API in the NYRA-Agent Playground.
Prerequisites
Make sure you have the Nyra-Agent playground running. If it’s not already started, refer to the Run Playground guide to launch the playground.
Before proceeding, ensure you have the following information prepared:
Realtime API Key
RTC Information: Currently, only Agora RTC is supported. You can register for an account at Agora. We assume you have your App ID and App Certificate ready for configuration in your
.envfile.
Steps
To configure your Nyra-Agent, follow these steps:
Open the Playground: Navigate to
localhost:3000to access the Nyra-Agent playground.Select Graph Type: Choose the
voice_assistant_realtimegraph type.Open Module Picker: Click on Module Picker to open the module selection menu.
Choose V2V Module: Select your preferred V2V module from the dropdown list.
Apply Module: Click Save Changes to apply the selected module to the graph.
Open Property Configuration: Click the button next to the graph selection to open the property configuration.
Configure Realtime API Key: In the property configuration, locate the Realtime API Key property and input the information you prepared.
Save Changes: Click Save Changes to apply the configured property to the V2V module.
Confirmation: If a success toast appears, the property has been successfully applied to the V2V module.
Now you’re all set! To interact with the Voice Assistant, click the Connect button. Please note, you may need to wait a few seconds for the agent to initialize before interaction begins.
Bind Weather Tool to your V2V
You can bind the weather tool to your V2V module in the Nyra-Agent Playground.
Run the Agent: Ensure your Nyra-Agent is running.
Open Module Picker: Access the Module Picker.
Open Tool Selection: Click on the button next to the V2V module to open the tool selection menu.
Select Weather Tool: From the popover list, choose the
Weather Tool.Apply Tool: Click
Save Changesto bind the weather tool to the V2V module.Confirmation: If a success toast appears, the tool has been successfully applied to the V2V module.
Last updated