Platforms to show: All Mac Windows Linux Cross-Platform
/Win/Windows Speech/Windows Speech Test
Required plugins for this example: MBS Win Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/Windows Speech/Windows Speech Test
This example is the version from Fri, 17th May 2012.
Project "Windows Speech Test.xojo_binary_project"
Class Window1 Inherits Window
Binding enablingBinder
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action()
dim s as String
s= EditField1.text
w.Speak s
End EventHandler
End Control
Control EditField1 Inherits TextArea
ControlInstance EditField1 Inherits TextArea
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action()
w.Pause
End EventHandler
End Control
Control PushButton3 Inherits PushButton
ControlInstance PushButton3 Inherits PushButton
EventHandler Sub Action()
w.Resume
End EventHandler
End Control
Control ListBox1 Inherits ListBox
ControlInstance ListBox1 Inherits ListBox
End Control
Control PushButton4 Inherits PushButton
ControlInstance PushButton4 Inherits PushButton
EventHandler Sub Action()
dim v as WinVoiceMBS
v=voices(ListBox1.ListIndex)
w.Voice=v
End EventHandler
End Control
EventHandler Sub Open()
dim v as WinVoiceMBS
w=new WinSpeechMBS
if w.Handle=0 then
MsgBox "Speech is not installed!"
quit
end if
ListBox1.AddRow "Default"
if w.ListVoices then
v=w.NextVoice
while v<>nil
ListBox1.AddRow v.Description
voices.Append v
v=w.NextVoice
wend
end if
End EventHandler
Property Protected voices(0) As winvoiceMBS
Property Protected w As winspeechMBS
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project
See also:
- /Win/Windows CPU Usage
- /Win/Windows DDE/Programmanger Groups
- /Win/Windows Monitors
- /Win/Windows Pipe
- /Win/Windows QOS/Windows QOS with UDPSocket
- /Win/Windows Shortcuts/Resolve Shortcut
- /Win/Windows Speech/Windows Speech with 4 windows
- /Win/Windows Switch Printers for printing
- /Win/Windows System Tray with Icon file/Windows System Tray with Icon file
- /Win/Windows Taskbar State
The items on this page are in the following plugins: MBS Win Plugin.