RE: The SpeechRecognition.maxNBest attribute

Maybe I'm missing something here, but a short is going to give us 65k possibilities.  That's the maximum size of an array in many languages.

If a recognition engine can't put the right answer into one of those slots it has bigger problems.



-----Original Message-----
From: Hans Wennborg [mailto:hwennborg@google.com] 
Sent: Tuesday, June 19, 2012 3:53 AM
To: olli@pettay.fi
Cc: public-speech-api@w3.org
Subject: Re: The SpeechRecognition.maxNBest attribute

On Tue, Jun 19, 2012 at 11:47 AM, Olli Pettay <Olli.Pettay@helsinki.fi> wrote:
>> negative values wouldn't be allowed(?), so how about we make it an 
>> "unsigned short"?
>
> Why unsigned short? unsigned long should be ok

OK, let's do unsigned long then.

>> [1] http://www.w3.org/TR/WebIDL/#idl-types
>
> Btw, always use the latest version of the spec 
> http://dev.w3.org/2006/webapi/WebIDL/

I foolishly clicked the "Latest Version" link on the spec ;)

Thanks,
Hans

Received on Tuesday, 19 June 2012 14:55:30 UTC