Programming Help:Speak Method
Appearance
| Speak Method | |
|---|---|
| Has the character speak the specified text. |
|
| Introduced in version: | Microsoft Agent 1.5 |
| Removed in version: | Still in use |
| Allowed values: | Text (optional) Url (optional) |
| Default value: | False (Fast) |
Parts
| Part | Description |
|---|---|
| Text | Optional. A string that specifies what the character says. |
| Url | Optional. A string expression specifying the specification for an audio file. The specification can be a file specification or URL. |
Examples
Inline example (VB.NET)
Peedy.Speak("Welcome to the Microsoft Agent Scripting Helper!")
Advanced example (VB.NET)
' This code shows the various ways a character can speak.
Peedy.Speak("This is my normal speech!")
Peedy.Speak("\Chr=""Whisper""\This is me whispering!")
Peedy.Speak("\Chr=""Monotone""\This is my monotone voice!")
Peedy.Speak("Check out the speech tag page for more information on these tags!")
Peedy.Play("Pleased")
Remarks
The character needs to have a TTS voice set to read aloud output. Otherwise, the text will be displayed silently in the word balloon.