About
You can also use SmartButler to add text-to-speech capabilities to your program or script.
SmartButler is a COM-object, so you can access its methods and properties from any programming language compatible with COM and Automation, such as:
C++, Delphi, Visual Basic, VBScript, JScript etc.
^ top
Scripts
Hello world! (JScript, 0.2 KB)
- Classic "Hello world!" sample
Read random string from a text file (JScript, 2 KB)
- This script reads random lines from a text file. Path to a text file is required (as Execute action parameter).
Current time (JScript, 2.79 KB)
- This script is designed to be run from scheduling application to announce the current time
in intervals as specified by the scheduling application or other event(s). Developed by Anthony Bautista Jr. (www.agosis.com).
To Use:
1) Save this script / text to a file with the .js extension (such as time.js) and initialize the script by single or double clicking it. The current time should be read by the SmartButler program.
2) Copy the file to a location where the 'run as' user will have read & execute permission (perhaps %USERPROFILE%\Application Data\).
3) Usually accessible through your control panel, create a scheduled task and specify your schedule as needed (A typical work schedule would be to start it at 8:00AM and end after 8 or 9 hours). You may need to select a dummy program if creating the task through the wizard and then go back and edit the wizard OR don't use the wizard. Apparently the wizard is configured to only see windows program files and will not se the .js extension of this script file.
4) Save the schedule and test by right clicking the task and choose "Run" from the menu.
5) Enjoy!
SendKeys (JScript, 0.2 KB)
- Sends one or more keystrokes to the active window (as if typed on the keyboard). You can specify multiple keystrokes as script parameters (space separated).
Can be used as a replacement for "Press Key" action in voice commands.
See more info about keystrokes
at
MSDN Online.
Check mail (JScript, 9 KB)
- Checks email accounts specified in SmartButler's settings.
You can assign this script to a voice command
(for example "Check my mail" etc).
Microsoft Outlook Express email reader (JScript, 2 KB)
- Reads selected email message.
You can assign this script to a voice command
(for example "Read email message" etc).
Tested with Outlook Express 6.00.2900.2180 on English Windows XP Professional Service Pack 2
Winamp control (JScript, 3 KB)
- With this script you can control
Winamp via voice.
You can add new voice commands in SmartButler's "Settings" /
"Voice commands".
For example:
Voice command "Winamp play", Execute
"winamp_control.js", Parameter "play"
Voice command "Winamp stop", Execute
"winamp_control.js", Parameter "stop"
Voice command "Winamp pause", Execute
"winamp_control.js", Parameter "pause"
Voice command "Winamp next song", Execute
"winamp_control.js", Parameter "next"
Voice command "Winamp previous song", Execute
"winamp_control.js", Parameter "prev"
Voice command "Winamp fade", Execute
"winamp_control.js", Parameter "fade"
Voice command "Winamp mute", Execute
"winamp_control.js", Parameter "mute"
Voice command "Winamp max volume", Execute
"winamp_control.js", Parameter "loud"
Voice command "Winamp quiet", Execute
"winamp_control.js", Parameter "quiet"
Requires SmartButler v1.16.010 or later installed.
Windows Media Player 10 control (JScript, 3 KB)
- With this script you can control
Windows Media Player 10 via voice.
You can add new voice commands in SmartButler's "Settings" /
"Voice commands".
For example:
Voice command "Play (or pause) music", Execute
"wmp_control.js", Parameter "play" (or "pause")
Voice command "Stop music", Execute
"wmp_control.js", Parameter "stop"
Voice command "Pause pause", Execute
"wmp_control.js", Parameter "pause"
Voice command "Play next song", Execute
"wmp_control.js", Parameter "next"
Voice command "Play previous song", Execute
"wmp_control.js", Parameter "prev"
Voice command "Mute music", Execute
"wmp_control.js", Parameter "mute"
Voice command "Increase playback volume", Execute
"wmp_control.js", Parameter "loud"
Voice command "Decrease playback volume", Execute
"wmp_control.js", Parameter "quiet"
Voice command "Increase playback speed", Execute
"wmp_control.js", Parameter "slow"
Voice command "Decrease playback speed", Execute
"wmp_control.js", Parameter "fast"
Voice command "Play music at normal speed", Execute
"wmp_control.js", Parameter "normal"
Requires SmartButler v1.16.010 or later installed.
^ top
C++/MFC code
Visual C++ (MFC) client program (62 KB)
- This is a Microsoft Visual C++ 7.1 (Visual Studio .NET 2003) project.