Click here to Skip to main content

.NET Framework

 
GeneralRe: Nlog for .Net compact PinmemberTalSt28-Jan-15 20:02 
News.NET projects in koramangala,bangalore Pinmemberraji.1138716-Nov-12 23:24 
News2013 final year IEEE projects Pinmemberraji.1138716-Nov-12 23:20 
QuestionWebsite Developemnt Pinmemberradha123 from Hyderabad15-Nov-12 2:39 
AnswerRe: Website Developemnt PinmvpRichard MacCutchan15-Nov-12 3:41 
GeneralRe: Website Developemnt PinprotectorPete O'Hanlon15-Nov-12 4:00 
GeneralRe: Website Developemnt PinmvpRichard MacCutchan15-Nov-12 5:12 
GeneralRe: Website Developemnt PinmemberPaul Conrad15-Nov-12 11:37 
AnswerRe: Website Developemnt Pinmemberjschell15-Nov-12 9:07 
GeneralRe: Website Developemnt Pinmemberdojohansen20-Nov-12 7:02 
AnswerRe: Website Developemnt PinmemberZaf Khan19-Nov-12 18:24 
Questionis Windows-8 can run Webservice that work with FrameWork3.5? Pinmembergoldsoft11-Nov-12 10:08 
AnswerRe: is Windows-8 can run Webservice that work with FrameWork3.5? Pinmembern.podbielski13-Nov-12 22:08 
QuestionSpeech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 1: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 8:19 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 22:15 
GeneralRe: Speech Recognition (System.speech) PinmvpRichard MacCutchan10-Nov-12 22:31 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 22:49 
GeneralRe: Speech Recognition (System.speech) PinmvpRichard MacCutchan10-Nov-12 23:11 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 23:15 
GeneralRe: Speech Recognition (System.speech) PinmvpRichard MacCutchan10-Nov-12 23:29 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas10-Nov-12 23:47 
GeneralRe: Speech Recognition (System.speech) PinmvpRichard MacCutchan11-Nov-12 1:53 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas11-Nov-12 2:01 
GeneralRe: Speech Recognition (System.speech) PinmemberEddy Vluggen10-Nov-12 23:49 
GeneralRe: Speech Recognition (System.speech) Pinmembersaurabh orange vyas11-Nov-12 0:55 
GeneralRe: Speech Recognition (System.speech) PinmemberEddy Vluggen11-Nov-12 1:03 
GeneralRe: Speech Recognition (System.speech) Pinmembern.podbielski13-Nov-12 22:13 
GeneralRe: Speech Recognition (System.speech) PinmemberBert Mitton27-Nov-12 8:31 
QuestionEnabling my app to call a remote service PinmemberRugbyLeague8-Nov-12 5:26 
AnswerRe: Enabling my app to call a remote service PinmemberEddy Vluggen8-Nov-12 10:32 
GeneralRe: Enabling my app to call a remote service PinmemberRugbyLeague9-Nov-12 0:31 
GeneralRe: Enabling my app to call a remote service PinmemberEddy Vluggen10-Nov-12 8:16 
QuestionPropertygrid Pinmemberrajeshsharma1116-Nov-12 2:51 
AnswerRe: Propertygrid PinmemberEddy Vluggen6-Nov-12 10:05 
Questionavoid click event Pinmemberneeraj@max4-Nov-12 20:41 
AnswerRe: avoid click event - Repost PinmvpRichard MacCutchan4-Nov-12 22:47 
GeneralRe: avoid click event - Repost Pinmemberneeraj@max5-Nov-12 0:30 
GeneralRe: avoid click event - Repost PinmvpRichard MacCutchan5-Nov-12 4:07 
AnswerRe: avoid click event PinmvpAbhinav S5-Nov-12 0:57 
GeneralRe: avoid click event Pinmemberneeraj@max5-Nov-12 1:07 
AnswerRe: avoid click event PinmvpAbhinav S5-Nov-12 1:23 
GeneralRe: avoid click event Pinmemberneeraj@max5-Nov-12 1:43 
AnswerCross posted from C# forum PinprotectorPete O'Hanlon5-Nov-12 2:01 
QuestionHow to call programetically the manged DLL from unmanaged dll ? Pinmemberlitu kumar30-Oct-12 22:32 
AnswerRe: How to call programetically the manged DLL from unmanaged dll ? PinmvpRichard MacCutchan30-Oct-12 23:59 
AnswerRe: How to call programetically the manged DLL from unmanaged dll ? PinmvpAbhinav S4-Nov-12 6:15 
Question.Net Application SAP Crystal Report Slow at First Load Pinmemberipynpark27-Oct-12 16:47 
QuestionnVLC PinmemberManivignesh26-Oct-12 1:38 
AnswerRe: nVLC PinmvpDave Kreskowiak26-Oct-12 3:24 

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
Web03 | 2.8.150331.1 | Last Updated 1 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid