free AI voice generator for game NPCs in Unity
Three options for a free AI voice generator for game NPCs in Unity. Generate lines, then play them on an AudioSource. Rights still matter.
Related: Best AI for game voiceover · Best AI for open NPC dialogue · Voice · Gaming · Piper TTS · ElevenLabs · Inworld.
How we lined them up
- Piper if you want a truly free, local voice generator and can handle setup. Official project: a fast local neural TTS you run on your own machine (github.com/rhasspy/piper). There is no first-party Piper Unity package from that repo. The honest Unity path is: synthesize WAV or OGG, then import the file into Assets and play it on an AudioSource. Community Unity ports exist, but they are not the official Piper project, so treat them as extra setup and read their licenses. Last checked 1 Dec 2026.
- ElevenLabs if you want hosted character TTS and an official Unity SDK. Free plan (as of 2026-12-01): $0/month, 10k credits per month, Text to Speech included. Official help: the free plan does not include a commercial license and cannot be used for any commercial purpose. Shared non-commercial content needs ElevenLabs attribution. Paid plans add a commercial license. Official ElevenAgents Unity SDK: Unity 6.3 LTS (6000.3.0f1) or later, install from git URL https://github.com/elevenlabs/unity.git, voice plays through an AudioSource. That SDK is a live agent conversation, not a batch line renderer. For recorded NPC lines, generate in the ElevenLabs app or API, then import the audio. Confirm on elevenlabs.io/pricing, elevenlabs.io/docs/help-center/legal/can-i-publish-the-content-i-generate-on-the-platform, and elevenlabs.io/docs/eleven-agents/libraries/unity. Last checked 1 Dec 2026.
- Inworld if you want first-party TTS plus a Unity character runtime, with a free On-Demand tier. Official billing docs: On-Demand is Free, and On-Demand accounts include up to 70 minutes of TTS for free. Official pricing page lists a commercial license on On-Demand. Legacy Character Studio is retired. Official deprecation guide: download the Unity AI Runtime SDK and use the Character template, including a demo that combines LLM, TTS, and STT. You still need a live Inworld connection for the runtime path. Confirm on docs.inworld.ai/portal/billing, inworld.ai/pricing, and docs.inworld.ai/character-studio-deprecation. Last checked 1 Dec 2026.
How to play generated NPC voice in Unity
- For Piper or ElevenLabs studio or API lines: export WAV or OGG. Drag the file into your Unity project's Assets folder. Select it and confirm it imports as an AudioClip.
- Add an AudioSource on the NPC, often on the character's head or chest so the voice is spatial. Assign the clip, or load it at runtime, then call Play() when the line should fire.
- For live talk, use a vendor Unity SDK instead of a pre-made clip. ElevenLabs documents Conversation.StartSessionAsync with OutputAudioSource on Unity 6.3 LTS or later. Inworld documents a Unity AI Runtime SDK Character template with TTS. Both need a network connection and an API key.
- Match sample rate and load type in Import Settings if the voice pops or delays. Keep a human pass on NPC names, timing, and loudness before you ship.
FAQ
What is a free AI voice generator for game NPCs in Unity?
On this list: Piper for local files you import, ElevenLabs for hosted TTS with a free credit pool and an official Unity agent SDK, and Inworld for On-Demand TTS minutes plus a Unity runtime SDK. Piper is the only one that stays fully local. Confirm current free-tier limits and licenses on each vendor site. Last checked 1 Dec 2026.
Can I ship a Unity game with free-plan voices?
It depends on the vendor license, not on Unity. ElevenLabs official help: the free plan has no commercial license. Inworld's pricing page lists a commercial license on On-Demand, but you should still read the current terms. Piper voices each have their own model card and license. Read the vendor terms before you ship. Last checked 1 Dec 2026.
Do I need a Unity plugin?
Not for pre-generated lines. Export audio and drag it onto an AudioSource. Plugins matter for live conversation: ElevenLabs publishes an official Unity SDK for ElevenAgents, and Inworld publishes a Unity AI Runtime SDK. Piper has no first-party Unity package from github.com/rhasspy/piper. Last checked 1 Dec 2026.
Which option works fully offline?
Piper. You run it on your machine, then import the files. ElevenLabs and Inworld need their cloud. Last checked 1 Dec 2026.
Where did these facts come from?
Piper: github.com/rhasspy/piper. ElevenLabs: elevenlabs.io/pricing, elevenlabs.io/docs/help-center/legal/can-i-publish-the-content-i-generate-on-the-platform, elevenlabs.io/docs/eleven-agents/libraries/unity. Inworld: docs.inworld.ai/portal/billing, inworld.ai/pricing, docs.inworld.ai/character-studio-deprecation. Last checked 1 Dec 2026.
These are cautious, editorial notes, not lab scores. Pricing and features move. Check the vendor site, and read Methodology for how lists are built. More in Voice.