Skip to content
Automation
Skill

/video2mp3

从视频文件中提取音频并保存为 MP3。当用户提到视频转音频、提取音频、抽 MP3、视频提取声音时使用。

BOOST
From plugin
python-office
1.4k74 skills
Install
$ npx -y skills add coderwanfeng/python-office --skill video2mp3 --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/video2mp3

Context preview

The summary Claude sees to decide when to auto-load this skill.

从视频文件中提取音频并保存为 MP3。当用户提到视频转音频、提取音频、抽 MP3、视频提取声音时使用。

SKILL.md

video2mp3.SKILL.md
name: video2mp3
description: 从视频文件中提取音频并保存为 MP3。当用户提到视频转音频、提取音频、抽 MP3、视频提取声音时使用。

video2mp3 Skill

> 将视频文件转换为 mp3 音频文件

功能描述

从视频中提取音频,保存为 mp3 格式。

所属分类

`office/skills/video/video2mp3/`

调用方式

from skills.video import video2mp3

video2mp3(
    path='./test.mp4',
    mp3_name='test.mp3',
    output_path='./'
)

参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `path` | str | 是 | - | 视频文件的路径 | | `mp3_name` | str | 否 | `None` | 输出 mp3 文件的名称。如果未提供,默认为原视频文件名 | | `output_path` | str | 否 | `'./'` | 输出 mp3 文件的路径 |

返回值

`None`:在指定输出路径下生成 mp3 文件

使用示例

from skills.video import video2mp3
video2mp3(path='./movie.mp4', mp3_name='movie_audio.mp3')

原始函数

`office.api.video.video2mp3`

Ships withpython-office

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

Get the whole plugin
Stats
1,358
Stars
303
Forks
Maintained
Maintenance
Python
Language
Apache-2.0
License
1mo ago
Last commit
4y ago
Created
1d ago
Added

Repo: coderwanfeng/python-office

Other skills on python-office.