1. Tomato Hentai

    OP Tomato Hentai GBAtemp Psycho!
    Member

    Joined:
    Oct 30, 2014
    Messages:
    3,831
    Country:
    Antarctica
    I was screwing around with some .DDB files from multiple VOCALOID voicebanks in Audacity, and in doing this I discovered the encoding and sample rate of the samples inside of the .DDB files. They all use 32 bit PCM encoding, have one channel, and have a sampling rate of 22050 Hz.
    Before the samples, there's some chunk of data, I don't know what it is, but I'm guessing it's maybe a sample identifier of some sort, or something like that?
    I don't really know what I should do now.
     
    Carrot, Lycanroc and EMP Knightmare like this.
  2. VinsCool

    VinsCool Cattus Incerta Tacitusque
    Member

    Joined:
    Jan 7, 2014
    Messages:
    13,613
    Country:
    Canada
    Go past the chunk, dump everything in a new .wav file, and then have fun by separing samples one by one? :P
     
    Tomato Hentai likes this.
  3. Tomato Hentai

    OP Tomato Hentai GBAtemp Psycho!
    Member

    Joined:
    Oct 30, 2014
    Messages:
    3,831
    Country:
    Antarctica
    That's what I've been doing, but it'd be nice to be able to do more with the samples and stuff, like maybe replacing samples, but I don't think I'll be able to make a semi-functional voicebank edit just by doing that, in fact, the voicebank may not be functional at all.
     
    Lycanroc likes this.
  4. deepsearegret

    deepsearegret Newbie
    Newcomer

    Joined:
    Oct 20, 2017
    Messages:
    1
    Country:
    United States
    Sorry for bothering, but I tried this myself, is it supposed to be in big eridian, small eridian, ect?
     
  5. Tomato Hentai

    OP Tomato Hentai GBAtemp Psycho!
    Member

    Joined:
    Oct 30, 2014
    Messages:
    3,831
    Country:
    Antarctica
    I've found that the endianness doesn't matter for whatever reason. Just choose whichever.
     
  6. RosyKitteh

    RosyKitteh Newbie
    Newcomer

    Joined:
    Aug 22, 2019
    Messages:
    1
    Country:
    United States
    It's possible to export a DDB file to multiple WAV files. It's an unconventional archive file.
     
  7. Carrot

    Carrot Newbie
    Newcomer

    Joined:
    Dec 22, 2019
    Messages:
    3
    Country:
    United States
    Did anyone actually get this working? I'm having trouble with audacity importing it incorrectly. I would love to see the samples for the Vocaloids I use. Is there anyone I could do that? I'm not really sure what to do since this is practically almost a 6-year-old thread but I have hope someone will care.
     
  8. myrsky

    myrsky Newbie
    Newcomer

    Joined:
    Jan 16, 2020
    Messages:
    4
    Country:
    United States
    I've been messing around with this lately in Audacity and a hex editor trying to figure out more about the .ddb. No guarantees any of this applies to anything but V3, as that's all I currently have access to. Here's what I've found:
    The actual samples begin with SND (53 4E 44) and end with FRM2h, (46 52 4D 32 68 2C). If you take the stuff between those and put it in a new file, it will be just the samples.

    I've also encountered FRM2 followed by other symbols, which seems to be related to something else, as they don't mark the end of samples, but I'm not yet sure what.

    Edit: It might be a bit less straightforward than that, as I've been writing a program to extract samples from the .ddb and encountered some odd stuff. I have managed to use it to successfully extract a sample, but the program still needs a bit more work, and it might be a bit since I'm pretty new to coding.

    Edit: Okay, disregard most of that stuff up there. It's only partially correct. Seems samples can end with FRM2-whatever, not just FRM2h,. Also, SND has to be at the beginning of the file for Audacity to read it properly as raw data, otherwise it's just static. Which doesn't make a lot of sense to me, but admittedly I have very little experience with this sound stuff.

    Also, I can confirm that this applies to V2, V3, and V4 files. It works with V5 too, but the .ddb files are too big for my program to handle, and while I'm sure there's a way around that, I'm not good enough at this whole programming thing yet to know what it is.
    The import settings should look like this:
    audacity import.png
    Edit: Depending on what version of Vocaloid you're working with, you might want to make sure you have the right .ddb, as some have other .ddb files. The one you want should be (vocaloid name).ddb.
     
    Last edited: Jan 28, 2020
    CV01 likes this.
  9. CV01

    CV01 Newbie
    Newcomer

    Joined:
    Jan 29, 2020
    Messages:
    2
    Country:
    Japan
    Edit: Ignore what I said below. Turns out I did import correctly and that static I was hearing was the chunk of data before the sample that OP was talking about. I'll mess around with the .ddb in a hex editor and if I can manage to separate the samples. If anyone know a more efficient way to do this, please let me know.

    Sorry, I'm a little confused on what I'm supposed to do with the .ddb in the hex editor to get things imported into audacity correctly. I've been lurking around quite some time now and made an account just to ask since I'm attempting doing this. So far, all I've managed to do is import the .ddb with the above settings and get static, haha. I know I'm using the right .ddb since it says (vocaloid's name).ddb.

    I'm sorry if I sound like a total noob.
     
    Last edited: Jan 30, 2020
  10. myrsky

    myrsky Newbie
    Newcomer

    Joined:
    Jan 16, 2020
    Messages:
    4
    Country:
    United States
    I finished writing that program. This should extract most, if not all (if it misses one, it'll probably be at the end) of the samples in a .ddb file, though you'll still have to import them as raw data in Audacity. I can't publish it and upload that since it's too big, so I'll just post the source.
    Also, fair warning, this will fill whatever folder you run it in with a bunch of files. I was kind of surprised just how many there were, actually.

    Edit: I might rewrite this in Python since that would probably be more convenient for people. Either way, I'm going to work on saving the samples as .wav.
     

    Attached Files:

    Last edited: Feb 13, 2020 at 9:49 AM
    Carrot, CV01 and Sophie-bear like this.
  11. Carrot

    Carrot Newbie
    Newcomer

    Joined:
    Dec 22, 2019
    Messages:
    3
    Country:
    United States
    Hell yeah! I love when people collaborate to accomplish things!!!

    — Posts automatically merged - Please don't double post! —

    I have an idea! Lets open a github for vocaloid sample manipulation! It'd be really cool what we might be able to do with the samples. I've been really interested in making a TTS Miku program or better yet, A Miku Voice Assistant though I have no idea how this would work.
    Heres a discord server were we could collaborate more on this stuff!! Also I'd love to help with the python stuff. I use python a lot.

    Because my account is new just copy and paste that. They don't let me post links. :(
    discord.gg/FzB49rq
     
  12. CV01

    CV01 Newbie
    Newcomer

    Joined:
    Jan 29, 2020
    Messages:
    2
    Country:
    Japan
    I think that's a lovely idea! :D Just as long as we're not distributing the samples, that should be okay legally! I've seen nothing against that in the ToU, iirc. ^u^
    That's also a really great idea! ^u^ I may consider joining, but I don't know the first thing about coding. ^^"
     
  13. Carrot

    Carrot Newbie
    Newcomer

    Joined:
    Dec 22, 2019
    Messages:
    3
    Country:
    United States
    You don't have to know coding lol Anyone interested in this idea of using vocaloid samples for anything should join because we could do a lot more than just make music with it!
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - voicebanks, VOCALOID, samples