技能圖譜SKILLSGROVE
技能圖譜/影片製作/bolecodex/volcano-videocut-openclaw/LAS 音频提取与切分

LAS 音频提取与切分

安裝

$npx skills add https://github.com/bolecodex/volcano-videocut-openclaw --skill 'LAS 音频提取与切分'
$git clone --depth 1 https://github.com/bolecodex/volcano-videocut-openclaw.git /tmp/volcano-videocut-openclaw && mkdir -p ~/.claude/skills && cp -r /tmp/volcano-videocut-openclaw/skills/byted-las-audio-extract-and-split ~/.claude/skills/LAS-音频提取与切分
請幫我安裝這個 Agent Skill:https://github.com/bolecodex/volcano-videocut-openclaw/tree/ccd47a63e74afcac7cfa3daaab2df2df512ace1a/skills/byted-las-audio-extract-and-split ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · Apache-2.0从视频或纯音频中提取音轨,并按固定时长切分;支持 wav/mp3/flac 等格式转换,输入输出可对接 TOS。 需 LAS_API_KEY。适用于批量抽音频、等长分段、给 ASR/剪辑流水线备料。
以下 SKILL.md 內容轉載自 bolecodex/volcano-videocut-openclaw(提交 ccd47a6),依據 Apache-2.0 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates. 所有。許可證:skills/byted-las-audio-extract-and-split/LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

LAS-AUDIO-EXTRACT-AND-SPLIT (las_audio_extract_and_split)

本 Skill 用于调用 LAS 音频切分算子,支持从视频/音频中提取音频并按时长切分。

  • POST https://operator.las.cn-beijing.volces.com/api/v1/process 同步处理

快速开始

在本 skill 目录执行:

python3 scripts/skill.py --help

执行音频切分

python3 scripts/skill.py process \
  --input-path "tos://bucket/input.mp4" \
  --output-path-template "tos://bucket/output/{index}.wav" \
  --split-duration 30 \
  --output-format wav

参数说明

  • input_path: 输入文件的 TOS 路径。
  • output_path_template: 输出文件路径模版。支持变量 {index}, {index1}, {ordinal}, {hours}, {duration}, {output_file_ext}。
  • split_duration: 切片时长(秒),默认 30。
  • output_format: 输出格式,支持 wav, mp3, flac,默认 wav。

常见问题

  • 确保 TOS 路径有读写权限。
  • API Key 需通过环境变量 LAS_API_KEY 或 env.sh 配置。
檢視許可證全文(Apache-2.0)
# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.