Speech in about 5 lines of code (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series



Message


sluggy2010 -> Speech in about 5 lines of code (10/14/2013 2:36:52 PM)

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 -> RE: Speech in about 5 lines of code *updated (10/15/2013 4:50:28 PM)

*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 -> RE: Speech in about 5 lines of code (10/15/2013 5:33:45 PM)

Well done !! Very nice :) :)




Dimitris -> RE: Speech in about 5 lines of code (10/15/2013 5:39:36 PM)

Thank you for your effort on this! We are looking at several solutions for this requirement and your implementation will be examined.




Primarchx -> RE: Speech in about 5 lines of code (10/15/2013 8:12:36 PM)

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




MirabelleBenou -> RE: Speech in about 5 lines of code (10/15/2013 8:29:16 PM)

Just tried, but no sound, maybe I have to check the parameters from eSpeak. I think it took the french language by default.




MirabelleBenou -> RE: Speech in about 5 lines of code (10/15/2013 9:08:49 PM)

ok, tried again and it works but without filter.




Wiz33 -> RE: Speech in about 5 lines of code (10/15/2013 10:17:00 PM)


quote:

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/columnist/talkingtech/2013/10/09/siri-talks-tech-with-usa-today/2952741/




sluggy2010 -> RE: Speech in about 5 lines of code (10/15/2013 10:57:04 PM)

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 -> RE: Speech in about 5 lines of code (10/15/2013 11:21:30 PM)

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 -> RE: Speech in about 5 lines of code (10/16/2013 1:36:23 PM)

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




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.765625