Speech in about 5 lines of code

Take command of air and naval assets from post-WW2 to the near future in tactical and operational scale, complete with historical and hypothetical scenarios and an integrated scenario editor.

Moderator: MOD_Command

Post Reply
sluggy2010
Posts: 122
Joined: Wed Oct 02, 2013 1:09 am

Speech in about 5 lines of code

Post by sluggy2010 »

Hi Dev's -

Just had a thought on how to add speech for the log window - easy as!

Can we have an option in the config menu to run an external command with the Message Log Window text on a per line basis as the entries are generated?( and an option to knock off the timestamp )

If so we can all use eSpeak - from Sourceforge - to get speech out of CMANO, or send the logs to any number of other funky code - very simple change - very big plus.

I've tried it with the log files and its passable output, but would be better done from within the code.

Of course if someone fancies knocking up some Java code in the interim ( Non-locking/ nonblocking ) on the log files that would work too - unix equivalent of tail -f - Baloogan?

Sluggy




sluggy2010
Posts: 122
Joined: Wed Oct 02, 2013 1:09 am

RE: Speech in about 5 lines of code *updated

Post by sluggy2010 »

*Updated* File Removed as SeaHag now released search for the other post.


Got it working.[X(]

Its attached to the message now. As it was an external filter a bit more than five lines [:D]

Usage example from cmd prompt

cmanotalk 2013-10-15_23.45.58.txt 1 Britain

Doc attached with the code.

*updated* - Added Smoother female type voice from Microsoft speech engine. Now two versions cmanotalk.exe and cmanotalkms.exe

The MS version will ignore the speech params though, but does not need to run the espeak processes so is a cleaner approach.


Regards

Sluggy
MirabelleBenou
Posts: 325
Joined: Sat Apr 03, 2010 3:56 am
Contact:

RE: Speech in about 5 lines of code

Post by MirabelleBenou »

Well done !! Very nice :) :)
Image
Dimitris
Posts: 15188
Joined: Sun Jul 31, 2005 10:29 am
Contact:

RE: Speech in about 5 lines of code

Post by Dimitris »

Thank you for your effort on this! We are looking at several solutions for this requirement and your implementation will be examined.
User avatar
Primarchx
Posts: 1954
Joined: Sun Jan 20, 2013 9:29 pm

RE: Speech in about 5 lines of code

Post by Primarchx »

I want Siri to yell out my VAMPIRE! calls! [:D]
MirabelleBenou
Posts: 325
Joined: Sat Apr 03, 2010 3:56 am
Contact:

RE: Speech in about 5 lines of code

Post by MirabelleBenou »

Just tried, but no sound, maybe I have to check the parameters from eSpeak. I think it took the french language by default.
Image
MirabelleBenou
Posts: 325
Joined: Sat Apr 03, 2010 3:56 am
Contact:

RE: Speech in about 5 lines of code

Post by MirabelleBenou »

ok, tried again and it works but without filter.
Image
Wiz33
Posts: 148
Joined: Wed May 16, 2007 8:00 pm

RE: Speech in about 5 lines of code

Post by Wiz33 »

ORIGINAL: Primarchx

I want Siri to yell out my VAMPIRE! calls! [:D]

Now that we know who she is. All you need is to save up enough money to hire her ;-P

http://www.usatoday.com/story/tech/colu ... y/2952741/
sluggy2010
Posts: 122
Joined: Wed Oct 02, 2013 1:09 am

RE: Speech in about 5 lines of code

Post by sluggy2010 »

Yep - sorry just English at the moment, can you post the log file and I'll add French as an option.

I've only created this in the absence of anything else at present.

Ideal solution would be for the the guys to use the the Microsoft speech API, but it will need the ability to select which messages are spoken or you get voice spammed.

Regards

Sluggy
sluggy2010
Posts: 122
Joined: Wed Oct 02, 2013 1:09 am

RE: Speech in about 5 lines of code

Post by sluggy2010 »

Oops - forgot to mention there are female voice variants in espeak.

cmanotalk 2013-10-16_8.50.53.txt 3 Britain " -s 200 -g 6 -v en+f5"

+f1,+f2,+f3,+f4,+f5 are the options.
sneekyzeke
Posts: 61
Joined: Mon Oct 07, 2013 4:26 am

RE: Speech in about 5 lines of code

Post by sneekyzeke »

This would be great; looking forward to whatever comes from this! [:D]
Post Reply

Return to “Command: Modern Operations series”