Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Speech in about 5 lines of code

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Speech in about 5 lines of code Page: [1]
Login
Message << Older Topic   Newer Topic >>
Speech in about 5 lines of code - 10/14/2013 2:36:52 PM   
sluggy2010

 

Posts: 121
Joined: 10/2/2013
Status: offline
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






< Message edited by sluggy -- 10/14/2013 2:57:26 PM >
Post #: 1
RE: Speech in about 5 lines of code *updated - 10/15/2013 4:50:28 PM   
sluggy2010

 

Posts: 121
Joined: 10/2/2013
Status: offline
*Updated* File Removed as SeaHag now released search for the other post.


Got it working.

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

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

< Message edited by sluggy -- 11/5/2013 3:43:46 PM >

(in reply to sluggy2010)
Post #: 2
RE: Speech in about 5 lines of code - 10/15/2013 5:33:45 PM   
MirabelleBenou

 

Posts: 310
Joined: 4/3/2010
Status: offline
Well done !! Very nice :) :)

_____________________________


(in reply to sluggy2010)
Post #: 3
RE: Speech in about 5 lines of code - 10/15/2013 5:39:36 PM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
Thank you for your effort on this! We are looking at several solutions for this requirement and your implementation will be examined.

_____________________________


(in reply to MirabelleBenou)
Post #: 4
RE: Speech in about 5 lines of code - 10/15/2013 8:12:36 PM   
Primarchx


Posts: 3102
Joined: 1/20/2013
Status: offline
I want Siri to yell out my VAMPIRE! calls!

(in reply to Dimitris)
Post #: 5
RE: Speech in about 5 lines of code - 10/15/2013 8:29:16 PM   
MirabelleBenou

 

Posts: 310
Joined: 4/3/2010
Status: offline
Just tried, but no sound, maybe I have to check the parameters from eSpeak. I think it took the french language by default.

_____________________________


(in reply to Primarchx)
Post #: 6
RE: Speech in about 5 lines of code - 10/15/2013 9:08:49 PM   
MirabelleBenou

 

Posts: 310
Joined: 4/3/2010
Status: offline
ok, tried again and it works but without filter.

_____________________________


(in reply to MirabelleBenou)
Post #: 7
RE: Speech in about 5 lines of code - 10/15/2013 10:17:00 PM   
Wiz33

 

Posts: 147
Joined: 5/16/2007
Status: offline

quote:

ORIGINAL: Primarchx

I want Siri to yell out my VAMPIRE! calls!


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/

(in reply to Primarchx)
Post #: 8
RE: Speech in about 5 lines of code - 10/15/2013 10:57:04 PM   
sluggy2010

 

Posts: 121
Joined: 10/2/2013
Status: offline
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

(in reply to MirabelleBenou)
Post #: 9
RE: Speech in about 5 lines of code - 10/15/2013 11:21:30 PM   
sluggy2010

 

Posts: 121
Joined: 10/2/2013
Status: offline
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.

(in reply to Primarchx)
Post #: 10
RE: Speech in about 5 lines of code - 10/16/2013 1:36:23 PM   
sneekyzeke

 

Posts: 61
Joined: 10/7/2013
Status: offline
This would be great; looking forward to whatever comes from this!

(in reply to sluggy2010)
Post #: 11
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Speech in about 5 lines of code Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.125