So:
Spoiler anzeigen
[autoit]
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Global $voice = ObjCreate("Sapi.SpVoice")
[/autoit] [autoit][/autoit] [autoit]#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("SpeakMaster2009", 633, 447, 193, 125)
$Edit1 = GUICtrlCreateEdit("", 112, 64, 321, 169)
$Button1 = GUICtrlCreateButton("Sprechen", 192, 256, 161, 73, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Speak(GUICtrlRead($Edit1),0.5,100)
EndSwitch
WEnd
Func Speak($Text, $Rate, $Vol)
$voice.Rate = $Rate
$voice.Volume = $Vol
$voice.Speak ($Text)
EndFunc;==>Speak