Skip to content
Automation
Skill

/audio2txt

从音频文件中提取文字(语音转文字),需要腾讯云 API 凭据。当用户提到音频转文字、语音识别、ASR、音频转字幕时使用。

From plugin
python-office
1.4k80 skills

Claude Code

$ npx -y skills add coderwanfeng/python-office --skill audio2txt --agent claude-code

SKILL.md

audio2txt.SKILL.md
name: audio2txt
description: 从音频文件中提取文字(语音转文字),需要腾讯云 API 凭据。当用户提到音频转文字、语音识别、ASR、音频转字幕时使用。

audio2txt Skill

> 从音频里提取文字

功能描述

使用语音识别 API 从音频中提取文字。

> ⚠️ 注意:本地语音文件不能大于 5MB。

所属分类

`office/skills/video/audio2txt/`

调用方式

from skills.video import audio2txt

audio2txt(
    audio_path='./test.mp3',
    appid='your_appid',
    secret_id='your_secret_id',
    secret_key='your_secret_key'
)

参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `audio_path` | str | 是 | - | 音频文件路径 | | `appid` | str | 是 | - | 语音识别 API 的应用 ID | | `secret_id` | str | 是 | - | 语音识别 API 的密钥 ID | | `secret_key` | str | 是 | - | 语音识别 API 的密钥 |

返回值

`None`

使用示例

from skills.video import audio2txt
audio2txt(
    audio_path='./audio.mp3',
    appid='your_appid',
    secret_id='your_secret_id',
    secret_key='your_secret_key'
)

原始函数

`office.api.video.audio2txt`

@coderwanfeng
Ships withpython-office

pip install python-office 自动化办公专用库

Stars on GitHub

Momentum

stars in total
1.4k
Star history of coderwanfeng/python-office on GitHub, a chart by star-history.com

Other skills on python-office.

excel2csv

excel2csv

把 Excel 工作表导出为 CSV,默认 utf-8-sig 编码解决中文乱码,支持多工作表批量导出。当用户提到 Excel 转 CSV、表格转文本、CSV 乱码时使用。

excel2json

excel2json

把 Excel 工作表转换成 JSON,支持 records、columns、values 三种结构,日期自动转 ISO 字符串。当用户提到 Excel 转 JSON、表格转接口数据、Excel 生成 mock 数据时使用。

excel2pdf

excel2pdf

将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。

excel_column_stats

excel_column_stats

统计 Excel 每一列的填充率、类型、唯一值数量和数值分布,用于数据质量初筛。当用户提到 Excel 列统计、数据质量、缺失率、列画像时使用。

excel_dedupe

excel_dedupe

按指定列或整行给 Excel 去重,返回重复行与保留行的对应关系,可导出干净数据。当用户提到 Excel 去重、删除重复项、重复数据、查重时使用。

excel_diff

excel_diff

比对两份 Excel 表格的差异,按位置或按主键找出修改、新增、删除的行,可导出差异表。当用户提到对比 Excel、Excel 差异、两份表格有什么不同、核对表格时使用。

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n3w209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

nanoclaw11d31k
@nanocoai@nanocoaiInstall Skill

Questions about audio2txt.

Which coding agents can use audio2txt?
audio2txt installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.