Author Topic: Text to speech modification  (Read 5643 times)

0 Members and 1 Guest are viewing this topic.

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Text to speech modification
I had a very similar conversation with Goober about practically the same question earlier this week. The problem I found is varying descriptions of the strncpy function.

However, I found this on the MSDN page.

Quote
Security Note
strncpy does not check for sufficient space in strDest; it is therefore a potential cause of buffer overruns. Keep in mind that count limits the number of characters copied; it is not a limit on the size of strDest. See the example below.


Sometimes I *really* miss IndexOutOfBoundsException. Which is ironic considering the number of times I've cursed at it.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: Text to speech modification
I only remembered it because we did some stuff on stack smashing at uni and our lecturer basically said always use memcpy.

IIRC the current code ive uploaded uses memcpy then forces the last byte to \0 so that 1 it wont overflow and 2 the last byte will always be \0 (otherwise it would be uninitialised.

Cheers for the info and letting me know im doing it roughly right :)

Steve

 

Offline colecampbell666

  • I See Dead Pictures
  • 212
  • Evolution and ascension.
Re: Text to speech modification
Doesn't BtRl (the demo) have a voicepack, or are you talking exclusively about the techroom. It would be good if someone could implement the standard techroom speech for capella/fs1 era mods with many of the same ships, and if people actuallyincluded tech descriptions in their mods. How come people don't already do this?
Gettin' back to dodgin' lasers.

 
Re: Text to speech modification
the BtRL demo does have a voicepack for most of the stuff but the tech room and player released missions dont.

Im not entirely sure what you mean in the second part.

All this modification does is search the text sent to the text to speech for a word (eg viper) and replaces the text with something that the computer will pronounce correctly(eg. vi'per) the replacelemts are listed in the sounds.tbl file so in theory any mod could do this.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Text to speech modification
I think he means voice acted techroom descriptions.  The game never shipped with any, and in fact there is no support ATM for matching techroom descriptions with pre-recorded audio files.  What I'd like to see, is the ability to specify different sim-speech voices for different messages.  For example, if we can get say 7 different sim-speech voices, a campaign designer could vary them around in-mission so you don't always have the same voice for every character.  Granted, getting your hands on more than the basic 3 voices isn't exactly easy... not that coding this wouldn't be hard either.
« Last Edit: July 13, 2007, 11:23:37 pm by Trivial Psychic »
The Trivial Psychic Strikes Again!

 

Offline colecampbell666

  • I See Dead Pictures
  • 212
  • Evolution and ascension.
Re: Text to speech modification
Sry about that post, I wa thinking that Fs had techroom voice. It would still be a nice feature.
Gettin' back to dodgin' lasers.