dsnote icon indicating copy to clipboard operation
dsnote copied to clipboard

Error: Can't switch to stt model or lang

Open yannxaver opened this issue 11 months ago • 7 comments

user

flatpak run net.mkiol.SpeechNote --print-active-model stt
Active STT model:
	en_whisper_distil_small "English (WhisperCpp-Distil Small) / en"

flatpak run net.mkiol.SpeechNote --print-available-models stt
Available STT models: 6
	auto_fasterwhisper_small      "Auto detected (FasterWhisper Small) / auto"
	auto_fasterwhisper_tiny       "Auto detected (FasterWhisper Tiny) / auto"
	auto_whisper_small            "Auto detected (WhisperCpp Small) / auto"
	de_whisper_small              "Deutsch (WhisperCpp Small) / de"
	en_fasterwhisper_distil_small "English (FasterWhisper-Distil Small) / en"
	en_whisper_distil_small       "English (WhisperCpp-Distil Small) / en"

flatpak run net.mkiol.SpeechNote --action set-stt-model --id de_whisper_small

flatpak run net.mkiol.SpeechNote --print-active-model stt
Active STT model:
	en_whisper_distil_small "English (WhisperCpp-Distil Small) / en"

flatpak run net.mkiol.SpeechNote --version
dsnote 4.7.1

process

[D] 06:13:08.399126807.399 0x7a1dd4186d00 () - [dbus app] InvokeAction called: "set-stt-model"
[D] 06:13:08.399193990.399 0x7a1dd4186d00 () - executing action: set-stt-model extra = "{de_whispe"
[W] 06:13:08.399215914.399 0x7a1dd4186d00 () - can't swith to stt model or lang: "{de_whisper_small}"

It seems like the --id parameter is not read out correctly. I've tried different syntax to pass the argument but it always failed.

https://github.com/user-attachments/assets/33bd5312-47e6-4a3e-9e68-4bc3b5f16ea2

yannxaver avatar Jan 26 '25 06:01 yannxaver

Oh no! An obvious bug :( Thanks for reporting.

mkiol avatar Jan 26 '25 19:01 mkiol

Do you see any possibility that this could be fixed in a patch release before the next minor release? It's the only thing that keeps me from using the app effectively at the moment because I have to switch between languages many times per day. Happy to contribute to the fix myself if you point me in the right direction. 😊

yannxaver avatar Feb 15 '25 06:02 yannxaver

Sorry for this bug :/

Releasing new official version is a huge overhead, but I may introduce a fix to the beta channel soon. I hope it will work for you.

mkiol avatar Feb 16 '25 19:02 mkiol

Fix: be9e7d3b318ec3322ef194ecb872177188bd3ede

mkiol avatar Feb 22 '25 19:02 mkiol

Fixed in latest beta.

https://github.com/mkiol/dsnote/issues/223

mkiol avatar Feb 24 '25 19:02 mkiol

Tested in beta and working.

yannxaver avatar Mar 03 '25 08:03 yannxaver

Super. Thanks for the confirmation.

mkiol avatar Mar 05 '25 18:03 mkiol

Fixed in new official version 4.8.0.

mkiol avatar Jun 21 '25 11:06 mkiol