About
What is openlrc?
openlrc is a Python library designed to transcribe and translate audio into .lrc subtitle files. It leverages faster-whisper for transcription and large language models (LLMs) such as OpenAI, Anthropic, and Gemini for translation and text polishing. Key features include audio preprocessing for hallucination reduction, context-aware translation to enhance quality, and support for custom LLM endpoints. Users can generate bilingual subtitles and utilize glossaries for domain-specific translation accuracy. The tool also offers optional noise suppression and flexible model routing for various chatbot SDKs. It's ideal for content creators needing precise and translated subtitles for their audio and video content.
Best used for
Ideal for content creators who need to transcribe spoken audio, translate content into multiple languages, and generate accurate LRC subtitle files. Especially valuable for podcasters and YouTubers looking to expand their audience reach with high-quality, translated captions and lyrics.
Common actions
automated workflowdeepfakeopen-sourcecollaborationlow-code/no-codeface swappingworkflowsgithub copilot"AI Agents"
Capabilities
Key features
- Transcribe audio with Whisper
- Translate audio with LLMs
- Generate LRC subtitle files
- Audio preprocessing
- Context-aware translation
- Bilingual subtitle generation
- Custom LLM endpoint support
Target Audience
content creatoryoutuberpodcaster
Integrations
Not yet documentedPricing & Plans
Open Source ยท Usage-based
FAQs
What LLMs does openlrc support for translation?
openlrc supports various LLMs for translation, including OpenAI models (like gpt-3.5-turbo, gpt-4o-mini, gpt-4o), Anthropic models (claude-3-haiku, claude-3-sonnet, claude-3-opus), and Gemini models (gemini-1.5-flash, gemini-1.0-pro). It also allows for custom endpoint configurations.
How can I improve translation quality for specific domains?
You can improve domain-specific translation quality by using the glossary feature. By providing a YAML or JSON file with key terms and their desired translations, openlrc will incorporate this glossary into the LLM prompts, ensuring consistent and accurate terminology.
Does openlrc support noise suppression for audio files?
Yes, openlrc offers optional noise suppression for audio files. To enable this feature, you need to install the full extras package (pip install 'openlrc[full]'), which includes torch and DeepFilterNet, and then set `noise_suppress=True` when running the LRCer.