harven-droid

iFlytek ASR - 讯飞语音转文字

Design & Mediav1.0.0
By harven-droidUpdated 2026-05-11iflytek-asr@clawhub_harven-droid/iflytek-asr
VideoAudio#会议#音频

According to AlphaMoat, as of 2026-09, iFlytek ASR - 讯飞语音转文字 has 2,115 downloads and 0 stars — ranked #4,350 of 5,078 AI skills overall, and #439 of 512 in Design & Media.

Installs
260
Downloads
2.1K
Stars
-
Overall Rank
#4,350
Top 86% overall · Top 86% in Design & Media
PlatformInstallsDownloadsStarsComments
ClawHub ↗291.0K--
SkillHub ↗2602.1K-—

Platforms count differently and update at different times.

What this skill does

It uses the iFlytek ASR API to transcribe audio or video, supports common audio formats and MP4, can recognize Chinese dialects and add punctuation, and can download YouTube videos for transcription with yt-dlp. Configure XFYUN_APP_ID, XFYUN_ACCESS_KEY_ID, and XFYUN_ACCESS_KEY_SECRET; install yt-dlp, requests, and python-dotenv. The skill compares iFlytek and Whisper for different use cases, recommending iFlytek for important meetings or interviews and Whisper for everyday voice messages.

Profile published 2026-10-27

What you can do with it

  • Transcribe local audio or YouTube videos into punctuated text.

When to use it

  • Use for Chinese speech recognition, video transcription, or converting recorded speech into text.

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Transcribe this meeting recording and preserve the recognized Chinese dialect and punctuation.

Monthly Trend

Downloads2.1K
3411.3K2.2K2026-03 · Downloads 4722026-05 · Downloads 8922026-06 · Downloads 9922026-07 · Downloads 1.3K2026-08 · Downloads 1.5K2026-09 · Downloads 2.1K26-0326-09
Stars-
0112026-03 · Stars -2026-05 · Stars -2026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-092.1K—-
2026-081.5K+17.5%-
2026-071.3K+28.1%-
2026-06992+11.2%-
2026-05892—-
2026-03472—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.2 KB · ClawHub v1.0.0
---
name: iflytek-asr
description: 使用科大讯飞 API 将音频/视频转换为文字。支持本地音频文件转录、YouTube 视频下载并转文字。适用于会议记录、视频字幕、语音笔记等场景。当用户需要语音转文字、音频转录、YouTube 视频转文字时触发。
license: MIT
acceptLicenseTerms: yes
---

# 讯飞语音转文字 (iFlytek ASR)

使用科大讯飞语音识别 API 将音频文件转换为文本,支持中文方言识别。
Show all (132 lines)

## 功能特性

- ✅ 支持多种音频格式:mp3, wav, pcm, mp4, m4a, aac, ogg, flac, speex, opus, wma
- ✅ 支持 YouTube 视频下载并转文本
- ✅ 文件大小限制:≤500MB
- ✅ 时长限制:≤5小时
- ✅ 自动识别中文方言
- ✅ 自动添加标点符号

## 前置要求

### 1. 获取讯飞 API 凭证

1. 访问 [科大讯飞开放平台](https://www.xfyun.cn)
2. 注册/登录账号
3. 创建应用,选择「语音转写」服务
4. 获取凭证:
   - `XFYUN_APP_ID`
   - `XFYUN_ACCESS_KEY_ID`
   - `XFYUN_ACCESS_KEY_SECRET`

### 2. 配置环境变量

在 skill 目录下创建 `.env` 文件:

```env
XFYUN_APP_ID=your_app_id
XFYUN_ACCESS_KEY_ID=your_access_key_id
XFYUN_ACCESS_KEY_SECRET=your_access_key_secret
```

### 3. 安装依赖

```bash
pip3 install yt-dlp requests python-dotenv
```

## 使用方法

### 转录本地音频

```bash
python3 scripts/speech_to_text.py <音频文件路径> [输出文本路径]
```

示例:
```bash
python3 scripts/speech_to_text.py meeting.mp3
python3 scripts/speech_to_text.py recording.wav output.txt
```

### YouTube 视频转文字

```bash
python3 scripts/download_and_transcribe.py "YOUTUBE_URL" [保存目录]
```

示例:
```bash
python3 scripts/download_and_transcribe.py "https://www.youtube.com/watch?v=VIDEO_ID" ~/Downloads
```

### 仅下载 YouTube 音频

```bash
python3 scripts/download_audio.py "YOUTUBE_URL" [保存目录]
```

## 对比:讯飞 vs Whisper

| 特性 | 讯飞 ASR | Whisper |
|------|---------|---------|
| 成本 | API 配额(有免费额度) | 免费 |
| 离线 | ❌ 需要网络 | ✅ 本地运行 |
| 速度 | ⭐⭐⭐⭐⭐ 快 | ⭐⭐⭐ 较慢 |
| 中文准确率 | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
| 标点符号 | ✅ 自动添加 | ❌ 无 |
| 方言支持 | ✅ 支持 | ⭐⭐ 一般 |

**建议:**
- 重要会议/采访 → 讯飞(准确率高、有标点)
- 日常语音消息 → Whisper(免费、无限制)

## API 限制

讯飞免费版:
- 每日调用次数:500 次
- 单次文件大小:≤500MB
- 单次时长:≤5小时

## 文件结构

```
iflytek-asr/
├── SKILL.md           # 本文档
├── README.md          # 详细说明
├── QUICKSTART.md      # 快速开始
├── .env.example       # 配置模板
├── requirements.txt   # Python 依赖
└── scripts/
    ├── speech_to_text.py           # 音频转文字
    ├── download_audio.py           # YouTube 下载
    └── download_and_transcribe.py  # 下载+转文字
```

## 常见问题

**Q: 转录失败怎么办?**
- 检查 API 凭证是否正确
- 确认文件格式支持
- 检查网络连接

**Q: 如何提高准确率?**
- 确保音频清晰
- 选择正确的语言/方言
- 避免背景噪音

## 许可证

MIT License

Popular in Design & Media

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.