Click here to Skip to main content
11,631,525 members (70,132 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hello,

I have a voice recognition application I wrote and it works great when I had it on Windows XP, however, now I have it on my Windows Server 2008 R2. So, everything works just fine so long as I have the winword.exe (MS Word) application open and my cursor blinking in it. If I navigate away from Word (by clicking on any other application that's running) my voice recognition program can no longer "listen". I can see it's because when I click on MS Word the speech mode switches from "Dictation" to "Voice Command" mode. Is there a way for my application to keep the speech mode stuck in Voice Command? I've never faced this issue in the past, so, there's something between XP and Word that was working together to allow my program to remain in Voice Command mode.

I'm literally "using"

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Threading;
using SpeechLib;
using MouseKeyboardLibrary; 
using System.Speech.Recognition.SrgsGrammar; //just added this with a false hope...didn't work
using System.Speech.Synthesis;
using System.Speech.Recognition;
using System.Collections;

I know it's an issue with the OS not being a workstation. So, I installed every speech SDK I could find to get me this far. I have installed Microsoft Speech Platform - Runtime Languages (Version 11) It seems like everything started working out fine once I installed Windows Office 2003 because the speech that comes with that application has the References that work. I've wracked my brain and I think it's down to the reference library. I'm pulling from the Word 2003 speech, so, modify this and it should work? Not sure.

By the way of references, for the project I'm using:
ADODB
DAO
Interop.SpeechLib
LumiSoft.Net
Microsoft.CSharp
Microsoft.Office.Core
Microsoft.Office.Interop.Access
Microsoft.VisualBasic
Microsoft.VisualBasic.PowerPacks.Vs
MouseKeyboardLibrary
SpeechLib
System
System.Core
System.Data
System.Data.DataSetExtensions
System.Deployment
System.Design
System.Drawing
System.Speech
System.Windows.Forms
System.Xml
System.Xml.Linq
Twitterizer.Framwork
Vallelunga.HomeAutomation
VBIDE

What am I missing? Is there a DLL I need to import or cause to be activated/referenced when it starts? Should I add another reference? Do you know how I could get my program to trigger the Voice Command mode when it activates?

I'll keep working on this and post a solution if I find it. Any and/or all assistance would be wonderful.

Cheers~
Posted 22-May-13 1:52am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


Advertise | Privacy | Mobile
Web01 | 2.8.150723.1 | Last Updated 22 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100