GotSpeech.NET

The online community for Microsoft Speech Server developers
Welcome to GotSpeech.NET Sign in | Join | Help
in Search
Gold Systems

SAPI Newbie

Last post 10-07-2007, 10:31 PM by Peteroid. 7 replies.
Sort Posts: Previous Next
  •  07-19-2007, 5:43 PM 3467

    SAPI Newbie

    I am a newbie in SAPI and I heard SAPI can be used to develop Speech-To-Text (dictation) applications.

    I was looking for a solution for my dictation application. Could anyone tell me where I can download SAPI? Any documentations or reading materials will be thankful!

     

    Best Regards,
     

  •  07-20-2007, 9:22 AM 3472 in reply to 3467

    Re: SAPI Newbie

    YOU can download SAPI 5.1 from this link - http://www.microsoft.com/downloads/details.aspx?FamilyId=5E86EC97-40A7-453F-B0EE-6583171B4530&displaylang=en

    I'm not aware of any good books for SAPI but there must be some somewhere.

     


    Marshall Harrison
    MVP, Office Communications Server
    GotSpeech Consulting LLC
    Phone: (904) 222-8880
    the gotspeech guy
  •  07-22-2007, 10:12 PM 3478 in reply to 3472

    Re: SAPI Newbie

    I have couple blog post on how to create speech recognition applications for Windows using SAPI 5.3 and .NET 2.0 System.Speech API as well as a section in my book.

    SAPI 5.3 is a lot better, but the downfall is it is only Windows Vista. I'm beleive Windows Server 2008 will have SAPI 5.3, but I'm not sure.


    Michael Dunn
    Senior Consultant

    Microsoft Consulting Services
    www.microsoft.com/services
    612.859.1899

    This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
  •  07-26-2007, 4:12 PM 3520 in reply to 3478

    Re: SAPI Newbie

    I am trying to make myself clear the relationship between SASDK and SAPI. Correct me if I am wrong.

     

     

    SASDK 1.1 only runs on .NET 1.1 and the IDE is VS.NET 2003.

    There is no SASDK compatible with .NET 2.0 so SAPI 5.3 has to be used.

     

    Thanks ahead 

  •  07-29-2007, 2:24 AM 3528 in reply to 3520

    Re: SAPI Newbie

    No, basically Speech Server (2007) includes the development tools that SASDK once included.

    SASDK = .NET 1.1    (Telephony)
    Speech Server (2007) Development Tools = .NET 2.0   (Telephony)

    SAPI 5.3 is Windows Vista Speech Recognition Engine (Windows)
    SAPI 5.1 is Windows XP Speech Recognition Engine (Windows)

     The System.Speech API is part of .NET 3.0 framework, which gives you a nice managed API for creating Windows application which use SAPI. Basically instead of dealing with SAPI your self, the System.Speech API adds a layer in between, which makes it a little easier.


    Michael Dunn
    Senior Consultant

    Microsoft Consulting Services
    www.microsoft.com/services
    612.859.1899

    This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
  •  07-29-2007, 2:43 AM 3529 in reply to 3528

    Re: SAPI Newbie

    Thanks for the explanation!
  •  10-07-2007, 6:07 PM 3967 in reply to 3478

    Re: SAPI Newbie

    When I saw this topic I was going to recommend the book I just got called "Speech Server 2007" since it has a good chapter on SAPI development, but I'm guessing you already knew that since you wrote the book! :)

     Using your chapter on SAPI (Vista development), I was able in a few hours to get my application to speak, and I'm now working on recognition. The key for me was to get MS VS VC++ 2008 Express Beta 2 and working on a Vista machine. I also have .NET Frameworks 2.0, 3.0, and 3.5. So, thanks to your book I was able to do what I've been trying to do for a long time, but had a tough time since so little info seems available and support for SAPI which makes one feel it is a lost child at MS.

     SAPI is good for me since I'm building a demo of a potential product and so I have control over the platform I demonstrate from. The one thing I would like that Speech Server has that I could use an SRGS editor to create grammars with. I can use a text editor I believe and just follow the rules of construction like any other language  (much like creating a document in HTML)

    I have a tool called XML Notepad. It seems to want a 'stylesheet' in order to let me use it for the SRGS grammar.

     Thanks again for the great book on the subject!

     

    [==Peter==]

  •  10-07-2007, 10:31 PM 3968 in reply to 3967

    SRGS Namespace not Defined error

    I probably need to add some resource, but I created a file called 'test.grxml' with the following:

     <grammar xml:lang = "EN-US" version="1.0" root="Yes_No_Root" mode="voice">

    <rule id="yes_no_rule_id" scope="public">

    <one-of>

    <item>yes</item>

    <item>no</item>

    </one-of>

    </rule>

    </grammar>

    I then run an application that has the following line:

     Grammar^ grammar= gcnew Grammar( "test.grxml", "YES_NO" ) ;

    and I get the following error message:

    An unhandled exception of type 'System.FormatException' occurred in System.Speech.dll

    Additional information: test.grxml(1,2): error : SRGS grammar not valid. SRGS namespace is not defined 'http://www.w3.org/2001/06/grammar'.

    What do I need to do to make this work?  I'm developing using MS VS VC++ 2008 Express Beta 2, developing for .NET Framework 3.5 (also have 2.0 and 3.0), and developing on a Vista machine (so I should have SAPI 5.3 built in). I also have downloaded and installed Windows SDK. I have gotten text-to-speech generation working just fine via adding System.Speech as a resource.

     . Thanks!

     [==Peter==] 

View as RSS news feed in XML