Skip to main content
Glama

transcribe_audio

Convert speech from audio files to text using automated transcription. Specify audio URL and optional language for accurate text output.

Instructions

Transcribe speech from audio to text

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
audio_urlYesURL of the audio file to transcribe
languageNoLanguage code (e.g., 'en', 'es', 'fr')
webhook_urlNoURL for callback upon completion

Implementation Reference

  • Executes the transcribe_audio tool by validating inputs, making a POST request to the MusicGPT API's /audiotranscribe endpoint, and returning the task response with instructions for status checking.
    private async handleTranscribeAudio(args: any) { if (!args.audio_url) { throw new McpError(ErrorCode.InvalidParams, "audio_url is required"); } const response = await this.axiosInstance.post("/audiotranscribe", { audio_url: args.audio_url, language: args.language, webhook_url: args.webhook_url, }); return { content: [ { type: "text", text: `Audio transcription 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:521-542 (registration)
    Defines and registers the transcribe_audio tool in the TOOLS array, including name, description, and input schema. This array is returned by the listTools request handler.
    { name: "transcribe_audio", description: "Transcribe speech from audio to text", inputSchema: { type: "object" as const, properties: { audio_url: { type: "string", description: "URL of the audio file to transcribe", }, language: { type: "string", description: "Language code (e.g., 'en', 'es', 'fr')", }, webhook_url: { type: "string", description: "URL for callback upon completion", }, }, required: ["audio_url"], }, },
  • Switch case dispatcher that routes calls to the transcribe_audio tool to its handler function.
    case "transcribe_audio": return await this.handleTranscribeAudio(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