https://github.com/hmknapp/slim-bazarr-subgen
Create subtitles with Whisper AI for your media files in Bazarr
https://github.com/hmknapp/slim-bazarr-subgen
bazarr subtitles whisper-ai
Last synced: 4 days ago
JSON representation
Create subtitles with Whisper AI for your media files in Bazarr
- Host: GitHub
- URL: https://github.com/hmknapp/slim-bazarr-subgen
- Owner: HMKnapp
- Created: 2024-06-01T21:56:23.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-29T11:55:08.000Z (11 months ago)
- Last Synced: 2025-04-04T19:54:28.937Z (7 months ago)
- Topics: bazarr, subtitles, whisper-ai
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= slim bazarr subgen
====
_slim bazarr subgen_ uses Whisper AI models to automatically create subtitles for your media files in Bazarr.
====It is simply a *slimmed down version of https://github.com/McCloudS/subgen[McCloudS’ subgen]* (thank you for making your code available!) which never worked for me without ugly hacks.
I did this because I wanted subtitles for a TV show this evening and McCloudS/subgen (again) would suddenly not start for whatever reason, and I didn’t care anymore to find out why.
NOTE: _slim bazarr subgen_ only includes functionality required for https://www.bazarr.media/[Bazarr] subtitle generation
The idea is to have a reliable subtitle service on a much smaller code base which makes it easier to maintain, extend and use.
[#design]
== Design decisions- caches and models go to `/tmp` (RAM)
- remove everything not needed for Bazarr
- less is more[#assumptions]
== Assumptions- you use Docker
- you have an Nvidia GPU and `nvidia-container-toolkit` (but works with CPU as well)
- you have a proper amount of RAM reserved for `tmpfs` in `/tmp`[#alternatives]
== AlternativesYou might like those better:
- https://github.com/McCloudS/subgen[McCloudS/subgen]
- https://github.com/ahmetoner/whisper-asr-webservice[ahmetoner/whisper-asr-webservice][#run]
== Run[source,sh]
----
docker-compose up --build; docker-compose down --remove-orphans
----[#configuration]
== ConfigurationLook at `docker-compose.yml` for limited configuration options.
Look here for available models: https://github.com/openai/whisper/blob/main/README.md#available-models-and-languages
[#configure_bazarr]
=== BazarrHow to configure Bazarr to use Whisper AI subtitle creation: https://wiki.bazarr.media/Additional-Configuration/Whisper-Provider/
IMPORTANT: Default port is `8090`