Dear Friends,
I am building Magic mirror application for Android. The mirror should response to the classical question, “who is the most beautiful girl on the world” as well to some commands like “zoom in” and “zoom out”. This work amazingly well with PocketSphinx, but I found that .raw files are accumulated in the sync folder. My questions are:
What is the use of these files?
Could they use too much disk space?
Can I clean these files periodically or simply stop saving them?
Thank’s
Konstantin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am building Magic mirror application for Android. The mirror should response to the classical question, “who is the most beautiful girl on the world” as well to some commands like “zoom in” and “zoom out”. This work amazingly well with PocketSphinx, but I found that .raw files are accumulated in the sync folder.
Great, let us know the link once you release it
What is the use of these files?
They are useful for debuggin
Could they use too much disk space?
You need to disable them.
Can I clean these files periodically or simply stop saving them?
When you setup the recognizer with RecognizerSetup remove the call to setRawLogDir, if that will be unset, raw files will not be stored.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for the rapid and reliable help. It is ok now – no more .raw! I will be ready with the magic mirror soon and will be a pleasure to share here the link to the app.
I changed a bit the tutorial demo for android in order to fit better to the mirror task. I have only one kw search (miro) and one grammar search and simply swap between them. All string comparisons are done in the onResult() function so the role of onPartialResult() and onEndOfSpeech() is just to stop the recogniser. The main difference is in the timer, which I implemented in onPartialResult() in order to stop the recogniser if activity longer then 5 sec is detected. This avoids problems with the background noise. Indeed the app works well in presence of CNN running on TV, which should be considered as very good resistance to noise.
Please find below the testing code. I am new in ASR and CMU Sphinx and will appreciate any comments on the code.
I actually wanted to introduce recognizeWithTimeout method in our API, I think it definitely makes sense for many usecases. Then you will have more straightforward implementation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Friends,
I am building Magic mirror application for Android. The mirror should response to the classical question, “who is the most beautiful girl on the world” as well to some commands like “zoom in” and “zoom out”. This work amazingly well with PocketSphinx, but I found that .raw files are accumulated in the sync folder. My questions are:
What is the use of these files?
Could they use too much disk space?
Can I clean these files periodically or simply stop saving them?
Thank’s
Konstantin
Great, let us know the link once you release it
They are useful for debuggin
You need to disable them.
When you setup the recognizer with RecognizerSetup remove the call to setRawLogDir, if that will be unset, raw files will not be stored.
Hi Nickolay,
Thank you for the rapid and reliable help. It is ok now – no more .raw! I will be ready with the magic mirror soon and will be a pleasure to share here the link to the app.
I changed a bit the tutorial demo for android in order to fit better to the mirror task. I have only one kw search (miro) and one grammar search and simply swap between them. All string comparisons are done in the onResult() function so the role of onPartialResult() and onEndOfSpeech() is just to stop the recogniser. The main difference is in the timer, which I implemented in onPartialResult() in order to stop the recogniser if activity longer then 5 sec is detected. This avoids problems with the background noise. Indeed the app works well in presence of CNN running on TV, which should be considered as very good resistance to noise.
Please find below the testing code. I am new in ASR and CMU Sphinx and will appreciate any comments on the code.
Cheers,
Konstantin
Ops, I think the code is not attached here it is again
Hi
Looks great, let me know if you meet any issues.
I actually wanted to introduce recognizeWithTimeout method in our API, I think it definitely makes sense for many usecases. Then you will have more straightforward implementation.
startRecognition("search", timeout) has been recently added.
That will be really useful. I will follow the news for PocketSphinx on that. For people who are interesting here is link to Miro on Google Play: https://play.google.com/store/apps/details?id=ch.avantgardvision.data.understand.miro&hl=fr
Cheers,
Konstantin