当前位置: 首页 > Skill >

acestep-lyrics-transcription

acestep-lyrics-transcription

acestep-lyrics-transcription

使用 OpenAI Whisper 或 ElevenLabs Scribe API 将音频转录为带时间戳的歌词。输出 LRC、SRT 或 JSON 格式(含词级时间戳)。适用于转录歌曲、生成 LRC 文件或提取带时间戳歌词。

1.0.1 2026.11.12 726
获取Skill文件查看使用说明
作 者:陈辰 许可证: 更新时间:2026.11.12
本文目录展开

Lyrics Transcription Skill

Transcribe audio files to timestamped lyrics (LRC/SRT/JSON) via OpenAI Whisper or ElevenLabs Scribe API.

API Key Setup Guide

Before transcribing, you MUST check whether the user's API key is configured. Run the following command to check:

cd "{project_root}/{.claude or .codex}/skills/acestep-lyrics-transcription/" && bash ./scripts/acestep-lyrics-transcription.sh config --check-key

This command only reports whether the active provider's API key is set or empty — it does NOT print the actual key value. NEVER read or display the user's API key content. Do not use config --get on key fields or read config.json directly. The config --list command is safe — it automatically masks API keys as *** in output.

If the command reports the key is empty, you MUST stop and guide the user to configure it before proceeding. Do NOT attempt transcription without a valid key — it will fail.

Use AskUserQuestion to ask the user to provide their API key, with the following options and guidance:

  1. Tell the user which provider is currently active (openai or elevenlabs) and that its API key is not configured. Explain that transcription cannot proceed without it.
  2. Provide clear instructions on where to obtain a key:
    • OpenAI: Get an API key at https://platform.openai.com/api-keys — requires an OpenAI account with billing enabled. The Whisper API costs ~$0.006/min.
    • ElevenLabs: Get an API key at https://elevenlabs.io/app/settings/api-keys — requires an ElevenLabs account. Free tier includes limited credits.
  3. Also offer the option to switch to the other provider if they already have a key for it.
  4. Once the user provides the key, configure it using:
    cd "{project_root}/{.claude or .codex}/skills/acestep-lyrics-transcription/" && bash ./scripts/acestep-lyrics-transcription.sh config --set <provider>.api_key <KEY>
    
  5. If the user wants to switch providers, also run:
    cd "{project_root}/{.claude or .codex}/skills/acestep-lyrics-transcription/" && bash ./scripts/acestep-lyrics-transcription.sh config --set provider <provider_name>
    
  6. After configuring, re-run config --check-key to verify the key is set before proceeding.

If the API key is already configured, proceed directly to transcription without asking.

Quick Start

# 1. cd to this skill's directory
cd {project_root}/{.claude or .codex}/skills/acestep-lyrics-transcription/

# 2. Configure API key (choose one)
./scripts/acestep-lyrics-transcription.sh config --set openai.api_key sk-...
# or
./scripts/acestep-lyrics-transcription.sh config --set elevenlabs.api_key ...
./scripts/acestep-lyrics-transcription.sh config --set provider elevenlabs

# 3. Transcribe
./scripts/acestep-lyrics-transcription.sh transcribe --audio /path/to/song.mp3 --language zh

# 4. Output saved to: {project_root}/acestep_output/<filename>.lrc

Prerequisites

  • curl, jq, python3 (or python)
  • An API key for OpenAI or ElevenLabs

Script Usage

./scripts/acestep-lyrics-transcription.sh transcribe --audio <file> [options]

Options:
  -a, --audio      Audio file path (required)
  -l, --language   Language code (zh, en, ja, etc.)
  -f, --format     Output format: lrc, srt, json (default: lrc)
  -p, --provider   API provider: openai, elevenlabs (overrides config)
  -o, --output     Output file path (default: acestep_output/<filename>.lrc)

Post-Transcription Lyrics Correction (MANDATORY)

CRITICAL: After transcription, you MUST manually correct the LRC file before using it for MV rendering. Transcription models frequently produce errors on sung lyrics:

  • Proper nouns: "ACE-Step" → "AC step", "Spotify" → "spot a fly"
  • Similar-sounding words: "arrives" → "eyes", "open source" → "open sores"
  • Merged/split words: "lighting up" → "lightin' nup"

Correction Workflow

  1. Read the transcribed LRC file using the Read tool
  2. Read the original lyrics from the ACE-Step output JSON file
  3. Use original lyrics as a whole reference: Do NOT attempt line-by-line alignment — transcription often splits, merges, or reorders lines differently from the original. Instead, read the original lyrics in full to understand the correct wording, then scan each LRC line and fix any misrecognized words based on your knowledge of what the original lyrics say.
  4. Fix transcription errors: Replace misrecognized words with the correct original words, keeping the timestamps intact
  5. Write the corrected LRC back using the Write tool

What to Correct

  • Replace misrecognized words with their correct original versions
  • Keep all [MM:SS.cc] timestamps exactly as-is (timestamps from transcription are accurate)
  • Do NOT add structure tags like [Verse] or [Chorus] — the LRC should only have timestamped text lines

Example

Transcribed (wrong):

[00:46.96]AC step alive,
[00:50.80]one point five eyes.

Original lyrics reference:

ACE-Step alive
One point five arrives

Corrected (right):

[00:46.96]ACE-Step alive,
[00:50.80]One point five arrives.

Configuration

Config file: scripts/config.json

# Switch provider
./scripts/acestep-lyrics-transcription.sh config --set provider openai
./scripts/acestep-lyrics-transcription.sh config --set provider elevenlabs

# Set API keys
./scripts/acestep-lyrics-transcription.sh config --set openai.api_key sk-...
./scripts/acestep-lyrics-transcription.sh config --set elevenlabs.api_key ...

# View config
./scripts/acestep-lyrics-transcription.sh config --list
Option Default Description
provider openai Active provider: openai or elevenlabs
output_format lrc Default output: lrc, srt, or json
openai.api_key "" OpenAI API key
openai.api_url https://api.openai.com/v1 OpenAI API base URL
openai.model whisper-1 OpenAI model (whisper-1 for word timestamps)
elevenlabs.api_key "" ElevenLabs API key
elevenlabs.api_url https://api.elevenlabs.io/v1 ElevenLabs API base URL
elevenlabs.model scribe_v2 ElevenLabs model

Provider Notes

Provider Model Word Timestamps Pricing
OpenAI whisper-1 Yes (segment + word) $0.006/min
ElevenLabs scribe_v2 Yes (word-level) Varies by plan
  • OpenAI whisper-1 is the only OpenAI model supporting word-level timestamps
  • ElevenLabs scribe_v2 returns word-level timestamps with type filtering
  • Both support multilingual transcription

Examples

# Basic transcription (uses config defaults)
./scripts/acestep-lyrics-transcription.sh transcribe --audio song.mp3

# Chinese song to LRC
./scripts/acestep-lyrics-transcription.sh transcribe --audio song.mp3 --language zh

# Use ElevenLabs, output SRT
./scripts/acestep-lyrics-transcription.sh transcribe --audio song.mp3 --provider elevenlabs --format srt

# Custom output path
./scripts/acestep-lyrics-transcription.sh transcribe --audio song.mp3 --output ./my_lyrics.lrc

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Lyrics Transcription Skill
    • API Key Setup Guide
    • Quick Start
    • Prerequisites
    • Script Usage
    • Post-Transcription Lyrics Correction (MANDATORY)
      • Correction Workflow
      • What to Correct
      • Example
    • Configuration
    • Provider Notes
    • Examples
  • 项目或源文件

相关 Skill

更多
Whisper Transcribe Whisper Transcribe 使用 OpenAI Whisper 将音频文件转录为文本。支持自动语言检测,提供 txt、srt、vtt、json 等多种输出格式,支持批量处理和模型选择(tiny 到 large)。适用于音频录音、播客、语音消息、讲座、会议及任意音视频转写。支持 mp3、wav、m4a、ogg、flac、webm、opus、aac 格式。
Whisper GPU Audio Transcriber Whisper GPU Audio Transcriber 利用OpenAI Whisper将音频转换为SRT字幕,支持Intel XPU、NVIDIA CUDA、AMD ROCm及Apple Metal的自动GPU加速,适用于内容创作者。
Whisper Wrap Whisper Wrap OpenAI Whisper?????? - ?????Python??
faster-whisper 高性能语音转录库 faster-whisper 高性能语音转录库 faster-whisper 是 SYSTRAN 基于 CTranslate2 对 OpenAI Whisper 的高性能重新实现。它专为需要更低延迟、更低内存使用率、可选量化以及适用于批量或实时语音工作流程的实际 Python 集成的转录管道而构建。
Simple sound-to-text skill locally Simple sound-to-text skill locally 使用 OpenAI Whisper 的本地语音转文字功能。适用于:(1) 将音频文件转录为文本;(2) 将语音消息转换为文字内容;(3) 快速准确地将语音内容转换为可编辑的文本。