ab2ae
asked on
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.IAgentCtlChar acter
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(agentI D) '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.T ext)
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??
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.IAgentCtlChar
Dim agent_location As String = "c:\windows\msagent\chars\
AxAgent1.Characters.Load("
'Set current character to Peedy and show it
agentID = "Peedy"
character = AxAgent1.Characters(agentI
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.T
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??
ASKER
rfgkev,
I dont want the AgentObjects.IAgentCtlChar acter as a form control i need AxAgentObjects.AxAgent as a form control, it is a man with a hat on, an agent
I dont want the AgentObjects.IAgentCtlChar
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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'
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'
Private character As NEW AgentObjects.IAgentCtlChar
then in form load or decleration
form.Controls.Add(characte