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-03-20
- Stars
- ★ 4
- 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
azure-apim-architecture
Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.
apiops-deployment
Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep/Terraform), CI/CD pipelines (GitHub Actions/Azure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.
apim-policy-authoring
Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request/response processing logic.
api-security-review
Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.
jira-cli
Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.
calculator
Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.