S9ilent's Vocal Control *29/03/2015*

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
mrxenon
Posts: 4
Joined: Wed, 14. Jun 06, 18:24

Post by mrxenon » Sun, 9. Aug 09, 04:09

It seems to run fine, but nothing happens :P
Uhm when there is only english recognition, why i can change german in a menu of ur program? But here are the steps how i started it.


1. Stark Voice Recnition.
2. I Say "Please Listen "
3. I start your program
4. I click on "Start recognition" (Reloading Grammar, Grammar Loaded
, doesnt know, if it matters)
5. I start X3:TC
6. Load saved data.
7. tryin' to use commands.... nothing happens. I just only hear the "beep" of the main vista program of voice recognition, when i say something, but he don't do anything, like he wouldnt understand me, and normally I dont have such bad english that it doesn't understand ANYTHING. There are the Word's 'What is'(on german) too. xD

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Sun, 9. Aug 09, 04:24

Changing languages in my menu, just changes it to spit out text files for the different versions of the game, English uses 44 and German uses... 49


Can I get you to
1. Start my program (SVC Beta.exe).
2. In WINDOWS' voice recognition pop up menu (The round thing, with the blue microphone button, and it says "Listening"), switch that to always on.
[ external image ]


3. In my program, under the settings menu, can you tick the "Full Output" option

4. Click Start Recognition (it'll say those 2 lines again, that's fine)

5. Say stuff (with out opening the game) (e.g. "All ships attack my target")
If it works, it should like sort of like this:
[ external image ]

If all you can see is just the "reloading grammar" "Grammar loaded", then it is not working.

mrxenon
Posts: 4
Joined: Wed, 14. Jun 06, 18:24

Post by mrxenon » Sun, 9. Aug 09, 11:22

Hey... i tried everything but it dont work :( I'm so unhappy! Is there any possibility to add English to Microsoft SPeech Recoginizion? Is there any possibility that I can use Nuance Dragon Naturally Speaking 10?

Hope you can help me because i really want to play with ur Script :wink:

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Sun, 9. Aug 09, 11:29

w.r.t Dragon- To put it simply, no.

English is always available with the speech recognition as far as I'm aware. But I don't have access to a vista machine right now (its out of the house) to play around with.

What part of is not working for you? Did you manage to get to step 5 in my above post? (i.e. did it show up with "Hyp: all ships attack my target" when you spoke into it?)

mrxenon
Posts: 4
Joined: Wed, 14. Jun 06, 18:24

Post by mrxenon » Sun, 9. Aug 09, 11:52

Yes i did step 5... i saied about 100x "all ships attack my target" but nothing happens

I found something.. i Have voice recognition v. 8.0 is that maybe the problem? When i click right on voice recognition windows and then info there is
Microsoft Windows
Version 6.0 (Build 6001: Service Pack 1)
Copyright blabla
Profil: Standartspeakprofil Modul: Microsoft-Speakrecogonition 8.0 for Windows (German - Germany) ( its in German on my COmputer xD i only translated it the best way I can)

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Wed, 19. Aug 09, 11:01

Hmm... sorry for the late reply, I didn't get the email notification that you had posted something.

@ Mr Xenon
Unfortunately I can't really help you much more :( (With out having a German machine to play with my self). I'm aware that Vista has Sapi 8+ but it should be backwards compatible. (At the very least, you can still download and install sapi 5.1/5.3, the links are on the first post)





@Everyone
Ok, the C# conversion is more or less completed.... (its not uploaded yet)
(I still haven't quite finished hotkeys yet... its oh so tedious...)

#1 biggest change is, you no longer need to use that excel sheet, there is a new option in the settings menu to bring up a nice GUI where you can edit rules/phrases.

#2, What is everyones' LEAST used key?
It occurs to me that I will have to get one key to use as a special character key
e.g. If you wanted to bind "escape" You would have to type like
$esc or #esc
Any way, that would mean that if you actually wanted to press $, then e, then s then c, it wouldn't let you... so what is your LEAST favourite key?

(Of course, I could just use multiple keys.. but then still, which are you two least favourite keys?)

Oh also, I'll opinions for least favourite keys for things like SHIFT/CTR/ALT


I pretty much freely use....

!@#$%^&*()




Right now I'm leaning towards
^ Left Control prefix
& Left Alt
* Right Alt
( Right Control
Simply because ^ is control, and its goes shift 6789

$ Shift Prefix

#xx Function prefix (forcing 2 x's, e.g. #01 for F1)

@ Numpad prefix



!xxxxx Special character prefix (specifically with 5 x's) e.g.:
!enter
!shift
!tabbb
!nente (numpad enter)
!esc

etc etc.









EITHER THAT

OR!!!!!
I just make you use the scan codes directly

http://msdn.microsoft.com/en-us/library ... S.85).aspx
...

Come to think of it... doing that would be the easiest way... ...
And eventually I'll use a sort of GUI click the key board sort of business

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Thu, 20. Aug 09, 03:17

Right, not much time gtg
http://members.optuszoo.com.au/whyistha ... _gamma.zip
svc gamma, gamma test version
... ok the name is missleading...
The last version was named beta, so this is named gamma, but the last version had passed its test phase, where as this is in a test phase

Put it in a DIFFERENT directory to the beta if you have it
Please test and find bugs or what ever in it
Or better yet, just delete the beta if you have it (You can always re-download it if you really want...)



Note 2, if you have a phrase, and stuff nested in the phrase, it will do the nested items, and then the phrase. You are recommended to not put text in phrases if they have sub elements, as it gets v confusing and doesn't look pretty.
e.g.
+ P (world)
-> + P (hello)
will do hello world

Note 3... hrm... ToDo: Put in an error check for two of the same phrase name (cause failure in loading the grammar)

note 4: todo context menu, for linked rules, select

hm... note 5: Oh yes, a bold rule means its a top level rule, i.e. the START of a voice recognition pattern.
purple phrases means that they have associated values
purple rules mean they have associated hotkeys
And there is currently no way to tell if a phrase has an associated script
(I'm considering using other colours to denote if a rule has a hotkey, has a script, has a hotkey & script)


note 7: the special charachter prefix essential is like using SHIFT/num lock.
e.g.
Q 10 <-- from the website

so if you wanted lowercase q, you would send 10, uppercase would be E010 (prefix + q)
Note, S i.e. capitol s, is not the same as shift + s (and is not the same as shift + S). I'm not to sure which does the game use to capture the save hotkey, but I'd imagine that it may actually be neither (i think it might be shift down, S, S up, shift up)
In any case, I can't test it now,

gl hf, post comments/bugs etc.
(And if anyone feels like making some better little 16x16 icons (bitmaps) :P)

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Sat, 22. Aug 09, 06:12

Ok, Gamma Version is now at full release. Documentation is done and bugs have been ironed out.




Updates are links are on the main post of this thread.

dalibor
Posts: 7
Joined: Thu, 19. Mar 09, 07:13
x3tc

Post by dalibor » Wed, 9. Sep 09, 21:22

great idea for x3. I'm having just one problem and can't work out why. The voice control seems to want to work but oonly flashes the menu's at me instead of displaying them. For example I say "open properties" and the properties menu pops up then closes really quickly. Would you be able to tell me what is going on?

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Wed, 9. Sep 09, 23:47

Hrm... that one is a little odd... It's only sending the key down then key up, but as to why its closing....

I have a few theories but I'll have to test it (I'll try putting a wait in between the key down and key up and some other things) but I won't be able to do it till later today/tomorrow

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Fri, 11. Sep 09, 05:04

Ok I've fixed the instant open-closing hotkeys

(I made it key-down, sleep(0), key-up) If problems still persist, tell me and I'll increase the sleep to something larger.

I've re uploaded it, and the links are on the original post.

User avatar
F4QuArL
Posts: 779
Joined: Mon, 26. Dec 05, 23:48
x4

Post by F4QuArL » Sun, 13. Sep 09, 15:22

Hello S9ilent,

I have a problem installing our SVC.

I´ve Office 2003 Professional and in the discription say that Voice Recognition is kompatible to this Office.

But when I inser the CD and try to add Speech it isn´t under Alternative User Input.

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Sun, 13. Sep 09, 23:15

Hrm... I'm not to sure where it is in the 2003 setup, but try this:
http://www.youtube.com/watch?v=F3GYTdKSFHU



If you still can't find it thou, you can download it from the Microsoft website
link
(If the link doesn't work, just google "sapi 5.1")

The file your after is this one: SpeechSDK51.exe (dev package version)
Last edited by s9ilent on Mon, 14. Sep 09, 00:11, edited 1 time in total.

User avatar
F4QuArL
Posts: 779
Joined: Mon, 26. Dec 05, 23:48
x4

Post by F4QuArL » Mon, 14. Sep 09, 00:00

Oky the tutorial is nice but I still can´t see a plus to open by Alternative User Input, its oky than I´ve tryed the other way.

So I downloaded SpeechSDK51MSM.exe and I´ve got a exe that open and says Unzip.
But where to unzip it the folder that it said me too or an other ?

/edit: do I need SAPI 5.1 ? or does this SpeechSDK51MSM.exe work without it ?

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Mon, 14. Sep 09, 00:07

The SDK51 is the developers tools, and you just install that where ever.

The other one is the SDK51MS is a re distributable copy, hrm... I don't know how to use that one actually... yeh just install the SDK51 (with OUT the MSM)

Jashashunter
Posts: 117
Joined: Tue, 31. Jan 06, 06:13
x4

Post by Jashashunter » Sun, 27. Sep 09, 09:53

Just installed this and I am getting the same problem as the other poster. My menus open and close instantly. Any Ideas??

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Sun, 27. Sep 09, 09:57

-Gah-

I left in a line of debug code (I was testing the escape/close menu hotkey) hence why it was always closing it self again

The patched version has been uploaded

szkkteam
Posts: 14
Joined: Sun, 18. Oct 09, 01:07

Post by szkkteam » Sun, 18. Oct 09, 02:26

Hello s9ilent

I downloaded the mod, but it won't work. I have windows xp and i dowloaded the necessery stuffs for the voice recognition. I have a pure X3 only 2.5 patch installed. I set up the mod, i didn't installed it into the game directory as the description said, so looks like working ... when i say something like "computer open galaxy map" the program show up the words correctly and in the game is working too. I can open/close galaxy map sector map .. etc. BUT!
Only that voice commands works whos doing this with a hotkey. Everything else dosen't working like Wing commands, target commands, etc. And i don't know why. i checked it in the game script editor and the scripts are there but the command looks like dosen't making them to work. eg.: "Blue wing follow me" and nothing happend ...
And the last thing .. i tried to customize the commands ... like full speed, stop speed, auto pilot commands, etc ... but i don't know how to bind SHIFT+ keybind in the gui. It's using scan codes but i don't know how to define SHIFT+ anything ... , i hope you can help me
It's very important for the Eject, autopilot etc commands


At last, sorry for my english, i hope you understand me:)
Please help as you soon can ... it's very important

kissmejulie
Posts: 6
Joined: Wed, 6. Jan 10, 18:12

Post by kissmejulie » Wed, 6. Jan 10, 18:59

S9ilent, great work and thank you for the best mod ever.
I have it working great activating hot keys.
the only thing that is not happening for me is running scripts.
a sample out put


Reloading Grammar
Grammar Loaded

--------- Starting SVC ---------
Reloading Grammar
Grammar Loaded

Loading Hotkeys
End of Hotkeys Reached

Hyp: all ships
Hyp: all ships attack
Hyp: all ships attack my
Hyp: all ships attack my target

Result: all ships attack my target
Properties count: 2
<t id="50">gnormcom</t>
<t id="51">10</t>
<t id="52">2</t>
<t id="53">generictargb</t>
<t id="54">1</t>
<t id="55">all</t>
<t id="56">commands</t>
<t id="57">0</t>
<t id="58">all</t>
<t id="59">ships</t>
<t id="60">attack</t>
Hyp: Alpha
Hyp: Alpha one
Hyp: Alpha one attack
Hyp: Alpha one attack my
Hyp: Alpha one attack my target

Result: Alpha one attack my target
Properties count: 3
<t id="50">normcom</t>
<t id="51">13</t>
<t id="52">3</t>
<t id="53">shortphonetics</t>
<t id="54">0</t>
<t id="55">Alpha</t>
<t id="56">numbers</t>
<t id="57">1</t>
<t id="58">Alpha</t>
<t id="59">commands</t>
<t id="60">0</t>
<t id="61">Alpha</t>
<t id="62">one</t>
<t id="63">attack</t>
Hyp: Alpha one dock
Hyp: Alpha one dock at my target

Result: Alpha one dock at my target
Properties count: 3
<t id="50">normcom</t>
<t id="51">14</t>
<t id="52">3</t>
<t id="53">shortphonetics</t>
<t id="54">0</t>
<t id="55">Alpha</t>
<t id="56">numbers</t>
<t id="57">1</t>
<t id="58">Alpha</t>
<t id="59">commands</t>
<t id="60">4</t>
<t id="61">Alpha</t>
<t id="62">one</t>
<t id="63">dock</t>
<t id="64">at</t>


As you can see there no
Rule: ????, ect. ect. ect.
Line.

If it matters I am running windows 7 and had to install the additional dlls

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Wed, 6. Jan 10, 21:25

Firstly, with out going into too much details, my ability to debug the program is 0 at the moment (No mic, no software etc.). But at a glance, the
"<t id="50">normcom</t> " (in the last example)
Is in fact a rule name, and it is recognizing the result. So:


Is the script editor enabled in your game? (Have you done the change player name to Thereshallbewings, at some point in your game?)


If still not resolved.. My last file upload was on the 11/09/2009, if you've downloaded the program before that date then I suggest you re download it. (I believe I had forgotten to put in the script files in the second last upload)



If you it is still not resolved
Could you check your game folder\t e.g.
C:\Program Files (x86)\EGOSOFT\X3 Terran Conflict\t
Is there a tfile there called... 7742-L044.xml there? (Or L0__ for other languages) The program should be automatically generating this file every second when the recognition is running. (so check the date last modified to be sure)

And check the game\scripts folder for...
Well... in the SVC program folder, there are 7 script files in the svcscripts folder, and a whole bunch in in the scripts folder. If you copy them all to the game\scripts folder (just the files, not the whole folders).
The program copy them script files automatically on open, but I suspect that security issues are capable of blocking it.



And lastly, just in case, all your examples use an alpha on "do this", have you designated alpha one at some stage? (e.g. targeted a combat able ship -fight software mk1/2- and said computer designate alpha one)

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”