Click here to Skip to main content
15,926,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Application Installation Problem Pin
Dave Kreskowiak28-Nov-07 4:20
mveDave Kreskowiak28-Nov-07 4:20 
AnswerRe: Application Installation Problem Pin
Dave Kreskowiak28-Nov-07 4:17
mveDave Kreskowiak28-Nov-07 4:17 
GeneralRe: Application Installation Problem Pin
Suresh Belur28-Nov-07 16:47
Suresh Belur28-Nov-07 16:47 
Questiondelivery report Pin
rishidubey27-Nov-07 12:44
rishidubey27-Nov-07 12:44 
AnswerRe: delivery report Pin
Dave Kreskowiak27-Nov-07 15:30
mveDave Kreskowiak27-Nov-07 15:30 
GeneralRe: delivery report Pin
rishidubey27-Nov-07 15:55
rishidubey27-Nov-07 15:55 
GeneralRe: delivery report Pin
Dave Kreskowiak28-Nov-07 3:27
mveDave Kreskowiak28-Nov-07 3:27 
QuestionSystem.Speech in VB.net for Voice recognition Pin
Slickuser27-Nov-07 11:43
Slickuser27-Nov-07 11:43 
I am running Windows XP Pro SP 2, have Office 2003, installed SDK 5.1,
Visual Studio 2005 with installed .NET Frame 3.5 (re-distribution package).

I tested out the voice the recognition code from this link but seem it
can't recognize System.Speech. I try to search for (Add Reference)
both in .NET & COM (found none.)

Is there any else I need to add to make this work. Thanks


http://blogs.msdn.com/robertbrown/archive/2005/06/14/428967.aspx

////////////////code

Imports System.Speech

Public Class Form1

Dim WithEvents reco As New Recognition.DesktopRecognizer

Private Sub SetColor(ByVal color As System.Drawing.Color)

Dim synth As New Synthesis.SpeechSynthesizer

synth.SpeakAsync("setting the back color to " + color.ToString)

Me.BackColor = color

End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim gram As New GrammarBuilding.SrgsDocument

Dim colorRule As New GrammarBuilding.SrgsRule("color")

Dim colorsList As New GrammarBuilding.SrgsOneOf("red", "green")

colorRule.Add(colorsList)

gram.Rules.Add(colorRule)

gram.Root = colorRule

reco.LoadGrammar(New Recognition.Grammar(gram))

End Sub

Private Sub reco_SpeechRecognized(ByVal sender As Object, ByVal e As System.Speech.Recognition.RecognitionEventArgs) Handles reco.SpeechRecognized

Select Case e.Result.Text

Case "red"

SetColor(Color.Red)

Case "green"

SetColor(Color.Green)

End Select

End Sub

End Class
AnswerRe: System.Speech in VB.net for Voice recognition Pin
Christian Graus27-Nov-07 12:24
protectorChristian Graus27-Nov-07 12:24 
AnswerRe: System.Speech in VB.net for Voice recognition Pin
Dave Kreskowiak27-Nov-07 15:31
mveDave Kreskowiak27-Nov-07 15:31 
GeneralRe: System.Speech in VB.net for Voice recognition Pin
Slickuser27-Nov-07 19:29
Slickuser27-Nov-07 19:29 
GeneralRe: System.Speech in VB.net for Voice recognition Pin
Dave Kreskowiak28-Nov-07 3:32
mveDave Kreskowiak28-Nov-07 3:32 
GeneralRe: System.Speech in VB.net for Voice recognition Pin
Slickuser28-Nov-07 11:08
Slickuser28-Nov-07 11:08 
QuestionDinamic Chart in Visual Basic 6 Pin
leaveu27-Nov-07 8:58
leaveu27-Nov-07 8:58 
AnswerRe: Dinamic Chart in Visual Basic 6 Pin
Dave Kreskowiak27-Nov-07 9:11
mveDave Kreskowiak27-Nov-07 9:11 
AnswerRe: Dinamic Chart in Visual Basic 6 Pin
ChandraRam27-Nov-07 22:39
ChandraRam27-Nov-07 22:39 
QuestionResize CrystalReportViewer Control (VB.Net 2003) Pin
paulkeys27-Nov-07 8:10
paulkeys27-Nov-07 8:10 
AnswerRe: Resize CrystalReportViewer Control (VB.Net 2003) Pin
Dave Kreskowiak27-Nov-07 8:36
mveDave Kreskowiak27-Nov-07 8:36 
GeneralRe: Resize CrystalReportViewer Control (VB.Net 2003) Pin
paulkeys27-Nov-07 8:49
paulkeys27-Nov-07 8:49 
GeneralRe: Resize CrystalReportViewer Control (VB.Net 2003) Pin
Dave Kreskowiak27-Nov-07 9:10
mveDave Kreskowiak27-Nov-07 9:10 
GeneralRe: Resize CrystalReportViewer Control (VB.Net 2003) Pin
paulkeys27-Nov-07 9:38
paulkeys27-Nov-07 9:38 
GeneralRe: Resize CrystalReportViewer Control (VB.Net 2003) Pin
Dave Kreskowiak27-Nov-07 9:57
mveDave Kreskowiak27-Nov-07 9:57 
QuestionIExtender - Getting Property to be Visible at Run-Time [modified] Pin
nlarson1127-Nov-07 7:52
nlarson1127-Nov-07 7:52 
AnswerRe: IExtender - Getting Property to be Visible at Run-Time Pin
Dave Kreskowiak27-Nov-07 8:28
mveDave Kreskowiak27-Nov-07 8:28 
GeneralRe: IExtender - Getting Property to be Visible at Run-Time Pin
nlarson1127-Nov-07 8:33
nlarson1127-Nov-07 8:33 

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.