从视频文件中提取音频并保存为 MP3。当用户提到视频转音频、提取音频、抽 MP3、视频提取声音时使用。
76
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
将视频文件转换为 mp3 音频文件
从视频中提取音频,保存为 mp3 格式。
office/skills/video/video2mp3/
from office.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 office.skills.video import video2mp3
video2mp3(path='./movie.mp4', mp3_name='movie_audio.mp3')office.api.video.video2mp3
2b1996b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.