Click here to Skip to main content
15,891,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Copy records, change date, save new... [modified] Pin
CCG323-May-07 10:06
CCG323-May-07 10:06 
GeneralRe: Copy records, change date, save new... Pin
Dave Kreskowiak23-May-07 10:15
mveDave Kreskowiak23-May-07 10:15 
GeneralRe: Copy records, change date, save new... Pin
CCG323-May-07 10:39
CCG323-May-07 10:39 
GeneralRe: Copy records, change date, save new... Pin
Dave Kreskowiak23-May-07 16:06
mveDave Kreskowiak23-May-07 16:06 
QuestionHow to sort on date Pin
skipy197323-May-07 9:10
skipy197323-May-07 9:10 
AnswerRe: How to sort on date Pin
Dave Kreskowiak23-May-07 9:51
mveDave Kreskowiak23-May-07 9:51 
GeneralRe: How to sort on date Pin
skipy197323-May-07 11:04
skipy197323-May-07 11:04 
QuestionPlease help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
RoyZ77723-May-07 8:21
RoyZ77723-May-07 8:21 
Hi ppl,

PLEASE I AM SO DESPERATE!!! Sigh | :sigh:

This is ALL relates to the Speech recognition technology by MS and to the released SDK of "Sapi 5.1"..

a link to the SDK:
http://www.microsoft.com/downloads/details.aspx?FamilyId=5E86EC97-40A7-453F-B0EE-6583171B4530&displaylang=en[^]

i am trying to build a simple program of Sapi, which only uses "Command&Control" Grammer (from an xml) and not the dictation one..
i am using the sample from the SDK 5.1 of the Solitaire Game (Sol.xml-which i got in c:\), and i can't get it to work, i just can't understand why isn't it Recognizing... i am using VB 2005 express edition..

I DO NOT have errors in my code.. but the program is still not accepting
when i say "New game", i wish there was some Sapi SDK for vb.net cause it's not simple for a newbie like me to "translate" the code from vb6 (as in the sample) to vb.net from the 5.1 SDK..

FOR SHORT- IT'S NOT RECOGNIZING- AND IT'S DRIVING ME *CrAzY*

PLEASE take a look at the code and try to help me out...
I have a Recognition code by xml, label1, label2, and a textbox1..
(if you are trying that you should add a refernce of a com object by the name of "Microsoft Speech object library" version 5.0..


Public Class Form1

Public WithEvents RC As SpeechLib.SpSharedRecoContext
Public myGrammar, b As SpeechLib.ISpeechRecoGrammar

Private Sub Form1_Load()
RC = New SpeechLib.SpSharedRecoContext

myGrammar = RC.CreateGrammar
myGrammar.CmdLoadFromFile("c:\sol.xml", SpeechLib.SpeechLoadOption.SLODynamic)
myGrammar.CmdSetRuleIdState(0, SpeechLib.SpeechRuleState.SGDSActive)
End Sub

Private Sub RC_FalseRecognition(ByVal StreamNumber As Long, ByVal StreamPosition As Object, ByVal Result As SpeechLib.ISpeechRecoResult)
Label1.Capture = "(no recognition)"
End Sub

Private Sub RC_Recognition(ByVal StreamNumber As Long, ByVal StreamPosition As Object, ByVal RecognitionType As SpeechLib.SpeechRecognitionType, ByVal Result As SpeechLib.ISpeechRecoResult)
Label1.Capture = Result.PhraseInfo.GetText '=NOTHING HAPPENS HERE
TextBox1.Text = Result.PhraseInfo.GetText '=NOTHING HAPPENS HERE

End Sub

Private Sub RC_StartStream(ByVal StreamNumber As Long, ByVal StreamPosition As Object)
Label2.Capture = Val(StreamNumber)
End Sub

End Class

I am sorry for the length of this msg.
I appriciate your help, no one answered and helped me anywhere else, but i have my hopes with you ppl here, cause it looks aweseme, I am new here, and it's my first question..

THANKS A MILLION!!! Smile | :)

Ray.



Only dead fish go with the flow..
AnswerRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
Dave Kreskowiak23-May-07 8:39
mveDave Kreskowiak23-May-07 8:39 
GeneralRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
RoyZ77723-May-07 12:12
RoyZ77723-May-07 12:12 
GeneralRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
Dave Kreskowiak23-May-07 16:08
mveDave Kreskowiak23-May-07 16:08 
GeneralRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. [modified] Pin
RoyZ77723-May-07 23:28
RoyZ77723-May-07 23:28 
GeneralRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
Dave Kreskowiak24-May-07 4:27
mveDave Kreskowiak24-May-07 4:27 
GeneralRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
RoyZ77724-May-07 5:39
RoyZ77724-May-07 5:39 
GeneralRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
RoyZ77724-May-07 13:09
RoyZ77724-May-07 13:09 
AnswerRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
Dave Herren23-May-07 16:06
Dave Herren23-May-07 16:06 
GeneralRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. [modified] Pin
RoyZ77724-May-07 1:53
RoyZ77724-May-07 1:53 
GeneralRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
Dave Herren24-May-07 9:48
Dave Herren24-May-07 9:48 
GeneralRe: Please help with a simple SAPI 5.1 code (MS Speech Recognition).. Pin
RoyZ77724-May-07 13:08
RoyZ77724-May-07 13:08 
QuestionSage Accounts and vb.net Pin
franjones23-May-07 8:09
franjones23-May-07 8:09 
AnswerRe: Sage Accounts and vb.net Pin
Dave Kreskowiak23-May-07 8:24
mveDave Kreskowiak23-May-07 8:24 
GeneralRe: Sage Accounts and vb.net Pin
Steven J Jowett23-May-07 23:41
Steven J Jowett23-May-07 23:41 
GeneralRe: Sage Accounts and vb.net Pin
Dave Kreskowiak24-May-07 4:04
mveDave Kreskowiak24-May-07 4:04 
GeneralRe: Sage Accounts and vb.net Pin
Steven J Jowett24-May-07 4:22
Steven J Jowett24-May-07 4:22 
QuestionSFtp with .NET Pin
shiveta23-May-07 7:02
shiveta23-May-07 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.