Using MS Agent

Hi Experts,

I am trying to make an agent appear and speak on a form. I have downloaded the following:

1. microsoft speech recognition engine  
2. microsoft text to speech engine  
3. microsoft speech API  

I have the following code:

Private character As AgentObjects.IAgentCtlCharacter

Dim agent_location As String = "c:\windows\msagent\chars\"

        AxAgent1.Characters.Load("Peedy", agent_location & "Peedy.acs") 'problem here
        'Set current character to Peedy and show it
        agentID = "Peedy"
        character = AxAgent1.Characters(agentID) 'problem here

once the agent character has been created, i want to make it appear and speak on different button clicks

button1 - character.Show(0)
button2 - character.Speak(TextBox1.Text)

The problem: AxAgent1 is a control object, which i dont know how to get onto the form. It is of type AxAgentObjects.AxAgent. I have tried 'Project' 'Add reference' and cant find this.

How do i get this control on the form??

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

just a guess but try

Private character As NEW AgentObjects.IAgentCtlCharacter

then in form load or decleration

ab2aeAuthor Commented:

I dont want the AgentObjects.IAgentCtlCharacter as a form control i need AxAgentObjects.AxAgent as a form control, it is a man with a hat on, an agent

right click on your toolbox, Add/Remove items

should appear under the COM Components tab i think

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ab2aeAuthor Commented:
Using Visual Studio 2005

Import references below:

‘Microsoft Direct Text-to-Speech’
‘Microsoft Agent Control 2.0’

Then right-click on toolbox 'Choose Items..' then 'COM Components' tab then 'Microsoft Agent Control 2.0'
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.