The essential AI Conversational agent with Google Gemini Live. Stream low-latency audio and text directly into Unity. C# native, lightning-fast, and cheaper than alternative AI stacks.All Render Pipelines supportedUnity 2022.3 onward is supported. Previous versions might work, but are not guaranteed to work.Unity 6+ fully integrates the Awaitable APISample Scene required TextMeshPro to be imported🌌 LiveVoice AI LiteBring your project to life with the most advanced, real-time multilingual AI integration available for Unity. The Lite edition provides the essential core of Google’s Gemini Live, enabling true conversational AI with low-latency bidirectional audio and text streaming.Pro Version: LiveVoice AI Pro💡 Why use this integration?Unbeatable Speed & Cost: Bypasses the lag and high cost of chaining multiple services (STT + LLM + TTS). LiveVoice AI does it all in one low-latency WebSocket stream.Fully Multilingual: LiveVoice AI supports 29 languages natively, allowing you to create for every use case.Extensive Documentation: All core features are properly documented, including samples on how to set up and use the API.Battle Tested: This integration has been tested extensively in educational projects running Unity 6 & 6.3LTS.🔧 Core Features (Included)Seamless WebSocket Streaming: High-performance, asynchronous communication.2 Premium Voices: Includes access to 2 high-quality Google AI voices.Full Context Control: Sliding context window to manage memory usage.Custom System Instructions: Define the exact persona, lore, and behavior of your AI.Output Control: Fine-tune Temperature, Top-P, Top-K, and Max Tokens.Sanitization: Basic and extendable text cleaning for safe outputs.🧩 Robust Event SystemBuild dynamic interactions with a suite of real-time C# events. Examples include:GeminiTurnEndEvent: Fires the moment a full conversational "turn" is finished.GeminiGenerationCompleteEvent: Signals that the AI has finished generating its response.GeminiServerClosedSessionEvent: Provides specific error codes and closure reasons (like network timeouts or API limits), allowing you to implement seamless reconnection logic.GeminiSessionReadyEvent: Know exactly when the WebSocket handshake is complete and the AI is "listening."🚀 Easy to get startedGet a Key: Visit Google AI Studio to acquire your API key.Import: Add the package to your project.Run: Open the Sample Scene, paste your key, and start testing immediately.Extend: Use the included scripts to hook up the event system to your gameplay logic.✨ Need more power? Upgrade to PRO!The LiveVoice AI Pro version unlocks the full potential of the Gemini Live API, including:Microphone Input & VAD: Built-in Voice Activity Detection for hands-free conversations.AI ↔ C# Function Calling: Let the AI trigger your C# methods (e.g., spawn items, open doors).Google Search & Thinking Mode: Real-time web access and deeper reasoning capabilities.Input Transcription: Get Speech-to-Text transcripts of what the user says.Complete Voice Library: Access all 30 premium Google AI voices.⁉️ API UsageYou are required to use your own Gemini API key in order to use this tool. Gemini Live currently can be used for free with data sharing, or paid without data sharing. Reference the Gemini Live API Pricing for more details. There is an easy method to provide your key in a scriptable object, which can be added to your gitignore to keep keys private.Get support or ask questions:- Discord⚠️ DisclaimerThis project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Google LLC. It is an independent integration providing a Unity-compatible interface for the public Gemini Live API.Fully C# based and compatible with all Unity supported platforms All Render Pipelines supported.Unity 2022.3 onward is supported. Previous versions might work, but are not guaranteed.Unity 6+ fully integrates the Awaitable API.Sample Scene requires TextMeshPro to be imported.AI was used in the marketing materials, as well as expanding the amount of generic overloads.All LiveVoice code is handwritten referencing the Gemini Live python web socket API.



