dereverb_audio
Remove reverb from audio files to improve clarity and quality. Process audio by providing a URL, with optional webhook notification upon completion.
Instructions
Remove reverb 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:1011-1029 (handler)The main handler function for the dereverb_audio tool. It validates input, makes a POST request to the MusicGPT API's /dereverb endpoint, and returns task information with instructions to poll status.private async handleDereverbAudio(args: any) { if (!args.audio_url) { throw new McpError(ErrorCode.InvalidParams, "audio_url is required"); } const response = await this.axiosInstance.post("/dereverb", { audio_url: args.audio_url, webhook_url: args.webhook_url, }); return { content: [ { type: "text", text: `Audio de-reverb 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:314-330 (schema)The input schema definition for the dereverb_audio tool, specifying required audio_url and optional webhook_url.{ name: "dereverb_audio", description: "Remove reverb 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:691-692 (registration)The switch case in the main CallToolRequestSchema handler that dispatches dereverb_audio tool calls to the specific handleDereverbAudio method.case "dereverb_audio": return await this.handleDereverbAudio(args);