1. ServalKatze
  2. CaptainSays

Overview

HTTPS SSH

dBBBP dBBBBBb dBBBBBb dBBBBBBP dBBBBBb dBP dBBBBb
BB dB' BB dBP

dBP dBP BB dBBBP' dBP dBP BB dBP dBP dBP

dBP dBP BB dBP dBP dBP BB dBP dBP dBP

dBBBBP dBBBBBBB dBP dBP dBBBBBBB dBP dBP dBP

.dBBBBP dBBBBBb dBP dBP.dBBBBP BP BB dBP BP `BBBBb dBP BB dBP `BBBBb

dBP dBP BB dBP dBP

dBBBBP' dBBBBBBB dBP dBBBBP'

================================== http://www.network-science.de/ascii/

CaptainSays (by zahmeKatzen) Version: 0.9 License: GPL v3

http://zahmekatzen.net/captainsays.html https://bitbucket.org/ServalKatze/captainsays

Prerequisites

CaptainSays only works on Windows 7.

Setup the built-in voice control software of Windows 7. It should be available in the control center under "Accessbility" -> "Use PC without mouse or keyboard" -> "Use voice recognition". Something like that.

Install .Net framework 4.0 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en

Install the Windows 7 SDK http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6b6c21d2-2006-4afa-9702-529fa782d63b&displaylang=en

If you're using the compiled version (the .exe) you're good to go now.

However, if you're using the source version you'll also need: - Python 2.7 with Tkinter

http://python.org/download/

Quickstart

Run the launcher. (run_launcher.exe) Select a profile. Click "Launch" to launch voice control with the selected profile Click "Edit" to tweak the profile or create new ones. Click "HTML view" to view an HTML cheat sheet of the profile Click "Quit" to quit the launcher

Introduction

Thank you for downloading CaptainSays.

CaptainSays allows you to bind one or more keystrokes to a voice command, also called a "phrase" in CaptainSays.

It was primarily intended for games. Base profiles for Star Trek Online and Star Trek Bridge Commander are included.

WARNING: This program is still under development, quite buggy and lacking
features.

Be sure NOT to bind any keys that could harm your gaming or computing experience and THOROUGHLY test a new profile before using it in-game.

The voice recognition is faaaaar from perfect, so please make sure you've taken any neccessary precautions. E.g. if you're using it in a game, DON'T put valuable consumable items in your shortcut bar as they may be used accidentally.

I'd suggest to go through all you phrases (conveniently open in your webbrowser next to the CaptainSays console) and see if they're properly recognized BEFORE you try it in-game.

Longer commands are easier recognized than short ones. Also, if you bind several similar monosyllabic phrases to different keystrokes (mine, nine, fine, line, ..) you're just asking for trouble. :D

HowTo use the Editor

Run the launcher. Select a profile ("default.xml" is the most simple). Click "Edit".

If you want to create a new profile click on File->New and select a base template. The other menu options should be self-explanatory.

The "Profile" tab contains the general options for this profile.

"Profilename":
The name of the profile.
"Type":
Doesn't really do anything yet.
"Keypress_duration":
Sets how long each key will be held down. This may be required for some applications or games.
"Greeting":
When you launch CaptainSays' voice recognition mode the Windows Speech generator will say this greeting. Press the "Play"-button next to it to test how it sounds.
"Quit_phrase":
This phrase will be used to quit CaptainSays via voice command.

Next to the "Profile" tab should be the tab(s) with the voice commands.

The left part of the tab is a list of all command names. Click on a command name to select it. Use the "+" and "-" buttons on the bottom of the list to add or remove commands.

The right part contains the details of the currently selected command.

A command has a name ("cname"), one or more phrases ("phrase") and one or more keystrokes ("keys").

Each phrase will trigger the keystrokes of the command. Phrases should be in lowercase and WITHOUT any punctuation.

The keystrokes will be executed from top to bottom, so

(keynames) (repeat) Shift_L + H 0 a 0 l 2 o 0

Would type "Hallo" if the command was executed in a text editor.

Note that repeat=2 means "press this twice", but repeat=0 and repeat=1 both mean "press once".

Press "Add phrase" / "Add key" to add a phrase / keystroke. Press on the "Grab" key next to a key to change it. A tiny Keygrabber window will appear. Make sure that this window is currently selected and press the desired new key for that command.

You can savely edit the keynames if you don't like them.

HowTo create your own template

Create a profile in the Editor. Save your profile via "Save As.." in the "template" folder. It should now appear under File -> New -> [template list]

Pronounciation Issues

Apparently the voice recognition software of Windows assumes that you speak the language of your Windows version, so you may have to adapt some phrases to the way you speak.

Examples: 'make it so' -> 'maykitso' 'ensign lomar -> 'ennsign lomar'

Otherwise you'd have to speak with a very, very silly accent..

Key recognition issues

Some applications and games may not recognize all keys.

Remap your in-game keyboard shortcuts if neccessary.

STAR TREK ONLINE Notes

"Pressing" the Up, Down, Left and Right arrow keys via CaptainSays equals "pressing" 8, 2, 4, 6.

Therefore, if you want to use the default STO profile please remap

Reroute Shields Forward -> SHIFT + 8 Reroute Shields Right -> SHIFT + 6 Reroute Shields Left -> SHIFT + 4 Reroute Shields Rear -> SHIFT + 5

within Star Trek Online.

BRIDGE COMMANDER Notes

CaptainSays' NUMPADkeys don't work in Bridge Commander, so please remap under "Controls" -> "Menu"

"1st menu option" "2nd menu option" ...

to "SHIFT+1", "SHIFT+2", ... etc.

It will show up as "!", "@", etc. but that's ok.


CaptainSays could not have been done without these projects:

effbot.org - Articles and code snippets about Tkinter

Link: http://effbot.org/tkinterbook/

SimonSays - Python based voice control for windows

Author: Rob Cherry Link: http://code.google.com/p/simonsays/ License: New BSD License

Copyright (c) 2010, Rob Cherry All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

pyxml2obj

Author: Matsumoto Taichi Link: https://github.com/taichino/pyxml2obj/ PyPi: http://pypi.python.org/pypi/pyxml2obj/ License: MIT License

Copyright (C) 2010 Matsumoto Taichi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.