MCP ExplorerExplorer

Mcp Tts Server

@kaichenon a year ago
1 MIT
FreeCommunity
AI Systems
#mcp#mcp-servers#tts
A TTS server using MCP and Groq API for lifelike audio generation.

Overview

What is Mcp Tts Server

mcp-tts-server is a Text-to-Speech (TTS) server that utilizes the Model Context Protocol (MCP) and the Groq API for generating lifelike audio from text.

Use cases

Use cases include generating audio for e-learning platforms, creating voiceovers for videos, enhancing accessibility for visually impaired users, and integrating into chatbots for a more interactive experience.

How to use

To use mcp-tts-server, install the dependencies with ‘bun install’, set the Groq API key as an environment variable, and run the server using the provided command structure in the MCP client.

Key features

Key features include TTS functionality via MCP, connection to the Groq API for audio generation, support for multiple audio formats (wav, mp3, aac, opus, flac), and optional direct audio playback on the server using @tropicbliss/symphonia.

Where to use

mcp-tts-server can be used in various fields such as accessibility tools, voice assistants, educational applications, and any system requiring text-to-speech capabilities.

Content

mcp-tts-server

This project provides a Text-to-Speech (TTS) server based on the Model Context Protocol (MCP), utilizing the Groq API for speech generation.

Features

  • Implements an MCP server for TTS functionality.
  • Connects to the Groq API (https://api.groq.com/openai/v1/audio/speech) for generating lifelike audio from text.
  • Provides a generate_speech tool accessible via the MCP protocol.
  • Supports multiple audio output formats (wav, mp3, aac, opus, flac).
  • Uses @tropicbliss/symphonia to play the generated audio directly on the server machine (optional).
  • Requires a Groq API key set as an environment variable (GROQ_API_KEY).

Installation

To install dependencies:

bun install

Running the Server on MCP Client

To run the server using the stdio transport:

Project Structure

  • src/server.ts: Defines the core MCP server logic, including the generate_speech tool and interaction with the Groq API.
  • src/cli.ts: Provides a command-line interface to run the MCP server over stdio.

This project was created using bun init in bun v1.2.7. Bun is a fast all-in-one JavaScript runtime.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers