# How to give your AI agent a local text-to-speech tool through MCP with VoiceStudio

Repo: [debpalash/VoiceStudio](https://github.com/debpalash/VoiceStudio) | Difficulty: Advanced | Time: 1 hour | Basis: Seen in the wild

Expose the local API and MCP server so a coding or chat agent can generate speech on demand.

**Who it is for:** Developer building an agent workflow that needs to speak or produce voiceovers without a paid API

**The problem:** Hosted speech APIs add cost, keys and data exposure to an agent pipeline.

**The outcome:** An agent that calls your local VoiceStudio to produce audio files on request.

## Steps

1. Install and run the app, and make sure a speech model is installed.
2. Read docs/mcp.md and docs/speech-platform.md in the repo for the local API and MCP setup.
3. Register the local MCP server in your agent's config using the details from those docs.
4. Ask the agent to generate a short clip and confirm the audio file appears.

## Prompt to paste into your agent

```text
Set up debpalash/VoiceStudio's local MCP server for this agent by following docs/mcp.md in the repo, then generate a short spoken clip of <text>. Verify the audio file exists and plays.
```

## Caveat

The README only points to the MCP and API docs, so exact config keys and ports must come from those docs, not from guesses.

## Seen in the wild

- X (Oct 2026): https://x.com/i/web/status/2111832943140438047

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/debpalash-voicestudio/let-an-agent-call-local-voice-api-or-mcp/
