twinmind-performance-tuning
Optimize TwinMind transcription accuracy and processing speed. Use when improving transcription quality, reducing latency, or tuning model parameters for specific use cases. Trigger with phrases like "twinmind performance", "improve transcription accuracy", "faster twinmind", "optimize twinmind", "transcription quality".
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- twinmind-performance-tuning
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Optimize TwinMind transcription accuracy and processing speed. Use when improving transcription quality, reducing latency, or tuning model parameters for specific use cases. Trigger with phrases like "twinmind performance", "improve transcription accuracy", "faster twinmind", "optimize twinmind", "transcription quality".
- allowed-tools
- Read, Write, Edit
- compatible-with
- claude-code, codex, openclaw
02 资源文件 1
- 参考文档references/implementation.md6.0 KB
03 SKILL.md 正文
TwinMind Performance Tuning
Contents
Overview
Optimize TwinMind for better transcription accuracy (WER), faster processing, audio preprocessing, model selection per use case, streaming optimization, and transcript caching/deduplication.
Prerequisites
- TwinMind Pro/Enterprise account
- Understanding of audio processing concepts
- Access to quality metrics and logs
Instructions
Step 1: Understand Performance Metrics
Track key metrics: Word Error Rate (Ear-3: ~5.26%), Diarization Error Rate (~3.8%), confidence score, processing time, real-time factor (~0.3x), and first word latency (~300ms). Analyze metrics to generate recommendations.
Step 2: Audio Quality Optimization
Build preprocessing pipeline with ffmpeg: target 16kHz sample rate, mono channel, noise reduction (highpass 200Hz + lowpass 3kHz + FFT denoiser), and EBU R128 loudness normalization. Assess audio quality before transcription.
Step 3: Model Selection and Configuration
Create optimized configs per scenario: standard meeting (ear-3, auto language, diarization on), technical presentation (ear-3 + custom vocabulary), call center (diarization + profanity filter), medical (ear-3-custom), lecture (single speaker, no diarization), podcast (diarization on).
Step 4: Streaming Optimization
Configure streaming with 100ms chunks, 50ms overlap, 5s max buffer, interim results, and endpoint detection. Build OptimizedStreamingClient that accumulates chunks and processes when sufficient data is available.
Step 5: Caching and Deduplication
Implement TranscriptCache with SHA-256 audio hashing for deduplication, 24-hour TTL, and transcribeWithCache() that skips re-processing of identical audio.
See detailed implementation for complete audio preprocessing, model configs, streaming client, and caching code.
Output
- Performance metrics tracking
- Audio preprocessing pipeline
- Model configuration for use cases
- Streaming optimization
- Caching and deduplication
Error Handling
| Issue | Cause | Solution |
|---|---|---|
| High WER | Poor audio quality | Apply preprocessing pipeline |
| Slow processing | Large file | Use streaming API |
| Wrong language | Auto-detect failed | Specify language explicitly |
| Missing speakers | Low audio separation | Improve microphone setup |
Examples
Basic usage: Apply twinmind performance tuning to a standard project setup with default configuration options.
Advanced scenario: Customize twinmind performance tuning for production environments with multiple constraints and team-specific requirements.
Performance Benchmarks
| Metric | Target | Ear-3 Actual |
|---|---|---|
| Word Error Rate | < 10% | ~5.26% |
| Diarization Error Rate | < 5% | ~3.8% |
| Real-time Factor | < 0.5x | ~0.3x |
| First Word Latency | < 500ms | ~300ms |
| Languages | 100+ | 140+ |
Resources
Next Steps
For cost optimization, see twinmind-cost-tuning.
04 同仓库更多 Skills
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
zustand-store-creator
Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.
zero-trust-config-helper
Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.
zapier-integration-helper
Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.
zai-cli
Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.
yt-research
Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.