Click here to Skip to main content
       

.NET Framework

 
GeneralRe: Website Developemnt PinmvpRichard MacCutchan15-Nov-12 4:12 
GeneralRe: Website Developemnt PinmemberPaul Conrad15-Nov-12 10:37 
AnswerRe: Website Developemnt Pinmemberjschell15-Nov-12 8:07 
GeneralRe: Website Developemnt Pinmemberdojohansen20-Nov-12 6:02 
AnswerRe: Website Developemnt PinmemberZaf Khan19-Nov-12 17:24 
Questionis Windows-8 can run Webservice that work with FrameWork3.5? Pinmembergoldsoft11-Nov-12 9:08 
AnswerRe: is Windows-8 can run Webservice that work with FrameWork3.5? Pinmembern.podbielski13-Nov-12 21:08 
QuestionSpeech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 0:10 
I am facing many problems with .net framework's speech recognition technology
 
Here is my code it checks only for 2 choices black and white but when i say 1 it changes background color to white(this is really weird) I have already done computer training and even when i say 1 and it thinks it detected it right i get a confidence of 0.9 which blows my mind
 
Imports System.Speech.Synthesis
Imports System.Speech.Recognition
 

 
Public Class Form1
 

 

 
Dim speaker As New SpeechSynthesizer
Public WithEvents recog As New SpeechRecognitionEngine
 
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
recog.RecognizeAsyncStop()
recog.Dispose()
 
End Sub

 
Private Sub getcolorintoarray()
 

 

 
End Sub
 
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
speaker.SpeakAsync("Hello")
 
Dim grammarbuilder As New System.Speech.Recognition.GrammarBuilder
 
Dim choices As New System.Speech.Recognition.Choices({"Black", "White"})
 

grammarbuilder.Append(choices)
 

 
Dim grammar As New System.Speech.Recognition.Grammar(grammarbuilder)
 

recog.LoadGrammar(grammar)
 
recog.SetInputToDefaultAudioDevice()
 
recog.RecognizeAsync(RecognizeMode.Multiple)
 

End Sub
 
Private Sub recog_SpeechRecognized(ByVal sender As Object, ByVal e As System.Speech.Recognition.SpeechRecognizedEventArgs) Handles recog.SpeechRecognized
 

 

 
If e.Result.Confidence > 0.8 And e.Result.Text = "Black" Then
 
MsgBox(e.Result.Confidence)
Me.BackColor = Color.Black
 
ElseIf e.Result.Confidence > 0.8 And e.Result.Text = "White" Then
MsgBox(e.Result.Confidence)
Me.BackColor = Color.White
 
End If
 

 
End Sub
 
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
recog.RecognizeAsyncStop()
 
End Sub
 
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
 
recog.RecognizeAsync(RecognizeMode.Multiple)
 

End Sub
End Class
AnswerRe: Speech Recognition (System.speech) PinmemberEddy Vluggen10-Nov-12 7:19 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 21:15 
GeneralRe: Speech Recognition (System.speech) PinmvpRichard MacCutchan10-Nov-12 21:31 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 21:49 
GeneralRe: Speech Recognition (System.speech) PinmvpRichard MacCutchan10-Nov-12 22:11 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 22:15 
GeneralRe: Speech Recognition (System.speech) PinmvpRichard MacCutchan10-Nov-12 22:29 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 22:47 
GeneralRe: Speech Recognition (System.speech) PinmvpRichard MacCutchan11-Nov-12 0:53 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas11-Nov-12 1:01 
GeneralRe: Speech Recognition (System.speech) PinmemberEddy Vluggen10-Nov-12 22:49 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 23:55 
GeneralRe: Speech Recognition (System.speech) PinmemberEddy Vluggen11-Nov-12 0:03 
GeneralRe: Speech Recognition (System.speech) Pinmembern.podbielski13-Nov-12 21:13 
GeneralRe: Speech Recognition (System.speech) PinmemberBert Mitton27-Nov-12 7:31 
QuestionEnabling my app to call a remote service PinmemberRugbyLeague8-Nov-12 4:26 
AnswerRe: Enabling my app to call a remote service PinmemberEddy Vluggen8-Nov-12 9:32 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 21 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid