Author Topic: Control via voice  (Read 927 times)

0 Members and 1 Guest are viewing this topic.

LibSpit

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
Control via voice
« on: April 10, 2012, 11:06:40 AM »
http://mbx.streetofeyes.com/index.php/topic,2641.0.html

Ok I haven't actually tried any of this out for myself as I don't have a headset mic, but it all sounded so cool I thought i would add it here :-D

If anyone does try it out please post it would be cool to hear about it hehe!

darthdj31

  • Regular
  • *
    • View Profile
  • Faction: Rhodok
  • MP nick: 1st_NKVD_Rfl_darthdj31
  • WBNW
Re: Control via voice
« Reply #1 on: April 14, 2012, 06:33:14 AM »
I prob wont try this out cuz i am like no techie, but someone should put this in a mod merger kit to make it easier lol for people like me.
Hi there. I guess.

LibSpit

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
Re: Control via voice
« Reply #2 on: April 16, 2012, 07:46:26 AM »
Ok so what you need to make this work is: (note this is for windows 7)

A Mic
Windows Speech Recognition (found in~: Start menu/All Programs/accesories/ease of accesss/windows speech recognition)
and the GlovePie Software found here:
http://glovepie.org/lpghjkwer.php

You do not have to modify MnB at all, basically it works like this.

Windows speech recognition is how your computer identifies the vocal commands, basically if you say the word 'archers' WSR(Windows Speech Recogntion) recognises your voice and converts that sound into the text 'archers'. GlovePIE is the 'bridge' between WSR and your keyboard. when WSR hears 'archers' GlovePIE takes that and turns it into 'press 2' on the keyboard.

By adding the code from the above link into glovePIE and saving that code and running it (A big run button is in GlovePIE) in the background along with WSR while you play warband, this will allow you to do various things via voice command :-D (I will try and add a link to my GlovePIE Code file that you can just add to the GlovePIE save folder when I have it working.)

I am currently having a little trouble with using WSR to recognise the words, I am about to experiment with training WSR and adding in my own recorded voice commands into WSR's recognition.

I have so far been able to select 'archers' as a group and also add my own custom command 'up' which nudges the screen up on the world map, but the one pair of custom commands I really want to see if I can add and make work is 'EYAR' and 'WOAH' to make my Horsey speed up and slow down using my voice :-D muahahaha.

Voice commands could be really fun when the next SoDW version is released with the new voices element. Think of it, you tell your archers to 'Hold' and then your right hand man yells 'STEADY LADS, WAIT FOR THEM TO COME!' or some other equally colloquial phrase :-D

EDIT:
Well I discovered the problem with WSR I had to add an input boost of 10db on my mic so that WSR could hear me properly, before that I was having to swallow my mic in order to be heard. It seems to be working like a dream :-D I have successfully ordered my archers to follow me and I can make my horse gallop by shouting 'eyah' in a typically horse riding hero fashion!
« Last Edit: April 16, 2012, 08:54:43 AM by LibSpit »

Wu-long

  • Sergeant Knight at Arms
  • *
    • View Profile
  • Faction: Vaegir
  • MP nick: Wulong
  • WBWF&SNW
Re: Control via voice
« Reply #3 on: April 17, 2012, 01:47:57 PM »
Would you be so kind to make a already put together version for me(us)? xD

LibSpit

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
Re: Control via voice
« Reply #4 on: April 17, 2012, 02:19:58 PM »
Well it can't really get anymore put together. I will post the file that I use eventually.

The software is seperate and need to be downloaded from the link I added. I don't want to put up the software as that is someone elses property (but free :-D)

So you download and install that GlovePIE program.

here is my coding file:
http://www.freefilehosting.net/mnbvoice

you add that into the folder in the glovePIE Folder called Voicescripts, then run GlovePIE open the file, (like loading any file into a program) and then click 'run' in GlovePIE

it basically runs in the background seperately from MnB so you start GlovePIE and WSR (Windows 7) load and run the code file 'mnbvoice' then start MnB and SHAZZAM!!

anymore help you need just ask :-) I tell you it is worth the effort I am having so much fun!!

I am so excited to get the formations in SOD so that I can program a load of formation commands too :-)