473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How in VB .NET to command MSAgent on microphone?

Hello. The following program does not work for me:
1. We load components of Microsoft Agent and disconnect a computer from
Internet.
2. In VB .NET we create the project, appears Form1.
3. On Form1 we place Microsoft Agent Control 2.0 with name AxAgent1.
4. We double-click on Form1 and in the appeared procedure write the
following code:

Dim myGenie As AgentObjects.IAgentCtlCharacterEx
Const DATAPATH_1 As String = "genie.acs"

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

AxAgent1.Characters.Load("Genie", DATAPATH_1)
myGenie = AxAgent1.Characters("Genie")
myGenie.LanguageID = &H409S

myGenie.MoveTo(CShort(Me.Location.X + 750), _
CShort(Me.Location.Y + 250))

myGenie.Show()
End Sub

5. In a window of the editor of Form1.vb and in window Class Name, we choose
AxAgent1, in window Method Name choose Command and in the appeared procedure
write the following code:

Private Sub AxAgent1_Command(ByVal sender As Object, _
ByVal e As AxAgentObjects._AgentEvents_CommandEvent) _
Handles AxAgent1.Command

Dim myCommand As AgentObjects.IAgentCtlUserInput = _
CType(e.userInput, AgentObjects.IAgentCtlUserInput)

If myCommand.Name = "Hide" Then

myGenie.Hide()

End If
End Sub

However at start of this program, after pressing key Scroll Lock and
pronouncing in a microphone of command "Hide", Genie does not disappear and
does not react to my commands a voice.
In known example "Peedy's Pizza Palace" the parrot reacts to my commands
from a microphone, and therefore "Speech recognition engines" and a
microphone at me work.

Inform, please, where in my code a mistake, that character carried out my
commands a voice?

Beforehand thanks for your answer. Best regards, Dr. V.A. Zharkov. Moscow,
Russia.

Nov 20 '05 #1
0 2087

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil | last post by:
Hi, Apologies if this is the wrong group. I have been trying to use MSAgent in .Net, I can use it successfully in vb6 (on the same machine), but when attempting to add the control to a form...
5
by: Tangerine | last post by:
Hello! Can someone tell me how to make a function that returns the sound frequency recorded by the microphone in the last moment? I use Dev-C++ and I'm a total newbie if it's important.
1
by: Ken Lemieux | last post by:
It's my understanding in order to mute the pc microphone from c# requires DirectX 9. Could anyone confirm this for me, and provide examples or technicle refrences where it may be discussed? ...
0
by: Xarky | last post by:
Hi, I am writing an application making use of MSAgent and a dll for voice recognition. The dll & MSAgent are provided in the following links...
1
by: Roberto Sandro Alvarez | last post by:
does somebody know how to use the msagent in ASP.NET with VB?
1
by: rajibnsu | last post by:
Hi, this is abu syed khan again. i want to write a program in c# that takes input from microphone and then give output through printer port. i can give output through a printer port. but the problem...
3
by: Porkie999 | last post by:
hi i created a program in vb.net 2005 that is meant to allow microphone activity i.e you read the lyrics to a song on the screen and you are meant to be able to sing to it through a microphone like...
0
by: roopaloswal | last post by:
Hi All, I need to record audio captured from microphone to the local file system .Is it possible? I am trying to use NetConnect() to connect to local file system. But its throwing error. I...
1
by: =?Utf-8?B?RHZhbndpZw==?= | last post by:
Trying to get started programming MSAgent using Visual Basic 2008 Express. I have VB6 working code, but cannot figure out the new syntax for setting up the initial declarations to get MSAgent...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.