AI Agent with ESP-VoCat
| Technical solution | Classic + AI Agent |
|---|---|
| Use case | Appliances & Controls |
A voice-enabled firmware example that lets users have natural conversations, manage reminders, control device settings, and interact with ESP RainMaker devices through a friendly virtual agent. To learn more about Private AI Agents platform, read this blog here.
Overview
| Processor | ESP32-S3 |
|---|---|
| Connectivity | Wi-Fi + BLE |
| Vcc | 5V |
| IDF Version | ESP-IDF v5.5.2 and newer |
What you can try
- Natural Voice Conversations: Have natural, human-like conversations with your voice agent.
- Set Reminders: Ask your agent to remind you about your tasks and events.
- Volume Control: Control the device volume through voice commands.
- Local Time Awareness: The agent is aware of the time at your timezone.
- Emotion-Based Display: The agent can update the emoji on the display based on the mood of the conversation, providing visual feedback that reflects the interaction context.
- ESP RainMaker Device Control: The default "friend" agent can control your ESP RainMaker devices, allowing you to manage your smart home ecosystem through voice commands.
Try it on a real board
Get an official DevKit from Espressif or one of its distributors, then flash this example straight from this page. Shop Espressif DevKits
Flash and try it
Runs on the public ESP RainMaker Classic deployment. Hosted by Espressif for evaluation. Free, with nothing to set up. Keep ESP RainMaker Classic when you sign in to the Home App.
Device Setup Instructions
1. Prerequisites
-
Hardware
1 x Linux, macOS or Windows-based computer
1 x ESP-VoCat device
1 x USB cable
1 x iOS or Android mobile device
Software
- ESP RainMaker Home App (Download from App Store or Google Play)
- ESP Private Agents account (Go to https://agents.espressif.com/ and click on "Try Now" to sign up or sign in)
2. Connect and Flash your device
- Connect your ESP-VoCat device to the computer using a USB cable, then click the
Connectbutton located in the top-left corner above the terminal. - Select the right port and click
connect. - Click
Flash Deviceabove the terminal and choose Erase and flash. Wait for theerase_flashprocess to finish before the firmware is written. - Wait for the firmware flashing process to complete.
3. Configure the Device
- Install and launch the ESP RainMaker Home app on your mobile device. The app will ask for Bluetooth/Location permission, which is necessary to detect unconfigured devices.
- The ESP-VoCat device will display a QR code on its screen.
- In the ESP RainMaker Home app, click on the "+" icon at the top right, and select 'Scan QR Code'. Use your phone's camera to scan the QR code displayed on the device.
- Once the app detects the device, it will ask for your Wi-Fi SSID and password.
- After the device is configured, it will connect to your Wi-Fi network and is ready to be used.
- If the device screen remains stuck on the QR code (provision screen), restart the device by power cycling it (press the power button twice) or by unplugging and reconnecting the USB cable.
4. Using the Device
- Once the device is in configured mode and connected to your Wi-Fi network, you can wake it up by saying "Hi, ESP" or by gently tapping once on the top of the device.
- The device will play a chime, indicating it's ready for conversation. When the device shows the listening icon, you may ask it any questions and it will respond to you.
- You can see the response on the device screen (displayed in green color).
- You can interrupt the agent anytime by touching the top of the device.
- When response playback stops, you can ask your next question.
- The device goes to sleep after 15 seconds of inactivity. You can wake it again by saying "Hi, ESP".
5. Default Agent Capabilities
-
The device comes with a friend-like conversational agent out of the box with the following capabilities:
• Having fun conversations
• Knowing local time at your location
• Setting reminders
• Adjusting volume of your device
• Updating the emoji on display based on mood of the conversation
• Controlling your ESP RainMaker devices
6. Reset to Factory
-
You can factory reset your device using any of the following methods:
1. Touch and hold the top of the device for 10 seconds. The screen will indicate that the reset is in progress.
2. Touch and hold the on screen for 10 seconds. The change in displayed emotion will indicate that the reset is in progress.
3. Reflash the firmware by following step 2.
4. Open the ESP RainMaker Home app → Tap the "Espressif AI Agent" device → Tap the Settings icon in the top-right corner → Tap "Remove Device".
7. Create your own custom AI Agent and configure it onto the Device (In Step 8)
- Go to the Agents Dashboard here and click "Manage Agents".
- When in the Agents Dashboard, click "+ New Agent" to create an agent from a template or from scratch.
- Configure the agent as needed, then click "Create Agent" to save it.
- Your newly created agent will appear in the Agents Dashboard; click the share icon under the Actions column to view its QR code and unique link.
- Scan the QR code with your phone's camera app or Google Lens; it will launch the ESP RainMaker Home app.
8. Configure your custom AI Agent onto the Device
- In the ESP RainMaker Home app, you will see a list of devices; choose a device to configure with this agent.
- You can configure the agent to the Chat device that exists on the phone app as "Chat Assistant" or configure it to the "Espressif AI Agent" device or any other compatible device that supports the ESP Private Agents platform.
- To configure the agent on the ESP-VoCat (Espressif AI Agent) device, select "Espressif AI Agent" from the list of devices and click "Update Device".
- After selecting your device, a pop up notification will appear confirming that the Agent ID has been updated onto the selected device.
- Select the "Espressif AI Agent" device in the app and confirm that the Agent name is the same as the one you created in the Agents Dashboard.
- You can now start using your newly customized agent.
Having trouble connecting?
- Ensure your device is properly connected via USB
- Check if the correct drivers are installed
- Try a different USB port or cable
- Verify that your device is in flashing mode
- Get the latest ESP RainMaker phone application here