Click here to Skip to main content
15,900,511 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
THANK YOU VERY MUCH!

I got a progress, it goes in to the Recognition subs and the loading grammer one too..
but it still doesn't work, i am working on it..

here is my code:

<br />
Public Class Form1<br />
<br />
    Private WithEvents RC As New SpeechLib.SpSharedRecoContext<br />
    Private myGrammar As SpeechLib.ISpeechRecoGrammar<br />
<br />
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        myGrammar = RC.CreateGrammar()<br />
        AddHandler RC.FalseRecognition, AddressOf RC_FalseRecognition<br />
        AddHandler RC.Recognition, AddressOf RC_Recognition<br />
        AddHandler RC.StartStream, AddressOf RC_StartStream<br />
        myGrammar.CmdLoadFromFile("c:\sol.xml", SpeechLib.SpeechLoadOption.SLODynamic)<br />
        myGrammar.CmdSetRuleIdState(0, SpeechLib.SpeechRuleState.SGDSActive)<br />
        myGrammar.DictationSetState(SpeechLib.SpeechRuleState.SGDSInactive)<br />
        myGrammar.CmdSetRuleIdState(0, SpeechLib.SpeechRuleState.SGDSInactive)<br />
<br />
    End Sub<br />
   <br />
    Private Sub RC_FalseRecognition(ByVal StreamNumber As Integer, ByVal StreamPosition As Object, ByVal Result As SpeechLib.ISpeechRecoResult)<br />
<br />
        Label1.Capture = "(no recognition)"<br />
<br />
    End Sub<br />
    Private Sub RC_Recognition(ByVal StreamNumber As Integer, ByVal StreamPosition As Object, ByVal RecognitionType As SpeechLib.SpeechRecognitionType, ByVal Result As SpeechLib.ISpeechRecoResult)<br />
<br />
        Label1.Capture = Result.PhraseInfo.GetText()<br />
        TextBox1.Text = Result.PhraseInfo.GetText()<br />
<br />
    End Sub<br />
    Private Sub RC_StartStream(ByVal StreamNumber As Integer, ByVal StreamPosition As Object)<br />
<br />
        Label2.Capture = Val(StreamNumber)<br />
<br />
    End Sub<br />
End Class


I hope I will get it right now..i am still working on it,
and i am not intending to give up,
it's all i do all day in the last few days..
but i think that i am on the right track..
now you understand how much I Realy Realy appriciate this..

Thankssss!!!

Ray.
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 
AnswerRe: SFtp with .NET Pin
Dave Kreskowiak23-May-07 7:24
mveDave Kreskowiak23-May-07 7:24 
GeneralRe: SFtp with .NET Pin
shiveta23-May-07 7:36
shiveta23-May-07 7:36 
GeneralRe: SFtp with .NET Pin
Dave Kreskowiak23-May-07 8:07
mveDave Kreskowiak23-May-07 8:07 
QuestionOperations Research Pin
de silva23-May-07 6:55
de silva23-May-07 6:55 
AnswerRe: Operations Research Pin
Dave Kreskowiak23-May-07 7:22
mveDave Kreskowiak23-May-07 7:22 
QuestionVB.net Flexgrid? Pin
de silva23-May-07 6:42
de silva23-May-07 6:42 

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.