Forum Replies Created
-
AuthorPosts
-
hg111Participant
Hi Halle,
Thank you very much for offering a discount and sorry for the delay in response. Are you able to email me directly regarding the details? (I rather not publish my email) I plan to purchase as soon as I’m done testing the grammar, even if it can’t work with the grammar model for now. You are right that I don’t have a lot of complexity and was in fact trying to keep it as simple as possible. So for now, the basic ‘robotic commands’ that you had by default in the given example will suffice for, as bellow:
NSDictionary *grammarDictionary = @{
ThisWillBeSaidOnce : @[
@{ OneOfTheseCanBeSaidOnce : @[@”HELLO ROBOT”, @”GREETINGS ROBOT”]},
@{ThisWillBeSaidOnce : @[
@{ OneOfTheseCanBeSaidOnce : @[@”GO”, @”MOVE”, @”TURN”]},
@{ OneOfTheseWillBeSaidOnce : @[@”LEFT”, @”RIGHT”, @”FORWARD”, @”BACKWARD”, @”CENTER”, @”FACE ME”]}
]},
]
};So, having the system recognize a few simple words or at most two words phrases (which I’ll want to customize further and add a few more later), rather than complex sentences is preferred for my case. But is should not confuse for example: “THAT’S RIGHT” with “MOVE RIGHT”.
What do you think?
Haggai
hg111ParticipantHi Halle,
Now getting some initial success with the new grammar I generated although it still seems to get confused by spoken words or phrases that are not in the dictionary. Is there a way to exclude these better? Can they not be excluded without ‘Reject’bv
I read something about Rejecto which I don’t mind to purchase if there is no other way to filter non-relevant words, but I’m unclear about the bundle ID restriction. Right now I am using 2 different bundle IDs in development. I may need another one when I go for deployment. Does that mean that I will have to purchase 3 licenses?
hg111ParticipantHalle,
You are right of course. I just realized from your last email when you said ‘and the docs’ that I am missing the main openears docs. (shame on me :) I was unfamiliar with ‘webloc’ …) As soon as I downloaded the docs I see the class I need to use generateGrammarFromDictionary instead of generateLanguageModelFromArray. I should be able to get it right now.
Thank you
hg
hg111ParticipantHi Halle,
It appears that I am now able to generate the grammar (as below) but if I turn LanguageModelIsJSGF to TRUE, it won’t start speech recognition. Also, the content of the generated grammar in the .dic file looks like the array and not the dictionary file I created (based on your blog example) It seems to always generate the file based on the Array and not the dictionary. Not sure what I’m doing wrong? Can you tell?
Thank you
hg
2014-08-27 23:09:18.165 OpenEarsTest[2296:793421] Dynamic language generator completed successfully, you can find your new files FirstOpenEarsDynamicLanguageModel.DMP
and
FirstOpenEarsDynamicLanguageModel.dic
at the paths
/var/mobile/Containers/Data/Application/20681198-FA77-4878-9109-57CBC02524C6/Library/Caches/FirstOpenEarsDynamicLanguageModel.DMP
and
/var/mobile/Containers/Data/Application/20681198-FA77-4878-9109-57CBC02524C6/Library/Caches/FirstOpenEarsDynamicLanguageModel.diccontent of .dic file:
BACKWARD B AE K W ER D
CENTER S EH N T ER
CENTER(2) S EH N ER
CHANGE CH EY N JH
FORWARD F AO R W ER D
GO G OW
LEFT L EH F T
MODEL M AA D AH L
RIGHT R AY T
TURN T ER Nhg111ParticipantOkay thx, let me try and create new grammar…
hg111ParticipantSorry for the late reply…
The grammar I was trying to use is the first default English model, so using words like Go, left, right, backward, forward…
hg111Participantnot yet. I was hoping to first try the grammar that comes with the example. I was hoping to see it in action before I add or modify anything.
Should I not expect to be able and distinguish between background noise and the example (English) model by simply running the example?
hg111ParticipantYes, nice post.
After turning the flag LanguageModelIsJSGF:TRUE
I get:“The file you have sent to the decoder appears to be an ARPA-style language model, but you have set LanguageModelIsJSGF to true…”
So what am I doing wrong?
Hv
-
AuthorPosts