SkillsGrove
SkillsGrove/Vídeo corto y creadores/ImGoodBai/goodable/good-TTvideo2text

good-TTvideo2text

Instalación

$npx skills add https://github.com/ImGoodBai/goodable --skill good-TTvideo2text
$git clone --depth 1 https://github.com/ImGoodBai/goodable.git /tmp/goodable && mkdir -p ~/.claude/skills && cp -r /tmp/goodable/skills/good-TTvideo2text ~/.claude/skills/good-TTvideo2text
Instala por favor esta Agent Skill por mí: https://github.com/ImGoodBai/goodable/tree/c14e5ad179a0ef83eac21c78db51d512a63ac92f/skills/good-TTvideo2text. Lee primero su SKILL.md y sus scripts, y solo instálala en mi carpeta de skills cuando hayas confirmado que es segura.

Resumen

Descripción original · MITExtract audio from short videos (Douyin/TikTok) and transcribe to text with timestamps. Use when user provides video URL and needs audio transcription.
El SKILL.md siguiente se reproduce de ImGoodBai/goodable (commit c14e5ad) bajo la licencia MIT. El texto no se ha modificado; solo se omiten los metadatos de cabecera del archivo, las imágenes se muestran como enlaces y los archivos muy largos se truncan. Copyright 2025 Opactor AI. Licencia: LICENSE. Solo se muestra el archivo de instrucciones; consulta el repositorio original para ver los scripts.

good-TTvideo2text

Extract audio from Douyin/TikTok videos and transcribe to text using ASR service.

Task Objective

Convert Douyin/TikTok video audio to text with timestamps, supporting both interactive UI and command-line workflow.

Capabilities: Video parsing, audio extraction, ASR transcription, timestamp generation

Trigger: User provides Douyin/TikTok URL and requests transcription

Usage Modes

Mode 1: Web UI (Recommended)

Visual interface for transcription management:

# Install dependencies
cd skills/good-TTvideo2text
pip install -r requirements.txt

# Start service (default port 8000)
python app/main.py

# Browser access
http://localhost:8000

Features:

  • Paste video URL for instant transcription
  • View results with timestamps
  • Cookie management for restricted videos
  • Real-time progress updates

Mode 2: Script (Command Line)

Suitable for automation, AI workflow integration:

# Basic usage
python scripts/transcribe.py "https://v.douyin.com/xxx"

# Extract URL from share text
python scripts/transcribe.py "7.47 复制打开抖音,看看【用户名】的作品 https://v.douyin.com/xxx"

# JSON output
python scripts/transcribe.py "https://v.douyin.com/xxx" --output json

# Text output (default)
python scripts/transcribe.py "https://v.douyin.com/xxx" --output text

Output Format (Text):

=== Video Info ===
Title: Video title
Author: Author name
Duration: 30s

=== Transcription ===
Full Text:
Complete transcription text...

Sentences with Timestamps:
[00:00-00:03] First sentence
[00:03-00:06] Second sentence

Output Format (JSON):

{
  "success": true,
  "video_info": {
    "title": "Video title",
    "author": "Author name",
    "duration": 30,
    "create_time": 1234567890
  },
  "transcription": {
    "text": "Complete transcription...",
    "sentences": [
      {
        "start_ms": 0,
        "end_ms": 3000,
        "text": "First sentence"
      }
    ]
  }
}

Prerequisites

Dependencies:

  • fastapi>=0.120.3, uvicorn>=0.35.0, httpx>=0.28.1
  • TikTokDownloader dependencies (see requirements.txt)

ASR Configuration:

  • Environment variables auto-injected by Goodable platform
  • GOODABLE_ASR_SUBMIT_URL - ASR task submission endpoint
  • GOODABLE_ASR_QUERY_URL_TEMPLATE - ASR result query endpoint (with {task_id} placeholder)

Cookie Configuration (Optional):

  • Some videos require login cookies
  • Configure via Web UI Settings or edit TikTokDownloader/settings.json
  • Cookie format: Douyin web cookie string

Standard Workflow (AI Usage)

When User Provides URL

  1. Extract URL from input:

    • User may provide raw URL or share text with URL
    • Use regex to extract actual video URL
  2. Call transcribe script:

    python scripts/transcribe.py "USER_PROVIDED_TEXT"
    
  3. Handle results:

    • Success: Present transcription text and timestamps
    • Error: Check error message for troubleshooting

Common Error Handling

Error Cause Solution
Invalid video URL URL format incorrect Ask user to provide valid Douyin/TikTok URL
Video not found Video deleted or requires login Ask user to check video or provide cookies
No audio found Video has no background music Inform user this video has no audio track
ASR not configured Environment variables missing Run via Goodable platform (auto-injects vars)
ASR timeout Long audio or service slow Retry or use Web UI for monitoring

Resource Index

  • app/main.py - FastAPI application entry
  • scripts/transcribe.py - Command-line transcription script
  • TikTokDownloader/ - Video parsing library (source code)
  • TikTokDownloader/settings.json - Cookie and configuration
  • static/index.html - Web UI interface
  • requirements.txt - Python dependencies
  • downloads/ - Temporary file directory

Important Notes

  1. Cookie Requirement: Public videos work without cookies, restricted videos need login cookies
  2. ASR Platform: This skill requires Goodable platform's ASR service integration
  3. URL Formats Supported:
    • Short URL: https://v.douyin.com/xxx
    • Full URL: https://www.douyin.com/video/1234567890
    • TikTok: https://vm.tiktok.com/xxx, https://www.tiktok.com/@user/video/xxx
  4. Audio Extraction: Extracts background music URL directly (no download needed)
  5. ASR Processing Time: Typically 5-30 seconds depending on audio length

Example AI Usage

User: "帮我转写这个抖音视频 7.47 复制打开抖音 https://v.douyin.com/abc123"

AI: Let me transcribe this video for you.

[Calls transcribe.py script with the provided text]

Based on the transcription:

Video: "视频标题"
Author: 作者名

Transcription:
[00:00-00:03] 第一句话内容
[00:03-00:08] 第二句话内容
...

Full text:
完整的转写文本内容...
Ver el texto completo de la licencia (MIT)
MIT License

Copyright (c) 2025 Opactor AI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.