Help needed #324
Replies: 6 comments 11 replies
-
Yes, I think that is normal. The reason is probably that some engines (like ibus-table which I also maintain) can can be started with different modes to create fairly different engine. There are many “table:...” engines in case of ibus table: for example there is the engine “table:cangjie5” for Chinese input using cangjie5 and there is the “table:latex” to input LaTeX symbols. These use completely different tables and thus behave very differently. But they all use the same ibus-table code, they are just started with different names. But of course one does not want to exactly the same engine twice! So I check whether the exact same engine (same This code in https://github.com/mike-fabian/ibus-typing-booster/blob/main/engine/factory.py#L70
In case of Typing Booster there is currently only one engine_name But I have some ideas of adding some special purpose Typing Booster engines in future, maybe. So this may change and there may be special Typing Booster engines in future. For example Typing Booster can emulate the behaviour of ibus-m17n when setup in a special way. See the chapter “Simulate the behaviour of ibus-m17n” in the online documentation: https://mike-fabian.github.io/ibus-typing-booster/docs/user/#2_2_1_1 So maybe I will introduce additional special engine names in future, maybe something like |
Beta Was this translation helpful? Give feedback.
-
By the way, I see that you are developing a speech-to-text engine. Which speech-to-text software are you intending on using? I ask because ibus-typing-booster also has a speech-to-text feature using the service from the Google cloud. This service has a good quality, but it quite hard to setup. See the chapter “Speech recognition” in the online-documentation: https://mike-fabian.github.io/ibus-typing-booster/docs/user/#10 Unfortunately this Google service is quite difficult to setup and it is only free of charge for a limited time per month. Something like 1 hour per month is free, above that one has to pay. What service are you using? If there are good alternatives to the Google service, I would like to add options to choose different services. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your reply. I will dig into that. The most worrying thing to me is if the previous engine is not properly destroyed, but since it does not happen for typing-booster, the error is mine. |
Beta Was this translation helpful? Give feedback.
-
Hi again, |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for all your tips and your guidance. |
Beta Was this translation helpful? Give feedback.
-
Sorry to dig up this issue again but I finally figured out what was going on. Thanks again for your help. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm developping an ibus engine (called "stt") and I experienced something strange.
Every time I click on the name of the engine in the ibus engine menu in the top gnome-shell bar (see below the picture), it creates a new "stt" engine, EVEN IF the "stt" engine is already selected. One of the symptoms among others is that the new engine looses the session parameters of the formerly active one and it stops voice recognition.
I tried to confirm this with your engine that is far more advanced and complex than mine. I turned on debug, launched it from the command line, then I clicked on its name in the menu, it started, and, I clicked several times on its name in the menu again. I read the debug log and I got the following lines:
2022-06-24 18:03:21,070 factory.py line 64 do_create_engine DEBUG: EngineFactory.do_create_engine(engine_name=typing-booster)
2022-06-24 18:03:28,135 factory.py line 64 do_create_engine DEBUG: EngineFactory.do_create_engine(engine_name=typing-booster)
2022-06-24 18:03:31,350 factory.py line 64 do_create_engine DEBUG: EngineFactory.do_create_engine(engine_name=typing-booster)
2022-06-24 18:03:40,751 factory.py line 64 do_create_engine DEBUG: EngineFactory.do_create_engine(engine_name=typing-booster)
2022-06-24 18:03:45,565 factory.py line 64 do_create_engine DEBUG: EngineFactory.do_create_engine(engine_name=typing-booster)
Could you confirm a new engine is indeed created every time I clicked though typing-booster was already selected?
Does it seem normal to you?
I'd like to add that there is a second problem connected to this one, at least for my engine, which is ibus does not destroy the engines created before and they seem to lie around doing nothing. I know this because some of the objects they created still receive signal notifications.
I know this issue seems to have to do with ibus and not your engine but I wanted to your opinion on this.
I attached the full log.
debug.log
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions