Re: [simon-development] Acoustic Model Switching
Brought to you by:
speechtotext
|
From: Adam N. <ada...@gm...> - 2011-12-19 18:59:47
|
> There shouldn't be, I guess. > > I just dug up the concrete error message: > Could not adapt prompts. Does the file > "c:/users/<foo>/appdata/roaming/.kde/share/apps/simond/models/default/cached//acoustic > models/default/prompts" exist? > > It looks like simond tries to access a cached prompts file that doesn't exist. > That happened when using a static model (no training data). > > Does that help? Yeah, thanks, it was pretty easy to diagnose with that error message. I wasn't creating the acoustic model cache skeleton (the prompts files with specific sample groups) if there was a static model, but I was still using those prompts files when the language model changed. I just made it so that it always sets up the cache skeleton whenever it gets a new prompts file. I deleted everything in the cache and started it up with a static model and everything worked. >> Also, make sure that the Cancel button works -> don't work on the real >> configuration but a copy! I'm working on making the sample group context config work with the kcm format (I didn't know anything about it before, and I just sort of hacked a widget together and threw it into the SoundSettings thing). I assume that it will fall into place a little cleaner when I actually know what's going on. The .tag and non-cpp or standard .ui files throw me off. As far as the singleton stuff goes, I agree that one singleton that manages the rest would make sense. I noticed that the simonview destructor (which deletes simoncontrol) never gets called, and there is something in main.cpp about it being deleted automatically. I deleted it after the program exits just to see what would happen and it crashes, apparently because of something in scenariomanager that depended on simonview or part of it. Should I be doing anything about this singleton problem? It seems like a big project (although, a quick fix seems like it would be as simple as finding dependencies between singletons and deleting them in the right order). -Adam |