Home   Help Search Login Register  

Author Topic: Returning grid ref to play grid ref sounds  (Read 411 times)

0 Members and 1 Guest are viewing this topic.

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Returning grid ref to play grid ref sounds
« on: 13 Jan 2004, 23:10:16 »
Apologies if this has already been answered, i did check several pages and searched and i did try the editors depot, but can only access the first page for every section

Anyway here is the question

From a map click i want an array of sound files to play out the phonetic alphabet and the numbers for the grid ref

eg if grid ref is DA46
i want the sound file to play
Delta - Alpha- Four- Six - Over
getting the sound files to play and getting the Map click to return variables and then assosciate the variables with sounds isnt my problem

I de pbo'd the OFP sound files and found in the voices folder some .WSS Files. In them was all the sound files i needed, all the phonetic and number files

I tried a test script to see if i was lucky with a reserved variable hit

eg
Playsound "1"
~1
Playsound "One"
~1
Playsound "A"
~1
Playsound "Alpha"


but was unlucky

I also tried Player Say "ONE" etc etc

so how can i access and play these sounds that are already within the BIS hardcoding

Failing that, has anyone already a folder that contains ogg or wav files for numbers "0 to 9" and phonetic "Alpha to Juliet"


Thanks in advance for any help offered
« Last Edit: 13 Jan 2004, 23:28:17 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Returning grid ref to play grid ref sounds
« Reply #1 on: 14 Jan 2004, 03:21:55 »
I have the Alphabet and Number .wss files converted to .ogg.

They are in the voice of Adam, although I could easily do the same for any other voice.

If you want them I can send via email or ICQ...etc.

The zipped size is only 338 kb.

Quality is:

44100hz..........Mono..........80kbps.....Constant Bitrate.


Planck
I know a little about a lot, and a lot about a little.

Offline alimag

  • Contributing Member
  • **
  • I'm a llama!
Re:Returning grid ref to play grid ref sounds
« Reply #2 on: 14 Jan 2004, 15:49:59 »
You dont need to do all this.
Check my reply to your post in the BIS forum

Cheers

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Returning grid ref to play grid ref sounds
« Reply #3 on: 14 Jan 2004, 16:44:15 »
This is Alimags reply on BIS forums

Quote
You CAN play them the same way that you can play a WAV file if you want.

The main 2 reasons that we dont use them are:

1- I never saw a WSS player so I have to use OFP everytime I want to know what the file is about (very bad)

2- The size. OGG files are much smaller.

But to access the internal OFP sound the only things you need are the name and the path of the file. Then, you just describe them in your description.ext file as any other one:

For example Adam voice saying "CONTACT":

class CfgRadio
{
     sounds[] = {contact};
     class contact
     {
             name = "";
             sound[] = {"bis\adam\contact.wss", db-5, 1.0};
             title = $STRM_contact;
     };
};

Your idea is a very good one but there may be much work than you think to cover all the possiblities.
If you need help just tell me I'll do what I can

Cheers
Quote

and

Thanks a lot Planck.

If you could i would appreciate you send me the files to terox_@hotmail.com

I may find that the play length for the .WSSr files may vary and therefore when trying to play one after the other, there would be horrible pauses between the two, so i may need to modify some
« Last Edit: 14 Jan 2004, 16:45:51 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123