Let Your Robo Speak: Introducing AI Voice Plugin! ๐๏ธ

Hey there! Weโre excited to share our new AI Voice Plugin, @roboplay/plugin-ai-voice
. It's an add-on to our primary AI plugin, allowing your Robo to interact in voice channels. Itโs in the early development stages, but we're actively enhancing it for a smoother experience.
๐ How to Use
Get your Robo into a voice channel and start talking away! This plugin retains your Robo's distinct personality, maintaining a consistent tone with the existing system message. And yes, it understands your commands too! Just tell Robo what you want, and watch it spring into action.

๐ค Integration
The voice plugin integrates seamlessly with the primary AI plugin, @roboplay/plugin-ai
, ensuring that your Roboโs personality remains consistent. If you don't have the primary AI plugin, you can add it in a snap with:
npx robo add @roboplay/plugin-ai
๐ง Setup
Voice Transcription & Processing: Powered by OpenAI. Donโt forget to sign up for an OpenAI API key.
Speech Synthesis: Fueled by Azureโs Speech Services. Please include this service in your Azure subscription.
To integrate, add the following keys to your .env
file:
AZURE_SUBSCRIPTION_KEY=""
AZURE_SUBSCRIPTION_REGION=""
OPENAI_KEY=""
๐ฆ Installation
To dive into this new experience, ensure youโre on the latest version of Robo.js and run:
npx robo add @roboplay/plugin-ai-voice
Also, donโt overlook the required peer dependencies:
npm install @discordjs/voice libsodium-wrappers
When setting up, just remember to slide in the GuildVoiceStates
intent into your config, like this:
export default {
clientOptions: {
intents: [
// ... your other cool intents
'GuildVoiceStates' // ๐ Just pop this one in here!
]
}
}
New Robo? ๐
Starting fresh? Let's get you set up!
For a brand new Robo, run this in your terminal:
npx create-robo <your-robo-name>
You'll see an option to include our new AI Voice
plugin during the setup. Select it and you're good to go.
๐ Note: Node.js 18+ is needed. Make sure you're up-to-date.
Already have a Robo? Just install the plugins via npm and add them to your config.
Easy peasy. Now go make some Robo magic! ๐