Synthèse automatique
Télécharge des épisodes de podcasts Xiaoyuzhou FM et génère des transcriptions complètes via la reconnaissance vocale FunASR.
Points forts
- Transcriptions précises avec diarisation des locuteurs
- Traitement optimisé pour les podcasts chinois
- Extraction automatique des métadonnées et des notes d'émission
- Prise en charge des accélérations matérielles (MPS sur Mac)
Limites
- Nécessite une connexion internet pour le téléchargement
- La diarisation peut échouer sur des enregistrements de mauvaise qualité
- Le temps de traitement est proportionnel à la durée de l'audio (0.3-0.5x temps réel)
Utilisez cette compétence lorsque vous avez besoin d'analyser ou de rechercher le contenu textuel d'un épisode de podcast Xiaoyuzhou FM.
Évitez de l'utiliser pour des podcasts non chinois ou lorsque le lien fourni n'est pas valide ou n'appartient pas à xiaoyuzhoufm.com.
Analyse de sécurité
PrudenceThe skill executes installation scripts and downloads external resources, which carries a moderate risk of supply chain attacks or malicious payloads. The toolset is powerful but used for legitimate transcription tasks.
- •Installs dependencies via a shell script that may download and execute arbitrary code from the internet (install.sh).
- •Downloads audio files from external URLs using webfetch and bash, which could be tampered with.
- •Uses deep learning models that may have vulnerabilities though locally executed.
Exemples
Download and transcribe the podcast episode at https://www.xiaoyuzhoufm.com/episode/6942f3e852d4707aaa1feba3Use the xiaoyuzhou podcast skill to download the episode with ID 6942f3e852d4707aaa1feba3 and generate a full transcript with speaker labels.Transcribe the Xiaoyuzhou podcast episode https://www.xiaoyuzhoufm.com/episode/6942f3e852d4707aaa1feba3 and include hotwords for '巴菲特 投资' to improve accuracy.name: xiaoyuzhou-podcast description: Download Xiaoyuzhou FM podcasts with full transcripts via FunASR ASR. Use when user provides xiaoyuzhoufm.com links or requests podcast content analysis. allowed-tools:
- bash
- read
- glob
- webfetch
Xiaoyuzhou Podcast Skill
Download podcasts from xiaoyuzhoufm.com and generate full transcripts using FunASR Automatic Speech Recognition (ASR).
Overview
This skill processes Xiaoyuzhou FM podcast links to:
- Download audio files and show notes
- Generate full transcripts via ASR (FunASR paraformer-zh)
- Extract structured metadata
- Provide comprehensive content for analysis
When to Use
Activate this skill when:
- User provides a xiaoyuzhoufm.com episode link
- User asks to "download podcast" or "transcribe podcast"
- User needs full text content of a podcast for analysis
- User provides a 24-character hex episode ID
Workflow
Step 1: Install Dependencies
First-time setup:
~/.claude/skills/xiaoyuzhou-podcast/scripts/install.sh
This checks and installs:
- Python 3.8+
- PyTorch with Metal (MPS) acceleration
- FunASR and ModelScope
- xyz-dl downloader
Step 2: Download Audio and Show Notes
~/.claude/skills/xiaoyuzhou-podcast/scripts/download.sh <URL or Episode ID>
Examples:
# Using full URL
scripts/download.sh https://www.xiaoyuzhoufm.com/episode/6942f3e852d4707aaa1feba3
# Using episode ID only
scripts/download.sh 6942f3e852d4707aaa1feba3
# Custom output directory
scripts/download.sh 6942f3e852d4707aaa1feba3 ~/MyPodcasts
Output structure:
~/Research/Podcast/
├── {id}_{host} - {title}/ # 播客目录
│ ├── README.md # 最终合并文档(Show Notes + 转录)
│ └── .cache/ # 临时缓存(处理后自动删除)
│ ├── *.md # Show Notes
│ └── *.m4a # 音频文件
Step 3: Generate Full Transcript (Enhanced)
python3 ~/.claude/skills/xiaoyuzhou-podcast/scripts/transcribe_enhanced.py --audio <audio_path>
New Features:
- ✅ Speaker Diarization - Automatically identify different speakers
- ✅ Smart Segmentation - Intelligent paragraph breaks based on context
- ✅ Dialogue Formatting - Structured conversation format with speaker labels
Options:
--audio: Path to audio file (required)--output-dir: Custom output directory--hotword: Space-separated keywords to improve accuracy--batch-size: Batch size in seconds (default: 300)--no-diarization: Disable speaker diarization--no-segmentation: Disable smart segmentation
Example:
# Basic transcription with all enhancements
python3 scripts/transcribe_enhanced.py --audio ~/Research/Podcast/6942f3e852d4707aaa1feba3/.cache/podcast.m4a
# With hotwords
python3 scripts/transcribe_enhanced.py --audio podcast.m4a --hotword "巴菲特 穆迪 投资理念"
# Disable speaker diarization (faster)
python3 scripts/transcribe_enhanced.py --audio podcast.m4a --no-diarization
Output:
~/Research/Podcast/{id}_{host} - {title}/.cache/
├── {id}_{host} - {title}.txt # Raw transcript
├── {id}_{host} - {title}_formatted.md # Enhanced version ⭐
└── {id}_{host} - {title}_timestamp.txt # With timestamps
Formatted Version Includes:
- Dialogue Record - Speaker-labeled conversations (when diarization enabled)
- Full Text - Smart paragraph segmentation
Step 4: Extract Structured Information
~/.claude/skills/xiaoyuzhou-podcast/scripts/extract-info.sh <Episode ID or Show Notes path>
This outputs:
- Basic metadata (title, host, duration, date)
- Links (episode URL, audio URL)
- File locations
- Transcript statistics and preview
Input Format
Accepts either:
- Full URL:
https://www.xiaoyuzhoufm.com/episode/{24-char-hex-id} - Episode ID: 24-character hexadecimal string (e.g.,
6942f3e852d4707aaa1feba3)
Performance
Expected performance on Mac M1/M2/M3:
- Chinese ASR accuracy: > 90%
- Processing speed: 0.3-0.5x real-time (1 hour audio → 18-30 min transcription)
- Memory usage: ~1.5-2GB (model + audio)
- Metal (MPS) acceleration: 2-3x faster than CPU
Technical Details
ASR Engine
FunASR paraformer-zh:
- Model: 220M parameters, ~900MB
- Training data: 60,000 hours of Chinese Mandarin
- Native timestamp support (character-level)
- Automatic punctuation restoration
- Voice Activity Detection (VAD) for silence removal
Model Storage
Models are automatically downloaded to:
~/.cache/modelscope/hub/iic/
├── speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pybuild/
├── speech_fsmn_vad_zh-cn-16k-common-pybuild/
└── punc_ct-transformer_cn-en-common-vocab471067-large/
Total disk usage: ~2GB (first-time download)
Acceleration
- Mac M1/M2/M3: Metal Performance Shaders (MPS)
- NVIDIA GPU: CUDA support (optional)
- CPU: Fallback mode (slower)
Success Response Format
[SUCCESS] Podcast processed successfully
**Metadata:**
- Title: {title}
- Host: {host}
- Duration: {duration}
- Published: {date}
- Episode ID: {id}
**Files:**
- Final Document: ~/Research/Podcast/{id}_{host} - {title}/README.md
- (Cache files deleted after processing)
**Transcript Statistics:**
- Word count: {count}
- Processing time: {time}
**Transcript Preview:**
{first 500 characters}...
Error Handling
| Error Type | Message | Solution |
|------------|---------|----------|
| invalid_url | Invalid URL format | Use full URL or 24-char hex ID |
| not_installed | Dependencies missing | Run install.sh |
| download_failed | Audio download failed | Check network, verify URL |
| transcribe_failed | ASR transcription failed | Check audio file integrity |
| not_found | Episode not found | Verify URL is correct |
| mps_unavailable | Metal acceleration unavailable | Will use CPU fallback |
Important Notes
Usage Restrictions
- Personal Use Only: Downloaded content and transcripts are for personal use only
- Support Creators: Consider supporting podcast creators through official channels
- Platform Terms: Respect Xiaoyuzhou's terms of service
- Rate Limiting: Avoid frequent bulk downloads to prevent server overload
Accuracy Considerations
-
ASR accuracy is ~90%+, but may vary with:
- Accents and dialects
- Background music or noise
- Multiple speakers (no speaker diarization)
- Technical terminology
-
Hotwords: Use
--hotwordparameter to improve specific term recognition -
Review Recommended: Proofread critical content manually
Troubleshooting
Common Issues
1. MPS (Metal) not available
- Ensure Mac M1/M2/M3 device
- Update macOS to latest version
- PyTorch 2.0+ required
2. Model download fails
- Check internet connection
- Verify sufficient disk space (~2GB)
- Use ModelScope mirror if in China
3. Slow transcription
- Check MPS is enabled:
python3 -c "import torch; print(torch.backends.mps.is_available())" - Increase batch size if RAM allows
- Close other resource-intensive applications
4. Poor accuracy on specific terms
- Add hotwords:
--hotword "term1 term2 term3" - Check audio quality
For detailed troubleshooting, see references/troubleshooting.md
Example Usage
User: 帮我下载并转录这个播客 https://www.xiaoyuzhoufm.com/episode/6942f3e852d4707aaa1feba3
Assistant: I'll help you download and transcribe this podcast. Let me start by running the installation check, then download and transcribe it.
[Runs install.sh]
[Runs download.sh with URL]
[Runs transcribe.py with audio file]
[Runs extract-info.sh to show summary]
[SUCCESS] Podcast downloaded and transcribed!
**Metadata:**
- Title: EP9 深度专访MIT博士"黑色面包"-我为什么重仓Fiserv (FISV)
- Host: 鹅先知 投资、出海和长寿科技
- Duration: 196:20
- Published: 2025-01-15
- Episode ID: 6942f3e852d4707aaa1feba3
**Files:**
- Final Document: ~/Research/Podcast/6942f3e852d4707aaa1feba3_鹅先知.../README.md
**Transcript Preview:**
大家好,欢迎收听本期节目。今天我们邀请了MIT博士...
The transcript is ready for analysis. Would you like me to summarize key points or search for specific topics?
References
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/xiaoyuzhou-podcast-download-transcription-mrzxup37/download' --output '.skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37/SKILL.md.part' && mv '.skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37/SKILL.md.part' '.skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37/SKILL.md' && test -s '.skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/xiaoyuzhou-podcast' && cp -R '.skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37' '.claude/skills/xiaoyuzhou-podcast'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37'openskills read 'xiaoyuzhou-podcast-download-transcription-mrzxup37'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/xiaoyuzhou-podcast-download-transcription-mrzxup37/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Créer des cartes interactives avec kepler.gl
Data & IA
Création de cartes interactives et export HTML autonome avec le package Python keplergl, à partir de données géospatiales (DataFrame, GeoJSON, CSV).
Optimisation de paramètres par agent
Data & IA
Guide d'optimisation de systèmes configurables avec objectif mesurable, via des essais bornés et une recommandation fondée sur des preuves.
Relance des visiteurs ICP
Data & IA
Identifiez les utilisateurs inscrits correspondant au profil client idéal mais qui n'ont pas activé, et rédigez des messages de relance personnalisés pour les réengager.