From 404aecf75bed5da14cb2dacf676fdf3d496b7d5f Mon Sep 17 00:00:00 2001 From: Raivis Dejus Date: Sat, 22 Mar 2025 22:19:54 +0200 Subject: [PATCH] Adding Dutch locale build and some notes (#1126) --- .gitignore | 1 + Makefile | 1 + README.md | 17 +++++++++++++---- .../general_preferences_widget.py | 1 + docs/docs/faq.md | 2 +- poetry.lock | 2 +- pyproject.toml | 3 ++- share/icons/io.github.chidiwilliams.Buzz.svg | 12 ++++++------ .../io.github.chidiwilliams.Buzz.metainfo.xml | 3 +++ 9 files changed, 29 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 11a7e59e..f05bf96f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ htmlcov/ coverage.xml .idea/ .venv/ +venv/ # whisper_cpp libwhisper.* diff --git a/Makefile b/Makefile index 0bac72a3..eeae5a3f 100644 --- a/Makefile +++ b/Makefile @@ -213,6 +213,7 @@ translation_po_all: $(MAKE) translation_po locale=ja_JP $(MAKE) translation_po locale=da_DK $(MAKE) translation_po locale=de_DE + $(MAKE) translation_po locale=nl TMP_POT_FILE_PATH := $(shell mktemp) PO_FILE_PATH := buzz/locale/${locale}/LC_MESSAGES/buzz.po diff --git a/README.md b/README.md index c4cd5206..d39f9f2e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ OpenAI's [Whisper](https://github.com/openai/whisper). ## Installation -**PyPI**: +### PyPI Install [ffmpeg](https://www.ffmpeg.org/download.html) @@ -33,7 +33,7 @@ pip install buzz-captions python -m buzz ``` -**macOS**: +### macOS Install with [brew utility](https://brew.sh/) @@ -43,7 +43,7 @@ brew install --cask buzz Or download the `.dmg` from the [releases page](https://github.com/chidiwilliams/buzz/releases/latest). -**Windows**: +### Windows Download and run the `.exe` from the [releases page](https://github.com/chidiwilliams/buzz/releases/latest). @@ -55,7 +55,16 @@ App is not signed, you will get a warning when you install it. Select `More info winget install ChidiWilliams.Buzz ``` -**Linux**: +**GPU support for PyPI** + +To have GPU support for Nvidia GPUS on Windows, for PyPI installed version ensure, CUDA support for [torch](https://pytorch.org/get-started/locally/) + +``` +pip3 uninstall torch torchaudio +pip3 install torch==2.2.2+cu121 torchaudio==2.2.2+cu121 --index-url https://download.pytorch.org/whl/cu121 +``` + +### Linux Buzz is available as a [Flatpak](https://flathub.org/apps/io.github.chidiwilliams.Buzz) or a [Snap](https://snapcraft.io/buzz). diff --git a/buzz/widgets/preferences_dialog/general_preferences_widget.py b/buzz/widgets/preferences_dialog/general_preferences_widget.py index 3ebe3c7d..92d2957e 100644 --- a/buzz/widgets/preferences_dialog/general_preferences_widget.py +++ b/buzz/widgets/preferences_dialog/general_preferences_widget.py @@ -35,6 +35,7 @@ ui_locales = { "en_US": _("English"), "ca_ES": _("Catalan"), "da_DK": _("Danish"), + "nl": _("Dutch"), "de_DE": _("German"), "es_ES": _("Spanish"), "it_IT": _("Italian"), diff --git a/docs/docs/faq.md b/docs/docs/faq.md index 18b22049..4c8aa0f7 100644 --- a/docs/docs/faq.md +++ b/docs/docs/faq.md @@ -71,7 +71,7 @@ Latest development version will have latest bug fixes and most recent features. - **For other** platforms do the following: 1. Go to the [build section](https://github.com/chidiwilliams/buzz/actions/workflows/ci.yml?query=branch%3Amain) - 2. Click on the link to the latest build + 2. Click on the link to the latest build, the most recent successful build entry in the list 3. Scroll down to the artifacts section in the build page 4. Download the installation file. Please note that you need to be logged in the Github to see the download links. diff --git a/poetry.lock b/poetry.lock index ff3bc996..36a4631a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -5025,4 +5025,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" python-versions = ">=3.9,<3.13" -content-hash = "e134bd5f4dbd048e49b54d71d11294792117d0f167b8c5f5be5e0407998cea52" +content-hash = "37bac8a0816d1719d4d23a35f654d7b47c9458a964066decd3fda53556b407e6" diff --git a/pyproject.toml b/pyproject.toml index 47ade606..7e7e85ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,8 @@ yt-dlp = "^2025.2.19" stable-ts = "^2.18.3" faster-whisper = "^1.1.1" openai-whisper = "^20240930" -transformers = "^4.49.0" +# transformers 4.50.0 has some bug +transformers = "4.49.0" accelerate = "^1.0.1" polib = "^1.2.0" srt-equalizer = "^0.1.10" diff --git a/share/icons/io.github.chidiwilliams.Buzz.svg b/share/icons/io.github.chidiwilliams.Buzz.svg index 0bce21f7..79604329 100644 --- a/share/icons/io.github.chidiwilliams.Buzz.svg +++ b/share/icons/io.github.chidiwilliams.Buzz.svg @@ -1,14 +1,14 @@ - - - - + + + + - + - + diff --git a/share/metainfo/io.github.chidiwilliams.Buzz.metainfo.xml b/share/metainfo/io.github.chidiwilliams.Buzz.metainfo.xml index da794dad..cbb77008 100644 --- a/share/metainfo/io.github.chidiwilliams.Buzz.metainfo.xml +++ b/share/metainfo/io.github.chidiwilliams.Buzz.metainfo.xml @@ -12,6 +12,9 @@

Buzz transcribes and translates audio to text offline using OpenAI's Whisper. Import audio and video files into Buzz and export them as TXT, SRT, or VTT files. Buzz supports Whisper, Whisper.cpp, Faster Whisper, Whisper-compatible models from the Hugging Face repository, and the OpenAI Whisper API.

+

+ Required permissions in Buzz will let you select audio and video files for transcription, from most common file location on your computer. Network permission is used to download transcription model files. Microphone permission lets you transcribe real time speech. +

Note: If your system theme is not applied to Buzz, ensure it is in ~/.themes folder. You may need to copy the system themes to this folder cp -r /usr/share/themes/ ~/.themes/.