Skip to main content
Glama

voice_changer

Convert audio files to different voices using AI voice models. Provide an audio URL and target voice ID to transform voice characteristics in audio content.

Instructions

Convert audio from one voice to another using AI voice models

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
audio_urlYesURL of the audio file to convert
voice_idYesTarget voice model ID (use get_all_voices to find IDs)
webhook_urlNoURL for callback upon completion

Implementation Reference

  • The core handler function for the 'voice_changer' tool. Validates required arguments (audio_url, voice_id), makes a POST request to the MusicGPT API's /voicetovoice endpoint, and returns the task information with instructions for polling status.
    private async handleVoiceChanger(args: any) { if (!args.audio_url || !args.voice_id) { throw new McpError(ErrorCode.InvalidParams, "audio_url and voice_id are required"); } const response = await this.axiosInstance.post("/voicetovoice", { audio_url: args.audio_url, voice_id: args.voice_id, webhook_url: args.webhook_url, }); return { content: [ { type: "text", text: `Voice conversion started!\n\n${JSON.stringify(response.data, null, 2)}\n\nUse get_conversion_by_id with the task_id to check the status.`, }, ], }; }
  • src/index.ts:207-228 (registration)
    Tool registration in the TOOLS array, including name, description, and input schema. This is returned by the listTools handler.
    { name: "voice_changer", description: "Convert audio from one voice to another using AI voice models", inputSchema: { type: "object" as const, properties: { audio_url: { type: "string", description: "URL of the audio file to convert", }, voice_id: { type: "string", description: "Target voice model ID (use get_all_voices to find IDs)", }, webhook_url: { type: "string", description: "URL for callback upon completion", }, }, required: ["audio_url", "voice_id"], }, },
  • src/index.ts:677-678 (registration)
    Switch case in the main CallToolRequestSchema handler that routes 'voice_changer' calls to the specific handleVoiceChanger function.
    case "voice_changer": return await this.handleVoiceChanger(args);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pasie15/mcp-server-musicgpt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server