본문으로 건너뛰기
cccskills
무료GitHub에 공개

iflytek-speed-transcription

Ultra-fast speech transcription using iFLYTEK Speed Transcription API. Transcribe audio files (WAV/PCM/MP3) up to 5 hours in ~20 seconds per hour. Supports Chinese, English, and 202+ Chinese dialects with automatic language detection. Use when user asks to transcribe audio files, convert speech to text, or mentions "speed transcription" or "极速转写".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(4)

  • SKILL.md6.7 KB
  • _meta.json147 B
  • README.md2.4 KB
  • scripts/transcribe.py24.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

iFly Speed Transcription

Ultra-fast speech transcription service that converts audio files to text in record time - 1 hour of audio transcribes in ~20 seconds.

Quick Start

# Basic transcription (auto-detect language and dialect)
python3 scripts/transcribe.py /path/to/audio.mp3

# Save to file
python3 scripts/transcribe.py /path/to/audio.wav --output result.txt

# With domain-specific optimization
python3 scripts/transcribe.py /path/to/audio.mp3 --pd medical

# With speaker separation
python3 scripts/transcribe.py /path/to/meeting.mp3 --vspp-on 1 --speaker-num 2

Setup

1. API Credentials

Get credentials from iFlytek Open Platform:

  • APP_ID: Application ID
  • API_KEY: API key for authentication
  • API_SECRET: API secret for signing requests

2. Environment Variables

export IFLY_APP_ID="your_app_id"
export IFLY_API_KEY="your_api_key"
export IFLY_API_SECRET="your_api_secret"

兼容说明:设置任意 IFLY_* 凭证变量(包括空值)后,仅使用该组,缺项报错;未设置标准组时,依次尝试 XFEI_*、XFYUN_*,不跨组拼接。旧前缀会在 stderr 输出一次不含凭证值的迁移提示。

API Parameters

Required Parameters

ParameterDescription
file_pathPath to audio file (MP3, 16kHz, 16-bit, mono)
--languageLanguage code (default: zh_cn for Chinese+English+202 dialects)
--accentAccent (default: mandarin)

Optional Parameters

ParameterTypeDescription
--pdstringDomain: court, finance, medical, tech, sport, edu, gov, game, ecom, car
--vspp-onintSpeaker separation: 0=off, 1=on
--speaker-numintNumber of speakers (0=auto, range 1-10)
--output-typeintOutput: 0=1best, 1=cnlbest, 2=multi-candidate
--postproc-onintPost-processing: 0=off, 1=on (default)
--enable-subtitleintSubtitle mode: 0=document, 1=subtitle
--smoothprocboolSmoothing: true=on, false=off (default: true)
--colloqprocboolColloquial processing: true=on, false=off
--language-typeintLanguage mode: 1=auto, 2=Chinese, 3=English, 4=Chinese-only
--dhwstringHot words (comma-separated, UTF-8)

Audio Requirements

  • Format: MP3
  • Sample rate: 16kHz
  • Bit depth: 16-bit
  • Channels: Mono (single channel)
  • Size: ≤ 500MB
  • Duration: ≤ 5 hours (recommended: ≥ 5 minutes)

Workflow

1. Upload Audio File

Files < 30MB use direct upload. Files ≥ 30MB use multipart upload (5MB chunks).

2. Create Transcription Task

Submit uploaded file URL with transcription parameters.

3. Poll for Results

Query task status periodically until completion.

Response Format

{
  "task_id": "1568100557463963551003",
  "task_status": "4",
  "text": "Transcribed text content...",
  "segments": [
    {
      "speaker": "spk-0",
      "begin": "0",
      "end": "470",
      "text": "听说。"
    }
  ]
}

Task Status

  • 1: Pending
  • 2: Processing
  • 3: Completed
  • 4: Callback completed
  • -1: Failed

Language Support

autodialect (language=zh_cn)

Automatic recognition of Chinese, English, and 202 Chinese dialects including:

  • Major: Mandarin, Cantonese, Taiwanese, Sichuanese, Shanghainese, Northeastern
  • Full list: 合肥话、芜湖话、皖北话、粤语、北京话、福州话、闽南语、潮汕话、客家话、贵阳话、海口话、石家庄话、太原话、郑州话、东北话、武汉话、长沙话、南京话、南昌话、大连话、呼和浩特话、银川话、西宁话、济南话、西安话、上海话、四川话、台湾话、天津话、乌鲁木齐话、云南话、杭州话、重庆话 (202 total)

Common Use Cases

  1. Meeting Transcription: Convert meeting recordings to text with speaker separation
  2. Interview Recording: Transcribe interviews for documentation
  3. Lecture Recording: Convert academic lectures to searchable text
  4. Voice Notes: Transform voice memos into text notes
  5. Call Center: Analyze customer service calls
  6. Legal Proceedings: Transcribe court hearings with domain optimization
  7. Medical Consultation: Doctor-patient conversation documentation

Error Handling

Error CodeDescription友好提示
10107自定音频编码字段错误请检查 encoding 的传值是否规范~ (◎_◎)
10303参数值传递不规范请检查传参值是否有误哦~ (°∀°)ノ
10043音频解码失败请检查所传的音频是否与 encoding 字段描述的编码格式对应呢~
20304静音音频、音频格式与传参不匹配检查音频是否为16k、16bit单声道音频哦~ (。•́︿•̀。)

💡 遇到问题?

常见问题 FAQ

Q: 录音文件转写极速版的主要功能是什么? A: 快速地将长段音频(5小时以内)数据转换成文本数据呢~ (๑•̀ㅂ•́)و✧

Q: 录音文件转写极速版支持什么语言? A: 支持中文、英文 + 202种方言免切识别哦! ヽ(✿゚▽゚)ノ

Q: 录音文件转写极速版支持什么应用平台? A: 目前支持 WebAPI 应用平台啦~

Q: 为什么只支持 MP3 格式呀? A: 因为 MP3 格式兼容性好、文件小、传输快呢~ 使用 lame 编码就能轻松接入啦! (◕‿◕)

Tips

  1. For speaker separation: Use --vspp-on 1 for better speaker diarization
  2. For specific domains: Use --pd parameter for improved accuracy
  3. For faster processing: Audio files ≥ 5 minutes are prioritized
  4. For subtitle output: Use --enable-subtitle 1 for subtitle-formatted output
  5. For hot words: Use --dhw="word1,word2" to boost recognition accuracy

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

生成"黑墨手绘涂鸦"风格的动画架构图/流程图:米色纸面、针管笔墨线、极淡水洗色块、简笔涂鸦图标、序号章、连线上的流动圆点动画、图标微动效。产出单文件自包含动画 HTML(SVG+CSS),可一键导出无缝循环 GIF。当用户想画架构图、流程图、信息图、技术示意图、对比图、pipeline/workflow 可视化,或提到"手绘风""涂鸦风""动图""animated diagram""GIF 架构图"时使用;即使用户没明说要动画,做技术概念科普配图时也应优先考虑本 skill。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

iflytek/iFly-Skills2122026년 10월 22일 업데이트

Use when user asks to review contracts, detect contract risks, or perform compliance checks. 合同智能审核 - 对合同扫描件、图片合同、双语合同进行完整审核。 覆盖 OCR 识别、条款分析、风险检测、合规校对、翻译摘要全流程。 适用于法务审核、采购合同审查、供应链合规检查等场景。 关键词:合同审核、风险检测、条款分析、合规校对、contract review、risk detection。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

iflytek/iFly-Skills2122026년 10월 22일 업데이트

Use when user asks to synthesize speech, convert text to audio, or read text aloud. 讯飞超拟人语音合成 - 支持文本转语音、语音合成(发音人/语速/语调/音量/输出格式)。大模型语音合成技能。语音合成, 文字转语音, 超拟人, TTS.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

iflytek/iFly-Skills2122026년 10월 22일 업데이트

Use when user asks to analyze an image, describe image contents, or answer questions about a picture. iFlytek Image Understanding (图片理解) — analyze and answer questions about images using Spark Vision model. WebSocket API, pure Python stdlib, no pip dependencies.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

iflytek/iFly-Skills2122026년 10월 22일 업데이트

Use when user asks to recognize invoices, extract receipt data, or OCR bills and tickets. Recognize and extract structured data from invoices, receipts, and bills using iFlytek OCR API (科大讯飞票据识别). Supports VAT invoices, taxi receipts, train tickets, toll invoices, medical bills, bank receipts, and more.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

iflytek/iFly-Skills2122026년 10월 22일 업데이트

ifly-pdf-image-ocr skill supporting both image OCR (AI-powered LLM OCR) and PDF document recognition. Use when user asks to OCR images, extract text from images/PDFs, convert PDF to Word/Markdown, or perform any OCR tasks on images or PDFs. Supports multi-language text extraction, document layout understanding, and various output formats.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

iflytek/iFly-Skills2122026년 10월 22일 업데이트

iflytek의 스킬 모두 보기

이 스킬의 문제 신고