News: 11 March 2016 - Forum Rules

Author Topic: Final Fantasy X convert voices to wave format  (Read 3734 times)

SaiyanER

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Final Fantasy X convert voices to wave format
« on: January 09, 2014, 04:16:04 pm »
Hello all,

I have extracted all voices from Final Fantasy X. I would like to convert them into wave format because for the moment I can't play them. The orginal format is .vs (vagstream I think).

So, I would like to create a programm (in C++ or others) to decode and convert them into wave format.

Can anyone tell how can I do that.

Thank you.



January 09, 2014, 10:52:24 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
No one can help me ?
« Last Edit: January 09, 2014, 10:52:24 pm by SaiyanER »

Bregalad

  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
Re: Final Fantasy X convert voices to wave format
« Reply #1 on: January 10, 2014, 11:35:41 am »
I'm afraid I can't help all that much, but since nobody else does I'll try to do what I can.

I'm very familiar with the SNES audio compression format, BRR, as I've written a WAV->BRR and BRR->WAV converted. Seach the Utilities sections for "BRRTools".

The sound processor used in the SNES was made by Sony, and the sound units in the PS1 and the PS2 are direct sequels of it. The PS1 uses a similar format called VAG/VAB. I've always been willing to add it to BRRTools, but was too lazy to do so so far. Pehaps someday.

Basically the main difference is that it uses blocks of 2-byte header and 28 samples (stored as nibbles in 14 bytes) totalizing in 16 bytes blocks (the SNES uses 1-byte header + 16 samples : total 9 bytes).
The idea however is the same : There is a shift count, and a prediction (aka filter) lookup number + a loop and end flag in the header of each sample.

I don't know how much the PS2 format differes from the PS1 (if it does at all) but that's already a start.

PS : Anyways, you should search for a tool called "PSound". This converts PS1 audio, but could also work with PS2 if the format is the same ?

RetroHelix

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Re: Final Fantasy X convert voices to wave format
« Reply #2 on: January 10, 2014, 12:12:17 pm »
I think http://hcs64.com/vgmstream.html supports these files at least the readme (http://sourceforge.net/p/vgmstream/code/HEAD/tree/) says so.

SaiyanER

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Final Fantasy X convert voices to wave format
« Reply #3 on: January 10, 2014, 07:29:17 pm »
I have already tried  vgmstream but it didn't work.

Any idea on how decode a ADPCM compressed sound ? I think I have to follow this way to play the sound I  have extracted

Below, it's the header of .vs file. At offset 0x0c we have the lenght of the file in sector. But I dont know the meaning of the offset 0x11 and 0x14. Can anyone help me ? I know the song is played at 48000Hz Mono 16bit but I don't find a link between those offsets and the song format.


Bregalad

  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
Re: Final Fantasy X convert voices to wave format
« Reply #4 on: January 12, 2014, 12:37:18 pm »
Obviously this is the same format as the one the PS1 uses (and that I already mentioned). you can see columns of 0x02 which is the flags for a looped sample, the byte that is before it is the lookup index and shift amount for prediction, and the 14 following bytes are sound data. The format is described on nocash's website. I have no idea how the header works unfortunately.

You should really try PSound.

SaiyanER

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Final Fantasy X convert voices to wave format
« Reply #5 on: January 12, 2014, 10:46:48 pm »
Ok thank you Bregalad.

Can you give me the link to the site who describes the format.

January 12, 2014, 10:50:41 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
I have already PSound, but I would like to build my own app.

Bregalad

  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
Re: Final Fantasy X convert voices to wave format
« Reply #6 on: January 13, 2014, 04:56:35 am »
« Last Edit: January 13, 2014, 05:39:24 am by Bregalad »