Kdenlive speech to text

How should i install install the openai-whisper and the torch python module to make it work with KDEnlive, i did pip install torch and pip install -U openai-whisper like i used to do on a non-Atomic distro and it has been installed without errors but KDEnlive doesn’t see it.

I found this: Speech recognition and automatic captioning on the Kdenlive Flatpak – VKC.sh | Veronica Explains
but it still doesn’t work and I’m getting this warning:

WARNING: The script isympy is installed in '/var/data/python/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

I don’t know how I should go about in Bluefin to add a Directory to PATH?

https://www.reddit.com/r/kdenlive/comments/12xnq77/deleted_by_user/
I got a bit further following this guide that was included in the article you posted. I added the python path as an environment variable per the reddit post using flatseal. Note that I specified python 3.12.
However, when I went to click “install speech model we recommend - turbo” I would be told by kdenlive that pip wasn’t installed. Randomly, I clicked instead “download multilingual model” and that seemed to reinstall everything to a different path /home/$user/.var/app/org.kde.kdenlive/data/kdenlive/venv/bin. However it now shows up properly. Haven’t gotten to use it yet but kdenlive seems happy

Thanks for sharing @gghardwareissues, I’ll try it to see.

Did you get this warning or not?

and what did you do about it?
thanks

you don’t need to do any commandline tasks. just click download multilingual model under settings → configure speech to text (wait for all the progress bars to finish, this may take a while). Then download the whiper model you want.

Also, for some reason the downloaded whisper model was put in ~/.cache/whisper whereas kdenlive searches for it in ~/.var/app/org.kde.kdenlive/cache/whisper/ so I had to copy the file there. Its working now for me.

2 Likes