deecho_audio
Remove echo from audio files by processing them through the MusicGPT MCP Server. Upload an audio URL to clean up recordings and improve sound quality.
Instructions
Remove echo from audio
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio_url | Yes | URL of the audio file to process | |
| webhook_url | No | URL for callback upon completion |
Implementation Reference
- src/index.ts:991-1009 (handler)The handler function that implements the core logic for the 'deecho_audio' tool. It validates input, makes a POST request to the '/deecho' API endpoint, and returns a response message with task status information.private async handleDeechoAudio(args: any) { if (!args.audio_url) { throw new McpError(ErrorCode.InvalidParams, "audio_url is required"); } const response = await this.axiosInstance.post("/deecho", { audio_url: args.audio_url, webhook_url: args.webhook_url, }); return { content: [ { type: "text", text: `Audio de-echo 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:297-313 (schema)The input schema definition for the 'deecho_audio' tool, part of the TOOLS array used for tool listing in MCP.name: "deecho_audio", description: "Remove echo from audio", inputSchema: { type: "object" as const, properties: { audio_url: { type: "string", description: "URL of the audio file to process", }, webhook_url: { type: "string", description: "URL for callback upon completion", }, }, required: ["audio_url"], }, },
- src/index.ts:689-690 (registration)The switch case in the main tool execution handler that routes calls to 'deecho_audio' to the specific handleDeechoAudio method.case "deecho_audio": return await this.handleDeechoAudio(args);