473,725 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.IA gentCtlCharacte rEx
Const DATAPATH_1 As String = "genie.acs"

Private Sub Form1_Load(ByVa l sender As System.Object, _
ByVal e As System.EventArg s) Handles MyBase.Load

AxAgent1.Charac ters.Load("Geni e", DATAPATH_1)
myGenie = AxAgent1.Charac ters("Genie")
myGenie.Languag eID = &H409S

myGenie.MoveTo( CShort(Me.Locat ion.X + 750), _
CShort(Me.Locat ion.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_Comman d(ByVal sender As Object, _
ByVal e As AxAgentObjects. _AgentEvents_Co mmandEvent) _
Handles AxAgent1.Comman d

Dim myCommand As AgentObjects.IA gentCtlUserInpu t = _
CType(e.userInp ut, AgentObjects.IA gentCtlUserInpu t)

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 2106

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

Similar topics

0
352
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 in vb.net i get the following message: "One or more types in the assembly unable to load".
5
5393
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
10724
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? Thanks, Ken Lemieux
0
1519
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 http://www.c-sharpcorner.com//Code/2004/May/SpeechRecognition.asp http://www.microsoft.com/MSAGENT/default.asp My problem is that my MSAgent character is speaking, and the text being speaken is acting as an input for the grammar of the voice recognition event.
1
1581
by: Roberto Sandro Alvarez | last post by:
does somebody know how to use the msagent in ASP.NET with VB?
1
2399
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 is i cant take input in my program from a microphone. suppose i say "one" in microphone then my program recognize the word and give output through printer port. i can give output but input is a problem for the time being. if u wish, i can post my...
3
9628
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 koroake however i have been unable to get help on such a topic please help me is it possible to get some sort of script that just lets me talk through a microphone and come out of the speakers? thanks in advance i would prefer this to be a code...
0
4913
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 am attaching my code below. package
1
1945
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 working. Can somebody get me started with a simple Form with a textbox and a button where if the user clicks the button, Merlin will popup and say whatever is in the text box? I'll expand from there. Thanks a bunch.
0
8889
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9116
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8099
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.