Repository navigation
This release adds faster-whisper as a transcription backend, lets you use your own transcripts, and fixes several bugs. It also removes the Pycaps API, which is no longer available.
⚠️ Breaking changes
- The Pycaps API was removed, since the service is no longer available. The
pycaps configcommand was removed too. The AI features (aitagger rules andemoji_in_segment) now use only your own OpenAI API key, set with thePYCAPS_OPENAI_API_KEYenvironment variable. See AI Features. - Custom sound effects in JSON configs now resolve their
pathrelative to the config file, like the other paths. They always failed before, so this shouldn't affect existing templates.
Added
- faster-whisper backend: faster and lighter than openai-whisper, especially on CPU. Use it with
--whisper-backend faster,"backend": "faster"in thewhisperconfig, orwith_whisper_config(backend=WhisperBackend.FASTER). Install it with thefaster-whisperextra (#20). - External transcripts: generate captions from an existing transcript (Whisper JSON, pycaps JSON, SRT or VTT) instead of transcribing the audio, with
--transcriptorwith_transcription_file()(#11, #16). --whisper-prompt: vocabulary hints for Whisper to improve the transcription of brand names and uncommon words (#13).
Changed
- The animated emojis are now cached in the user cache directory of each platform, instead of
~/.pycaps(#17).
Fixed
- Replacing the subtitle renderer after loading a template (e.g. to use
PictexSubtitleRenderer) dropped all the template styles, so words rendered with no gaps between them (#21, #22). PictexSubtitleRendererfailed with html2pic 0.2.- Custom sound effects from JSON configs always failed.
ModifyWordsEffectdidn't modify any word when notag_conditionwas given.pycaps render --configignored--input.
Docs
- New Effects & Animations Guide, which explains step by step how effects and animations work and how to create your own (#7).
- The README now has a learning path through the guides, and several errors in the existing docs were fixed.
Install
pip install "git+https://github.com/francozanardi/pycaps.git@v0.3.0#egg=pycaps[all]"Thanks to @drphero, @MarianoFacundoArch and @hannahfluch for their contributions to this release!
Full Changelog: v0.2.1...v0.3.0