douyin-voice-controller
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "douyin-voice-controller" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bf72ba3b961511828276a06c4ddf395bb8c2543e69b5eaa91dc7117aa803c32d. Verify the upstream source and version against https://skillhub.cn/skills/user_4df4138a/guyushijie920 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Douyin Voice Controller to control vertical scrolling on Douyin web via voice. Uses the Vosk offline Chinese speech recognition engine with grammar constraints for recognition, and pyautogui to simulate keyboard arrow keys to control video scrolling. Suitable for scenarios where users want to control Douyin by voice or install a Douyin voice assistant.
Introduction source: third_party · user_4df4138a · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: douyin-voice-controller
description: "抖音语音控制器。用声音控制网页抖音上下滑动。基于 Vosk 离线中文语音识别引擎,通过语法限定实现极速识别,使用 pyautogui 模拟键盘方向键控制抖音网页版视频滑动。触发场景:用户想用语音控制抖音、安装抖音语音助手、用声音刷抖音。"
agent_created: true抖音语音控制器
用声音控制网页抖音上下滑动,解放双手。
适用场景
当用户表达以下意图时触发此技能:
- "帮我装一个语音控制抖音的工具"
- "我想用声音刷抖音"
- "装个抖音语音滚动"
- "需要一个抖音语音助手"
工作原理
麦克风 → Vosk离线识别(语法限定:仅4个命令词) → 检测 → pyautogui模拟↑↓键 → 抖音滑动
部署步骤
1. 检查环境
确认用户为 Windows 系统,有麦克风设备。Python 版本需 3.9+。
2. 安装依赖
pip install pyautogui pygetwindow sounddevice vosk numpy
或使用技能附带的 requirements.txt:
pip install -r scripts/requirements.txt
3. 下载 Vosk 中文模型
将 vosk-model-small-cn-0.22 模型下载到技能目录下的 vosk-model/ 子目录。
运行附带的下载脚本:
python scripts/download_model.py
或指导用户手动从 https://alphacephei.com/vosk/models 下载。
模型需放在与 scroll-server.py 同级的 vosk-model/vosk-model-small-cn-0.22/ 路径下。
4. 启动服务
python scripts/scroll-server.py
服务启动后访问 http://127.0.0.1:18888。
5. 使用说明
- 浏览器打开
http://127.0.0.1:18888(控制页面) - 点击红色 🎤 按钮 → 允许麦克风权限
- 浏览器打开抖音网页版
www.douyin.com - 对准麦克风说出指令:
- 上 — 向上翻一个视频
- 下 — 向下翻一个视频
- 暂停 — 暂停播放
- 继续 — 恢复播放
6. 声音校准(重要)
控制页面上有「🎙 校准声音」按钮和灵敏度滑块:
- 点击校准按钮后用正常音量说几次「上」「下」,5 秒后自动完成
- 之后系统音量阈值会自动适配用户的说话习惯
- 也可以手动拖动灵敏度滑块调整
技术架构
核心脚本:scripts/scroll-server.py
一个自包含的 Python HTTP 服务,集成了:
- Vosk 离线语音识别:使用
vosk-model-small-cn-0.22(42MB 中文小模型) - 语法限定:通过
KaldiRecognizer.SetGrammar限定只识别「上/下/暂停/继续」四个词,搜索空间缩小约 1000 倍,识别几乎零延迟 - 系统音量控制:通过
winmm.waveOutSetVolume在用户说话时自动静音,说完恢复 - 键盘模拟:通过
pyautogui.press('up'/'down'/'space')模拟键盘输入 - 窗口检测:通过
pygetwindow检测当前活动窗口是否为抖音,仅抖音激活时才执行滚动 - Web 控制面板:内嵌 HTML/JS 前端,提供开关、实时状态、灵敏度调节、声音校准功能
性能参数
| 参数 | 值 | 说明 |
|---|---|---|
| 采样率 | 16000 Hz | 单声道 |
| 音频块 | 100ms (1600 samples) | 极小延迟 |
| 识别词汇 | 仅4个词 | 语法限定 |
| 冷却时间 | 0.35s | 防止连触发 |
| 模型大小 | 42MB | 离线本地 |
故障排查
Vosk 模型加载失败
确认模型目录结构正确:vosk-model/vosk-model-small-cn-0.22/ 下有 am/, conf/, graph/ 等子目录。
识别不到声音
- 检查麦克风是否被其他程序占用
- 尝试校准声音或调低灵敏度滑块值
- 确认浏览器允许麦克风权限
抖音不滚动
- 确认抖音网页版 (
www.douyin.com) 是当前活动窗口 - 确认抖音页面标题包含「抖音」字样
- 尝试先手动点击一下抖音页面确保焦点在页面上
sounddevice 报 PortAudio 错误
Windows 上可能需要安装正确的音频驱动,或尝试:
pip uninstall sounddevice
pip install sounddevice --only-binary=:all:Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决特定场景下的语音交互需求
- 提供完整的技术实现方案
Highlights
- 触发词覆盖合理且边界清晰
- 准确描述用户使用意图
Areas to improve
-
缺少标准When to Use章节 Reported severity: Minor
使用"适用场景"而非标准"When to Use"标题
Recommendation: 建议将"适用场景"改为标准"When to Use"章节标题以符合规范
-
文档结构可优化 Reported severity: Minor
工作原理部分可提前至更靠前位置
Recommendation: 建议将"工作原理"章节移至"适用场景"之后,提升阅读逻辑性
Highlights
- 部署步骤清晰完整
- 包含详细的技术架构说明
- 提供性能参数表格
Areas to improve
-
未推荐虚拟环境 Reported severity: Minor
未提及使用Python虚拟环境进行依赖隔离
Recommendation: 建议在安装依赖前增加虚拟环境创建步骤,避免依赖冲突
Highlights
- 覆盖主要异常场景的故障排查
- 提供声音校准机制和灵敏度调节
- 详细说明模型目录结构要求
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 34, 39, 123
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- 127.0.0.1
- alphacephei.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.