Bug 448155 - Install VOSK and SRT does not work with the Snap package
Summary: Install VOSK and SRT does not work with the Snap package
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (show other bugs)
Version: 21.08.3
Platform: Snap Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-09 10:18 UTC by simone141080
Modified: 2022-08-12 15:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simone141080 2022-01-09 10:18:42 UTC
Good morning. I installed Kdenlive and I can't install missing dependencies for vocal recognition for creating subtitles. On the software configuration page, "The Python Vosk module appears for the voice recognition feature. The Python SRT module is required for automatic subtitles", but clicking does not install anything. What should I do?
I'm sorry for my English, I have the program in Italian and I had to translate. 

STEPS TO REPRODUCE
1. settings Kdenlive
2. speech-to-text
3. install missing dependencies

OBSERVED RESULT
"The Vosk Python module is required for speech features. The SRT Python module is required for automatic subtiting"

SOFTWARE/OS VERSIONS
Linux: Ubuntu 20.04.3 LTS

ADDITIONAL INFORMATION
Instead, it allows me to download voice models from https://alphacephei.com/vosk/models. I also installed Phyton.
Comment 2 simone141080 2022-01-10 17:04:21 UTC
Good evening. First of all, thank you for the reply!
I followed the instructions through the attached link (Phyton installed and terminal drivers) but the problem persists. What can you do yet?
Comment 3 emohr 2022-01-10 19:19:57 UTC
Do you have done this step: On Linux open a terminal and put in and run: pip3 install vosk;pip3 install srt
Comment 4 simone141080 2022-01-11 12:46:13 UTC
Yes, I have already installed correctly from the terminal! 
I'm thinking that maybe I haven't completely installed Phyton but I just unpacked ... how do you launch or how to install phyton? The "Install-sh" file is present and not present "install.sh" ...
Comment 5 Julius Künzel 2022-01-11 20:00:27 UTC
Thanks for your report!

First of all it would be important to know how you installed Kdenlive (Appimage, Flatpak, PPA,…)

On Ubuntu python3 is usually pre-installed so there is no need to install it. You can check if python3 is installed by running the following command in a terminal: python3 -V
Comment 6 simone141080 2022-01-12 15:12:57 UTC
Yes, typing "python3 -V" from Terminal It comes out "It comes out "Python 3.8.10"!
Moreover, always from the terminal, when typing "pip3 install vosk;pip3 install srt" it comes out from the terminal "Requirement already satisfied".
Launching the program KdenLive on "vocal recognition" still comes out "The Vosk Python module is required for speech features. The SRT Python module is required for automatic subtiting".
Clicking the keys "Install missing dependencies" and "Check the configuration" nothing works...
So, why doesn't it Kdenlive work to speech-to-text? Is there any other problem on my computer? No other drivers are missing? 
I'm sorry but I am not a Linux expert because I only use it for just over 1 year ... 
I'm also unhappy because that it's a beautiful program and I would like to learn how to use it!
Please, can you help me somehow?
Comment 7 Julius Künzel 2022-01-12 23:31:07 UTC
I might be able to help you, but ones again: it is important to know how you installed Kdenlive (Appimage, Flatpak, PPA,…)!!!

This is an important information that should be included in any bug report, but especially in those dealing with installation or path problems (like this one
Comment 8 simone141080 2022-01-13 15:33:43 UTC
Thanks again for all the answers!
I automatically installed KDENLIVE from the Store of Ubuntu but AppImage, FLATPAK and PPA they would have to be included in the operating system I think .. sooner or later I would like to format everything and install the latest updated version of Ubuntu (21.10 current) ... I don't know if I solve so ... otherwise, would he have any other advice to give me?
Comment 9 simone141080 2022-01-13 15:34:41 UTC
I have to type some command from the terminal to understand what's wrong?
Comment 10 Julius Künzel 2022-01-13 18:21:11 UTC
> Thanks again for all the answers!
> I automatically installed KDENLIVE from the Store of Ubuntu
Okay. So we are coming closer to identify your issue. If you installed it from the Ubuntu Software Store it is likely that you installed the Snap package. The Snap package is not officially maintained by the Kdenlive team and has some more issues than just this one. Please install Kdenlive with one of the methods on https://kdenlive.org/download2/ Do use Fla(In reply to simone141080 from comment #8)

> but AppImage, FLATPAK and PPA they would have to be included in 
> the operating system I think .. 
No. The easiest way is to download the Appimage. It is a single file that you can just execute by double clicking on it without any further installation, but one downside it that it does not receive updates automatically.
Flatpak and PPA can be setup on Ubuntu 20.04 without problems.
For Flatpak please see https://flatpak.org/setup/Ubuntu/ and https://flathub.org/apps/details/org.kde.kdenlive for instructions
For the PPA see the "Adding this PPA to your system" section on this page: https://launchpad.net/~kdenlive/+archive/ubuntu/kdenlive-stable
Comment 11 simone141080 2022-01-14 17:48:10 UTC
Good evening.
I clicked on the links attached and followed the indicated instructions. I performed these terminal commands:
For the PPA:
- sudo add-apt-repository ppa:kdenlive/kdenlive-stable
- sudo apt-get update

For the FlatHub:
sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

But only this command gave me error signal: 
flatpak run org.kde.kdenlive

I raised the program but the error did not remove ...
Did I do something wrong?
Comment 12 Julius Künzel 2022-01-14 20:10:11 UTC
(In reply to simone141080 from comment #11)
> Good evening.
> I clicked on the links attached and followed the indicated instructions. I
> performed these terminal commands:
> For the PPA:
> - sudo add-apt-repository ppa:kdenlive/kdenlive-stable
> - sudo apt-get update
> 

You don't need to use PPA and Flatpak. One of both is sufficient.

However you also need to installed Kdenlive:

sudo apt-get install kdenlive

> For the FlatHub:
> sudo apt install flatpak
> sudo apt install gnome-software-plugin-flatpak
> flatpak remote-add --if-not-exists flathub
> https://flathub.org/repo/flathub.flatpakrepo
> 
Same here:

flatpak install org.kde.kdenlive

> But only this command gave me error signal: 
> flatpak run org.kde.kdenlive
> 
> I raised the program but the error did not remove ...
> Did I do something wrong?

Since you probably forgot to install Kdenlive in the previous steps (???) it is somehow expected that nothing changed. You should also consider to remove the snap version by uninstalling it from the software center where you installed it.
Comment 13 simone141080 2022-01-15 18:22:23 UTC
I uninstalled the version downloaded from the store and followed that your indications and finally works !!! 
Obviously that version has bugs ...
I don't know how to thank you!!
A warm greeting from Simone.
Comment 14 Julius Künzel 2022-01-16 23:44:12 UTC
Nice to hear it works!

BTW in this case it was right to open a bug report since it is indeed a bug with the Snap version. However if you have further questions that are not related to a bug we have Telegram and Matrix groups: https://community.kde.org/Kdenlive#Contact
Comment 15 Julius Künzel 2022-01-17 17:45:16 UTC
We should keep it open since it is not fixed in the Snap pack. It was just worked around by using a different package type
Comment 16 simone141080 2022-01-18 14:35:47 UTC
Ok.
Thank you again!
Comment 17 Bug Janitor Service 2022-08-12 14:41:09 UTC
A possibly relevant merge request was started @ https://invent.kde.org/packaging/snapcraft-kde-applications/-/merge_requests/14