Skip to content

v0.3.0

Latest

Choose a tag to compare

@francozanardi francozanardi released this 30 Sep 16:58

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 config command was removed too. The AI features (ai tagger rules and emoji_in_segment) now use only your own OpenAI API key, set with the PYCAPS_OPENAI_API_KEY environment variable. See AI Features.
  • Custom sound effects in JSON configs now resolve their path relative 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 the whisper config, or with_whisper_config(backend=WhisperBackend.FASTER). Install it with the faster-whisper extra (#20).
  • External transcripts: generate captions from an existing transcript (Whisper JSON, pycaps JSON, SRT or VTT) instead of transcribing the audio, with --transcript or with_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).
  • PictexSubtitleRenderer failed with html2pic 0.2.
  • Custom sound effects from JSON configs always failed.
  • ModifyWordsEffect didn't modify any word when no tag_condition was given.
  • pycaps render --config ignored --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