dsnote icon indicating copy to clipboard operation
dsnote copied to clipboard

Debian package build - no FasterWhisper

Open AHeinlein opened this issue 5 months ago • 4 comments

I want to help improve the debian package build process. I have already adapted makedeb.sh for version 4.8.1 and fixed missing dependencies in the debian/control file (at least they are missing for Debian 12/13).

The resulting .deb when building with makedeb.sh does not have FasterWhisper STT support, according to "Settings -> Advanced". I don't know why, I found no CMake flag that could cause this.

I'll be happy to provide a PR with the changes I made, once I got it working fully. I'll also be happy to test and work on the debian packaging, I have some experience with that.

AHeinlein avatar Jul 05 '25 16:07 AHeinlein

That would be amazing if you could update makedeb.sh :)

Unsandboxed package (other than Flatpak) does not contain Python dependencies. This is a design choice. FasterWhisper depends on the Python library, so it cannot be used without installing the faster-whisper Python package.

pip install faster-whisper

If you want to keep all Python dependencies in venv, Speech Note supports this. Instead of installing Python packages system-wide/user-wide, use venv and set the path to the site-packages directory in Settings->Advanced->Libraries. After app restart, the FasterWhisper models should be available.

Image

mkiol avatar Jul 06 '25 16:07 mkiol

Thanks again, I got it to work using pip. I guess the venv method should be the recommended way, since it is now discouraged to mix system packages and pip packages. There have been requests to package ctranslate2 for Debian/Ubuntu, but so far no effort has been made, let alone fasterwhisper.

I will get back to makedeb.sh after my vacation in August.

AHeinlein avatar Jul 13 '25 07:07 AHeinlein

I'm having a nightmare trying to get the flatpak install working with ydotool on Ubuntu 25.04 w/ wayland. A deb could be a lifesaver. Cheers for working on this - hope you're having a great holiday!

SimonDedman avatar Aug 06 '25 07:08 SimonDedman

Hey, I just released version 4.8.3 that contains only bug fixes, but thanks to this great commit 8f716e5a70761e44becaffe08a300ed8f08531d4, I was also able to create packages for Ubuntu 24.04 and 25.04. Both can be downloaded from Release page.

mkiol avatar Aug 15 '25 17:08 mkiol