Groups > Microsoft > Microsoft Speech Tech SDK > Re: maximum size of grammar (was Out of memory error)




maximum size of grammar (was Out of memory error)

maximum size of grammar (was Out of memory error)
Mon, 26 Nov 2007 02:57:46 +000
Hi ,

I think my problem is that I have too many top level active rules in my sapi
5.1 grammar (245).  Does anyone know if there is a maximum upper limit?  If I
try to restructure the grammar to nest it into fewer top level rules, is there
a limit to how many <list> items , or optional phrases etc that the
grammar
can accept?

Thanks,
Miguel
Post Reply
Re: maximum size of grammar (was Out of memory error)
Mon, 26 Nov 2007 14:07:02 -080
Miguel,
I was curious so I tried what you described. This is indeed a limitation 
with the old SR engines in the Speech SDK 5.1. It can't support too many 
active top level rules (256 on my Windows 2003 machine). A solution, if you 
want to use the SDK 5.1 engine, is as you said: Wrap the rules inside a 
<LIST>. There isn't any limit on the number of items in the <LIST>
that I 
see. I tried 520 <P> items in a <LIST>, and it worked fine.

The new engines on Vista don't have this problem.

However, in all cases, SAPI currently does not support very long path of 
transitions  (250+ transitions or so). I tried a grammar that can recognize 
a very long utterance (e.g. say "one, two, three, .... nine hundred and 
ninety nine, one thousand") and it returned an error.

"Miguel" <aravenwood@fuse.net> wrote in message 
news:e9c2e$474a362a$d0662771$32021@FUSE.NET...
> Hi ,
>
> I think my problem is that I have too many top level active rules in my 
> sapi
> 5.1 grammar (245).  Does anyone know if there is a maximum upper limit? 
> If I
> try to restructure the grammar to nest it into fewer top level rules, is 
> there
> a limit to how many <list> items , or optional phrases etc that the 
> grammar
> can accept?
>
> Thanks,
> Miguel
> 
Post Reply
Re: maximum size of grammar (was Out of memory error)
Mon, 26 Nov 2007 14:07:02 -080
Miguel,
I was curious so I tried what you described. This is indeed a limitation 
with the old SR engines in the Speech SDK 5.1. It can't support too many 
active top level rules (256 on my Windows 2003 machine). A solution, if you 
want to use the SDK 5.1 engine, is as you said: Wrap the rules inside a 
<LIST>. There isn't any limit on the number of items in the <LIST>
that I 
see. I tried 520 <P> items in a <LIST>, and it worked fine.

The new engines on Vista don't have this problem.

However, in all cases, SAPI currently does not support very long path of 
transitions  (250+ transitions or so). I tried a grammar that can recognize 
a very long utterance (e.g. say "one, two, three, .... nine hundred and 
ninety nine, one thousand") and it returned an error.

"Miguel" <aravenwood@fuse.net> wrote in message 
news:e9c2e$474a362a$d0662771$32021@FUSE.NET...
> Hi ,
>
> I think my problem is that I have too many top level active rules in my 
> sapi
> 5.1 grammar (245).  Does anyone know if there is a maximum upper limit? 
> If I
> try to restructure the grammar to nest it into fewer top level rules, is 
> there
> a limit to how many <list> items , or optional phrases etc that the 
> grammar
> can accept?
>
> Thanks,
> Miguel
> 
Post Reply
Re: maximum size of grammar (was Out of memory error)
Fri, 07 Dec 2007 04:12:19 +000
Thanks Hieu!  It's good to know I'm not the only one who can reproduce the
error!

Miguel

"Hieu Nguyen" <hieunt@online.microsoft.com> wrote:
>Miguel,
Post Reply
about | contact