Click here to Skip to main content
13,595,908 members

.NET Framework

 
GeneralRe: Website Developemnt Pin
Richard MacCutchan15-Nov-12 4:12
mvpRichard MacCutchan15-Nov-12 4:12 
GeneralRe: Website Developemnt Pin
Paul Conrad15-Nov-12 10:37
memberPaul Conrad15-Nov-12 10:37 
AnswerRe: Website Developemnt Pin
jschell15-Nov-12 8:07
memberjschell15-Nov-12 8:07 
GeneralRe: Website Developemnt Pin
dojohansen20-Nov-12 6:02
memberdojohansen20-Nov-12 6:02 
AnswerRe: Website Developemnt Pin
Zaf Khan19-Nov-12 17:24
memberZaf Khan19-Nov-12 17:24 
Questionis Windows-8 can run Webservice that work with FrameWork3.5? Pin
goldsoft11-Nov-12 9:08
membergoldsoft11-Nov-12 9:08 
AnswerRe: is Windows-8 can run Webservice that work with FrameWork3.5? Pin
n.podbielski13-Nov-12 21:08
membern.podbielski13-Nov-12 21:08 
QuestionSpeech Recognition (System.speech) Pin
saurabh orange vyas10-Nov-12 0:10
membersaurabh 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) Pin
Eddy Vluggen10-Nov-12 7:19
memberEddy Vluggen10-Nov-12 7:19 
GeneralRe: Speech Recognition (System.speech) Pin
saurabh orange vyas10-Nov-12 21:15
membersaurabh orange vyas10-Nov-12 21:15 
GeneralRe: Speech Recognition (System.speech) Pin
Richard MacCutchan10-Nov-12 21:31
mvpRichard MacCutchan10-Nov-12 21:31 
GeneralRe: Speech Recognition (System.speech) Pin
saurabh orange vyas10-Nov-12 21:49
membersaurabh orange vyas10-Nov-12 21:49 
GeneralRe: Speech Recognition (System.speech) Pin
Richard MacCutchan10-Nov-12 22:11
mvpRichard MacCutchan10-Nov-12 22:11 
GeneralRe: Speech Recognition (System.speech) Pin
saurabh orange vyas10-Nov-12 22:15
membersaurabh orange vyas10-Nov-12 22:15 
GeneralRe: Speech Recognition (System.speech) Pin
Richard MacCutchan10-Nov-12 22:29
mvpRichard MacCutchan10-Nov-12 22:29 
GeneralRe: Speech Recognition (System.speech) Pin
saurabh orange vyas10-Nov-12 22:47
membersaurabh orange vyas10-Nov-12 22:47 
GeneralRe: Speech Recognition (System.speech) Pin
Richard MacCutchan11-Nov-12 0:53
mvpRichard MacCutchan11-Nov-12 0:53 
GeneralRe: Speech Recognition (System.speech) Pin
saurabh orange vyas11-Nov-12 1:01
membersaurabh orange vyas11-Nov-12 1:01 
GeneralRe: Speech Recognition (System.speech) Pin
Eddy Vluggen10-Nov-12 22:49
memberEddy Vluggen10-Nov-12 22:49 
GeneralRe: Speech Recognition (System.speech) Pin
saurabh orange vyas10-Nov-12 23:55
membersaurabh orange vyas10-Nov-12 23:55 
GeneralRe: Speech Recognition (System.speech) Pin
Eddy Vluggen11-Nov-12 0:03
memberEddy Vluggen11-Nov-12 0:03 
GeneralRe: Speech Recognition (System.speech) Pin
n.podbielski13-Nov-12 21:13
membern.podbielski13-Nov-12 21:13 
GeneralRe: Speech Recognition (System.speech) Pin
Bert Mitton27-Nov-12 7:31
memberBert Mitton27-Nov-12 7:31 
QuestionEnabling my app to call a remote service Pin
RugbyLeague8-Nov-12 4:26
memberRugbyLeague8-Nov-12 4:26 
AnswerRe: Enabling my app to call a remote service Pin
Eddy Vluggen8-Nov-12 9:32
memberEddy Vluggen8-Nov-12 9:32 

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.


Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.180621.3 | Last Updated 21 Jun 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid