VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Make Characters Talk MS Agent

by Mike Miller (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (1 Votes)

It will make a character of your choice(many to download) talk.

Inputs
The MS Agent Character
Assumes
Make Sure you have MS Agent installed and TruVoice, you can get these from Microsoft's Website at http://msdn.microsoft.com/workshop/imedia/agent/default.asp. This will allow you to make the characters talk. After you got the files, just insert the ms agent active x control and you are on your way. All you got to do then is insert the code and download whatever characters you want to use, for example a cool parrot, a butler, surfmonkey and much more!
Code Returns
Voice

Rate Make Characters Talk MS Agent

Dim Genie As IAgentCtlCharacterEx
Const DATAPATH = "genie.acs"

Private Sub Form_Load()
  Agent1.Characters.Load "Genie", DATAPATH
  Set Genie = Agent1.Characters("Genie")
  Genie.LanguageID = &H409
  TextBox.Text = "Hello World!"
End Sub
Private Sub Button_Click()
  Genie.Show
  Genie.Speak TextBox.Text
  Genie.Hide
End Sub

Download this snippet    Add to My Saved Code

Make Characters Talk MS Agent Comments

No comments have been posted about Make Characters Talk MS Agent. Why not be the first to post a comment about Make Characters Talk MS Agent.

Post your comment

Subject:
Message:
0/1000 characters