Groups > Microsoft > Microsoft Speech Tech > Re: sapi 5.1 redistributable is flaky




sapi 5.1 redistributable is flaky

sapi 5.1 redistributable is flaky
Fri, 23 Nov 2007 21:00:20 +000
Hi,

I'm building a speech recognition app using sapi 5.1.  I include the sapi 5.1
redistributable in the installer in case the user doesn't already have it
installed on their machine (i.e. don't have office installed etc.).  Problem
is, every time I uninstall the app and reinstall it from the same set of files
during testing, I've noted that there is no consistency about the quality of
speech recognition I get.  After any given install it sometimes is close to
100% out of the box, sometimes it is close to 10%.  Anybody know what's
causing this?  Do I have to create a new profile each time I reinstall the
app?  Are some registry keys getting messed up and causing this?  This is very
frustrating.

I would switch to SAPI 5.3 but I want my app to also run on XP machines - is
there a way to install SAPI 5.3 on xp through an installer?

Thanks,
Miguel
Post Reply
Re: sapi 5.1 redistributable is flaky
Sun, 25 Nov 2007 20:35:27 -080
Hi Miguel,
The user recognition profile was probably removed. Since the profile is 
associated with recognition engine, when you unintsall the engine the 
installer removes the profile. I'll check with the Speech team to see if 
they can provide any solution, perhaps by giving users the option of keeping 
their profiles. I suspect it could be done by the MSI author.

SAPI 5.3 comes with Windows Vista and there is no separate installer.

-- 
Hieu Nguyen
Microsoft - MSFT

This email is provided "AS IS" with no warranties, and confers no
rights

"miguel" <aravenwood@fuse.net> wrote in message 
news:93e7f$47473f64$d0662771$31726@FUSE.NET...
> Hi,
>
> I'm building a speech recognition app using sapi 5.1.  I include the sapi 
> 5.1
> redistributable in the installer in case the user doesn't already have it
> installed on their machine (i.e. don't have office installed etc.). 
> Problem
> is, every time I uninstall the app and reinstall it from the same set of 
> files
> during testing, I've noted that there is no consistency about the quality 
> of
> speech recognition I get.  After any given install it sometimes is close 
> to
> 100% out of the box, sometimes it is close to 10%.  Anybody know what's
> causing this?  Do I have to create a new profile each time I reinstall the
> app?  Are some registry keys getting messed up and causing this?  This is 
> very
> frustrating.
>
> I would switch to SAPI 5.3 but I want my app to also run on XP machines - 
> is
> there a way to install SAPI 5.3 on xp through an installer?
>
> Thanks,
> Miguel
> 
Post Reply
Re: sapi 5.1 redistributable is flaky
Fri, 07 Dec 2007 04:20:43 +000
Hieu,

Is a speech profile closely bound to the engine?  By this I mean, if I have
version 5 engine installed, create a profile and then install office with
engine v6, will the same profile work for both engines, or do they use
completely different profiles?  If I remove 5 but not 6, will 6 use the
profile created for 5?

Please let me know if it's possible to tweak the msi to not remove profiles
when uninstalling (i use orca, though I create the msi using visual installer
with sapi 5.1 merge modules).

Even better, is it possible to tweak the installer so it won't install the 5
engine, just the sapi, if v6 engine is installed?

Let me know if what i am asking is confusing.

Thanks in advance!

Miguel

"Hieu Nguyen" <ntrhieu@online.microsoft.com> wrote:
>Hi Miguel, The user recognition profile was probably removed. Since the
profile is 8associated with recognition engine, when you unintsall the engine
the 
Post Reply
Re: sapi 5.1 redistributable is flaky
Fri, 7 Dec 2007 09:30:43 -0800
Just to be clear, as far as I'm aware uninstalling the engine or SAPI 
doesn't uninstall any user profile data. It all remains in 
HKEY_CURRENT_USER. I think something else must be going on ...

The v6 engines don't use the same training data etc as the v5 engines so 
basically the profile data is not shared. The two engines use the same 
profile from the point of view of the control panel, but internally they use 
different data files.

Dave

"Miguel" <aravenwood@fuse.net> wrote in message 
news:f3fca$4758ca1b$d0662771$22116@FUSE.NET...
> Hieu,
>
> Is a speech profile closely bound to the engine?  By this I mean, if I 
> have
> version 5 engine installed, create a profile and then install office with
> engine v6, will the same profile work for both engines, or do they use
> completely different profiles?  If I remove 5 but not 6, will 6 use the
> profile created for 5?
>
> Please let me know if it's possible to tweak the msi to not remove 
> profiles
> when uninstalling (i use orca, though I create the msi using visual 
> installer
> with sapi 5.1 merge modules).
>
> Even better, is it possible to tweak the installer so it won't install the

> 5
> engine, just the sapi, if v6 engine is installed?
>
> Let me know if what i am asking is confusing.
>
> Thanks in advance!
>
> Miguel
>
> "Hieu Nguyen" <ntrhieu@online.microsoft.com> wrote:
>>Hi Miguel, The user recognition profile was probably removed. Since the
> profile is 8associated with recognition engine, when you unintsall the 
> engine
> the
> 
Post Reply
Re: sapi 5.1 redistributable is flaky
Wed, 12 Dec 2007 06:21:51 +000
Hi Dave, 
 
I am now thinking that the varying quality of recognition has to do with
having 
multiple profiles and engines on one machine, and not being thorough about 
tracking which profile I'm using with which engine etc., since I didn't know 
that training sessions only apply to a particular engine. 
 
I looked through the SAPI documention again tonight, and plan to resolve the 
problem by exerting tight control over the user's training and engine
selection 
using the recognizer object's displayui method to make sure that training gets

paired with the correct engine.   I can now open the training ui for a 
particular profile for a particular engine (very cool!). 
 
But this leads to another issue - if user has office (v6) installed, and my
app (v5) 
on the machine, and has already trained some using the v6 engine, I'd like to 
leverage that existing training by using that profile and the v6 engine with
my 
app.  So my question is:  is there any way programmatically to determine
whether a given profile contains training for a particular engine, and how
many training sessions have been completed for that engine? I looked at the
registry keys, but the relationship of all the .dat files to the training
wasn't clear.
 
Separately, but related, I tried opening the speechmictraining wizard through 
the displayui method, but errored out saying it couldn't initialize it. 
syntax 
seems ok (based off speechusertraining example).  Just doesn't work 
 
Thanks, 
Miguel 

"Dave Wood [MS]" <davewood@online.microsoft.com> wrote:
>Just to be clear, as far as I'm aware uninstalling the engine or SAPI 
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact