Skip to main content
Glama

transcribe_audio

Convert audio files to text, timestamps, or SRT subtitles with automatic language detection. Specify the audio file path and desired output format.

Instructions

将音频文件转写为文本。调用前若用户未明确指定,应先询问用户选择哪种转写类型。

转写在后台子进程中运行,完成后自动上报结果,不需要轮询进度。 默认超时 10 分钟;超时后会如实检查并告知是「尚未完成」(任务继续后台运行, 完成后结果自动写入输出文件)还是「转写出错」(附带错误信息)。

Args: audio_path: 音频文件的绝对路径(支持 m4a/mp3/wav/flac 等常见格式) task_type: 转写类型。text=纯文本含标点(默认),timestamps=带时间轴,srt=SRT 字幕 output_dir: 输出目录,默认与音频文件同目录 language: 语言提示,如 zh、en。不指定则自动检测 timeout: 超时时间(秒),默认 600(10 分钟)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
languageNo
task_typeNotext
audio_pathYes
output_dirNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description fully carries the transparency burden. It clearly discloses background subprocess execution, automatic result reporting, absence of polling, default timeout of 10 minutes, and the specific timeout handling (checking whether the task is still running or errored). This is rich behavioral context beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: a clear purpose line, a usage note, a behavioral note, and a neatly formatted Args list. Every sentence adds value, and the length is appropriate for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 5 parameters, no annotations, and an output schema, the description covers all necessary aspects: purpose, preconditions (ask user), execution model, timeout behavior, and parameter semantics. The existence of an output schema means return values need not be detailed here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the Args section thoroughly explains every parameter: audio_path (absolute path, supported formats), task_type (possible values and meanings), output_dir (default behavior), language (hint, auto-detect), and timeout (default in seconds). This fully compensates for the lack of schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with '将音频文件转写为文本' (transcribe audio files to text), clearly specifying the verb and resource. It also outlines the different output types (text, timestamps, srt), making the tool's purpose unambiguous and distinct from the sibling correct_transcription.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear guidance: ask the user for the transcription type if not specified, and notes that transcription runs in the background without polling. However, it does not explicitly mention alternatives or when not to use this tool, e.g., versus correct_transcription, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/fengredrum/asr-mcp'

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