How would one go about adding voice acting besides using SE?

Uhh, hello forums! I was just wondering how I could do this, because saving it to SE just isn't viable for future proofing and updating, especially if I revisit the engine after 2 years just for changing voice acting.

So is there 1.(a plugin that calls voice acting sounds from a file located in the rpg maker music folder, specifically a new sub folder from the folder itself.)
2.(a vanilla way to add new sound effects to that folder and then call a normal script call that finds the folder/audio and plays it)
3.(I didn't have a third though- I thought the 1st one would exist and most developers just used that plugin but it rarely gets mentioned due to most games not needing or wanting voice acting)
Forgot to add tags to this post btw*
saving it to SE just isn't viable for future proofing and updating
Just out of curiosity, why not? You can structure the file names logically so they're all in one place in the folder, even having version numbers if you want. I don't see what you could do with them in a separate folder that you can't do there.

So is there 1.(a plugin that calls voice acting sounds from a file located in the rpg maker music folder, specifically a new sub folder from the folder itself.)
Not that I've ever seen, but it wouldn't be the hardest thing in the world to do. You just need to circumvent or rewrite the default loading function, because it automatically goes to the audio\se folder.

3.(I didn't have a third though- I thought the 1st one would exist and most developers just used that plugin but it rarely gets mentioned due to most games not needing or wanting voice acting)
Or because they're fine working out of the regular folder 😉

Forgot to add tags to this post btw*
I don't know if anyone looks at those. Most posts in the forum don't have any.
You could modify any plugin that uses sound effects to look one folder deeper into a voiceEffects subfolder under certain conditions. It would only be a couple lines of code.
if every file links always to the same line, then it becomes a matter of sending the dialogue to the one entry that ties both things together.
instead of having your events display a message box, have the event call for a "voiced event" command from an outside source.
how you make it is not important, as long as it returns a message box action, in addition to the sound effect.
you don't really need a plugin for that... you can hotwire it on a separate block, even directly to the message box command, so if you want to disable it the event will still work.
Just out of curiosity, why not? You can structure the file names logically so they're all in one place in the folder, even having version numbers if you want. I don't see what you could do with them in a separate folder that you can't do there.


Not that I've ever seen, but it wouldn't be the hardest thing in the world to do. You just need to circumvent or rewrite the default loading function, because it automatically goes to the audio\se folder.


Or because they're fine working out of the regular folder 😉


I don't know if anyone looks at those. Most posts in the forum don't have any.
Oh? Rewrite the default loading function? Would that be something a JavaScript coder would know.. or a average rpg maker developer, because I really don't know that process.. also ik mainly asking this so I can have a folder that reads the lines of what the actual voice message is, so say the dialogue going with the text is: (Hi, and welcome)
I could name it: (HiWel) and not scroll through the entire SE folder just to find that single voice clip.. or have a longer file name, actually thinking about it myself. It just sounds like over voice acting could cause a good chunk of SE to have va_(that line) to fill up columns and columns of the folder when looking through it
If you are okay with using script calls, you can simply use the script call that would play the SE normally, but then look for the file in another folder. Like this:

In this example, we want to play a SE with the name "Maria1". To make it easy, we assume that your project is in the folder named project1, as is by default.
Normally, the audio file would be in the folder /project1/audio/SE/

Then the scriptcall would be:
Code:
AudioManager.playSe({ name: "Maria1", volume: 90, pitch: 100 });

Buf if you want to put all the voice actors in one folder, and then inside that folder give each actor their own sub folder, then the file Maria might be in the folder /project1/audio/SE/voiceactors/Maria/

Then the scriptcall would be:
Code:
AudioManager.playSe({ name: "voiceactors/Maria/Maria1", volume: 90, pitch: 100 });

Hope that helps!
If you are okay with using script calls, you can simply use the script call that would play the SE normally, but then look for the file in another folder. Like this:

In this example, we want to play a SE with the name "Maria1". To make it easy, we assume that your project is in the folder named project1, as is by default.
Normally, the audio file would be in the folder /project1/audio/SE/

Then the scriptcall would be:
Code:
AudioManager.playSe({ name: "Maria1", volume: 90, pitch: 100 });

Buf if you want to put all the voice actors in one folder, and then inside that folder give each actor their own sub folder, then the file Maria might be in the folder /project1/audio/SE/voiceactors/Maria/

Then the scriptcall would be:
Code:
AudioManager.playSe({ name: "voiceactors/Maria/Maria1", volume: 90, pitch: 100 });

Hope that helps!
It did! Thanks for the help John! I still hope a plugin gets made for this singular function alone though, can't they just equip the folder via plugin parameters then use a plugin command in a event to call on a file, and additionally if needed. Set the volume pitch and other stuff? Either way.. I'll definitely try out what you sent me! Thanks for the help!
What would you want the plugin to do, what the script call can not?

I mean, it wouldn't be too hard to make a plugin to do this, but you'd still need to use a plugin command instead of a script call.

If you want it easier, I can do you one better:

Code:
var Path = "voiceactors/Maria/";
var Name = "Maria1";
var Vol = 90;
var Pit = 100;
AudioManager.playSe({ name: Path + Name, volume: Vol, pitch: Pit });

This should do the exact same thing, just makes it easier to edit it for you. Now only the parameters should be changed (after the = sign) and the formula can stay untouched.

This is really as easy as I can get it. I don't even think a plugin would speed up the process.
Just keep this script call safe somewhere and copy/paste it when you need it.
What would you want the plugin to do, what the script call can not?

I mean, it wouldn't be too hard to make a plugin to do this, but you'd still need to use a plugin command instead of a script call.

If you want it easier, I can do you one better:

Code:
var Path = "voiceactors/Maria/";
var Name = "Maria1";
var Vol = 90;
var Pit = 100;
AudioManager.playSe({ name: Path + Name, volume: Vol, pitch: Pit });

This should do the exact same thing, just makes it easier to edit it for you. Now only the parameters should be changed (after the = sign) and the formula can stay untouched.

This is really as easy as I can get it. I don't even think a plugin would speed up the process.
Just keep this script call safe somewhere and copy/paste it when you need it.
I don't actually think we need a plugin after me learning, but I was mainly thinking the plugin access it's own dedicated folder in the music section of rpg maker named /VA then looks for a folder name via a plugin command like /maria or it plays the sound effect of that name if it's not a folder. But if it is a folder it'll open that and play a sound effect of a random name in that folder like /hello
And that would be it so, plugin command🙁VA: Maria/hello) or plugin command🙁VA: Maria) and additionally we could add pitch or volumes to it, so like. (VA: Maria Vol 30 Pitch 50)
Well, you could do that, but it will take a but more work. It would be a lot easier if you number the files, if you want them randomized.

If the files you randomly want to play are named Maria0.ogg Maria1.ogg Maria2.ogg etc etc, and are the only ones in that folder, then you could do this:

In this example, there are 25 files, in the folder named /project1/audio/SE/VA/Maria/
In this example, we use variable #1 to store the name of the file you want to play.

Control variable:
Var0001 = random: 1~25

Script:
Code:
var Path = "VA/Maria/";
var Name = "Maria"
var VarID = 1;
var Vol = 90;
var Pit = 100;
AudioManager.playSe({ name: Path + Name + $gameVariables.value(VarID), volume: Vol, pitch: Pit });

It will randomly play Maria1.ogg Maria2.ogg or Maria3.ogg or any of the other files up to Maria25.ogg
Yeah.. I'm starting to get it, hopefully I'm mistaken and numbering files instead of making them as to their line is easier..
Well, numbering would only make it easier if you want them randomized. If you want them customly picked, naming them would be easier. 😛

You can do both, though. If you have like 10 different ways to greet, 10 different ways to start bartering comment and 10 different ways to start a fight comment, then dimply name your files like this:

MariaGreet1.ogg
MariaGreet2.ogg
MariaGreet3.ogg

MariaBarter1.ogg
MariaBarter2.ogg
MariaBarter3.ogg

and

MariaFight1.ogg
MariaFight2.ogg
MariaFight3.ogg

then make the script calls :

Code:
var Path = "VA/Maria/";
var Name = "MariaGreet"
var VarID = 1;
(...)
Code:
var Path = "VA/Maria/";
var Name = "MariaShop"
var VarID = 1;
(...)
Code:
var Path = "VA/Maria/";
var Name = "MariaFight"
var VarID = 1;
(...)

I did use only show the first part of the script call, because the rest hasn't changed, only the name parameter has changed. So, (...) should be replaced with the rest of the script call from my previous reply.
Noted but I'm still considering just modifying ontop of this don't get me wrong, though if a plugin ever comes out I'll switch to that to leave the SE folder

Below is what I'm referring to btw*
.playSe({ name: "voiceactors/Maria/Maria1", volume: 90, pitch: 100 });
Okay... What is the folder you want to go into? You MUST stay in your project folder, though. If you go outside there, then things will no go right when you share your game. But as long as you stay inside your project folder, I can help you. I just need to know the folder you want to place it in.

I would strongly advice to not go outside the audio folder.

But in a path, ../ means "one folder higher"

So, if you want to make the path: /project1/audio/VA/Maria/

then the script call (the short version, since you quoted that) would be:
Code:
AudioManager.playSe({ name: "../VA/Maria/Maria1", volume: 90, pitch: 100 });

If you want the 1 on the end to be randomized, using variable one, you can do it like this:
Code:
AudioManager.playSe({ name: "../VA/Maria/Maria" + $gameVariables.value(1), volume: 90, pitch: 100 });

It will now put the value of variable 1, behind the filename Maria.
So if var 1 is random 1, 2 or 3, then it plays randomly Maria1.ogg, Maria2.ogg or Maria3.ogg
Oh? So I don't have to use the SE folder? Then my plans are just to go with
(Since Fame is the main character of the game, I'll replace his name with Maria's)
AudioManager.playSe({ name: "/audio/VA/Fame/Fame_Hello", volume: 90, pitch: 100 });
Yes, yes that would work. Oh sorry, I thought you wanted to randomize it, that is why I was making things so complicated.

But the script call is not totally right. The thing is, you start off in the SE folder. To go up 1 folder, you put in ../
Because audio is the folder above SE, ../ will bring you into the audio folder.

So the right script call would be:
Code:
AudioManager.playSe({ name: "../VA/Fame/Fame_Hello", volume: 90, pitch: 100 });

This would bring you to the folder:
/Project1/Audio/VA/Fame/
Yes, yes that would work. Oh sorry, I thought you wanted to randomize it, that is why I was making things so complicated.

But the script call is not totally right. The thing is, you start off in the SE folder. To go up 1 folder, you put in ../
Because audio is the folder above SE, ../ will bring you into the audio folder.

So the right script call would be:
Code:
AudioManager.playSe({ name: "../VA/Fame/Fame_Hello", volume: 90, pitch: 100 });

This would bring you to the folder:
/Project1/Audio/VA/Fame/
Got it! Then I'll totally try this out when I load up the engine! Probably with a random ogg file, thanks for helping out!
Sure. When you do, let me know if your problem is solved now. 🙂
If BattleVoiceMZ wasn't broken, you would have a good start.

Original thread: https://forums.rpgmakerweb.com/threads/how-would-one-go-about-adding-voice-acting-besides-using-se.157614/