MV Multi Sample "Text Sound Effect" Plugin Request

Hello, I’m not looking for the kind of SE text plugin where it has 1 sample that it plays every time a glyph is printed. I am looking for a plugin that allows you to create sets where you can put in multiple samples, and then when words begin printing for a specific instance it cycles through the samples to create something more sonically dynamic and more illustrative of the characters actual voice.

Here are examples of how I think it should sound:





Thank you if anyone can find something like this or possibly create it.
If you just want to play different SEs according to some rule, take an existing plugin and where it plays the SE put a conditional switch statement or something. So in addition of the plugin settings reference it can also play other SEs.
If you just want to play different SEs according to some rule, take an existing plugin and where it plays the SE put a conditional switch statement or something. So in addition of the plugin settings reference it can also play other SEs.
Thank you for the reply. I tinkered with "Galv's message sound effects" plugin but I messed up and need some help. Apologies for the wall of code.

Spoiler: Click here to open code
Code:
//-----------------------------------------------------------------------------
//  Galv's Message Sound Effects
//-----------------------------------------------------------------------------
//  For: RPGMAKER MV
//  GALV_MessageSoundEffects.js
//-----------------------------------------------------------------------------
//  2016-10-31 - Version 1.4 - Made aliasing globally obtainable, set ability
//                             to change the pan of sound effects.
//  2015-11-12 - Version 1.3 - Added delay time to sound effect
//  2015-11-12 - Version 1.2 - Fixed some code that didnt break anything
//  2015-11-11 - Version 1.1 - added Galv plugin command efficiency code
//  2015-11-04 - Version 1.0 - release
//-----------------------------------------------------------------------------
// Terms can be found at:
// galvs-scripts.com
//-----------------------------------------------------------------------------

var Imported = Imported || {};
Imported.Galv_MessageSE = true;

var Galv = Galv || {};          // Galv's main object
Galv.pCmd = Galv.pCmd || {};    // Plugin Command manager
Galv.MSE = Galv.MSE || {};      // Galv's stuff

//-----------------------------------------------------------------------------
/*:
 * @plugindesc Play sound effects when during Show Text event commands.
 *
 * @author Galv - galvs-scripts.com
 *
 * @param Delay Time
 * @desc PEriod of time (frames) after each SE that the next SE cannot play for
 * @default 10
 *
 * @param Default Talk SE
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE2
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE3
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE4
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE5
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE6
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE7
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE8
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE9
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE10
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE11
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE12
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE13
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE14
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Talk SE15
 * @desc Sound effect played during each character in a Show Text
 * message. FileName,volume,pitch,pan(optional).
 * @default Cursor1,80,150
 *
 * @param Default Confirm SE
 * @desc Sound effect played When player confirms message to
 * continue. FileName,volume,pitch,pan(optional).
 * @default Cursor2,80,150
 *
 * @param -----------
 * @desc Doesn't do anything
 *
 * @default
 *
 * @param Quick SE 1
 * @desc To use in the quick talk plugin command as 1.
 *
 * @default
 *
 * @param Quick SE 2
 * @desc To use in the quick talk plugin command as 2.
 *
 * @default
 *
 * @param Quick SE 3
 * @desc To use in the quick talk plugin command as 3.
 *
 * @default
 *
 * @param Quick SE 4
 * @desc To use in the quick talk plugin command as 4.
 *
 * @default
 *
 * @help
 * Galv's Message Sound Effects
 * -----------------------------------------------------------------------------
 * Set the default sound effects in the plugin settings for characters showing
 * and for confirming the Show Text message. The parameters are:
 *
 * SoundName,volume,pitch,pan(optional)
 *
 * Separated by commas. For example, the below will play the Cursor1 SE at 80
 * volume and 150 pitch:
 * Cursor1,80,150
 *
 * While this plugin allows you to do more or less, RPG Maker MV usually
 * restricts users to certain amounts:
 * Volume: 0 - 100
 * Pitch: 50 - 150
 *
 * -----------------------------------------------------------------------------
 *   PLUGIN COMMANDS
 * -----------------------------------------------------------------------------
 *   MSGSE TALK CLEAR                 // Removes talk SE
 *   MSGSE TALK DEFAULT               // Returns talk SE to default
 *   MSGSE TALK SoundName vol pit pan // Sets talk SE to a specific sound
 *   MSGSE TALK x                     // Change talk SE to a quick talk. x = 1-4
 *
 *   MSGSE CONFIRM CLEAR                 // Removes the confirm SE
 *   MSGSE CONFIRM DEFAULT               // Returns confirm SE to default
 *   MSGSE CONFIRM SoundName vol pit pan // Sets confirm SE to a specific sound
 *   MSGSE CONFIRM x                     // Change confirm SE to a quick SE 1-4
 * -----------------------------------------------------------------------------
 * Note: pan settings can be left out to return to 0 (default).
 * Once a plugin is called, the SE's will stay changed until changed again.
 */



(function() {
    
// GALV'S PLUGIN MANAGEMENT. INCLUDED IN ALL GALV PLUGINS THAT HAVE PLUGIN COMMAND CALLS, BUT ONLY RUN ONCE.
if (!Galv.aliased) {
    Galv.MSE.Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
    Game_Interpreter.prototype.pluginCommand = function(command, args) {
        if (Galv.pCmd[command]) {
            Galv.pCmd[command](args);
            return;
        };
        Galv.MSE.Game_Interpreter_pluginCommand.call(this, command, args);
    };
    Galv.aliased = true; // Don't keep aliasing for other Galv scripts.
};

// Direct to Plugin Object
Galv.pCmd.MSGSE = function(arguments) {
    Galv.MSE.plugin(arguments);
};
// END GALV'S PLUGIN MANAGEMENT



Galv.MSE.plugin = function(arr) {
    if (arr[0] !== "TALK" && arr[0] !== "TALK" && arr[0] !== "TALK2" && arr[0] !== "TALK3" && arr[0] !== "TALK4" && arr[0] !== "TALK5" && arr[0] !== "TALK6" && arr[0] !== "TALK7" && arr[0] !== "TALK8" && arr[0] !== "TALK9" && arr[0] !== "TALK10" && arr[0] !== "TALK11" && arr[0] !== "TALK12" && arr[0] !== "TALK13" && arr[0] !== "TALK14" && arr[0] !== "TALK15" && arr[0] !== "CONFIRM") return;
    // Get Sound
    switch (arr[1]) {
        case "CLEAR":
            sound = Galv.MSE.makeSound(["",0,100]);
            break;
        case "DEFAULT":
            sound = "default";
            break;
        case "1": case "2": case "3": case "4":
            // Quick SE
            sound = Galv.MSE.quickSE[Number(arr[1])];
            break;
        default:
            obj = {
                name: arr[1],
                pan: Number(arr[4]) || 0,
                pitch: Number(arr[3]),
                volume: Number(arr[2])
            };
            sound = obj;
            break;
    };
    // Set sound
    if (arr[0] === "TALK") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK2") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe2;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK3") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe3;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK4") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe4;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK5") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe5;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK6") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe6;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK7") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe7;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK8") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe8;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK9") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe9;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK10") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe10;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK11") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe11;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK12") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe12;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK13") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe13;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK14") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe14;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "TALK15") {
        if (sound === "default") {
            $gameMessage.msgSe = Galv.MSE.defaultSe15;
        } else {
            $gameMessage.msgSe = sound;
        };
    } else if (arr[0] === "CONFIRM") {
        if (sound === "default") {
            $gameMessage.msgConfirmSe = Galv.MSE.defaultConfirmSe;
        } else {
            $gameMessage.msgConfirmSe = sound;
        };
    };
};
    
    
Galv.MSE.makeSound = function(txt) {
    if (Array.isArray(txt)) {
        var arr = txt;
    } else {
        var arr = txt.split(",");
    };
    var obj = {
        name: arr[0],
        pan: Number(arr[3]) || 0,
        pitch: Number(arr[2]),
        volume: Number(arr[1])
    };
    return obj;
};


Galv.MSE.delay = Number(PluginManager.parameters('GALV_MessageSoundEffects')["Delay Time"]);
Galv.MSE.defaultSe = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE"]);
Galv.MSE.defaultSe2 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE2"]);
Galv.MSE.defaultSe3 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE3"]);
Galv.MSE.defaultSe4 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE4"]);
Galv.MSE.defaultSe5 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE5"]);
Galv.MSE.defaultSe6 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE6"]);
Galv.MSE.defaultSe7 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE7"]);
Galv.MSE.defaultSe8 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE8"]);
Galv.MSE.defaultSe9 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE9"]);
Galv.MSE.defaultSe10 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE10"]);
Galv.MSE.defaultSe11 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE11"]);
Galv.MSE.defaultSe12 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE12"]);
Galv.MSE.defaultSe13 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE13"]);
Galv.MSE.defaultSe14 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE14"]);
Galv.MSE.defaultSe14 = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Talk SE15"]);
Galv.MSE.defaultConfirmSe = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')["Default Confirm SE"]);

Galv.MSE.quickSE = [];
for (var i = 1; i < 5; i++) {
    var name = "Quick SE " + i
    Galv.MSE.quickSE[i] = Galv.MSE.makeSound(PluginManager.parameters('GALV_MessageSoundEffects')[name]);
};

Galv.MSE.Game_Message_initialize = Game_Message.prototype.startMessage;
Game_Message.prototype.startMessage = function() {
    switch (Math.floor(Math.random() * 15)) {
        case 0:
            this.msgSe = Galv.MSE.defaultSe;
            break;
        case 1:
            this.msgSe = Galv.MSE.defaultSe2;
            break;
        case 2:
            this.msgSe = Galv.MSE.defaultSe3;
            break;
        case 3:
            this.msgSe = Galv.MSE.defaultSe4;
            break;
        case 4:
            this.msgSe = Galv.MSE.defaultSe5;
            break;
        case 5:
            this.msgSe = Galv.MSE.defaultSe6;
            break;
        case 6:
            this.msgSe = Galv.MSE.defaultSe7;
            break;
        case 7:
            this.msgSe = Galv.MSE.defaultSe8;
            break;
        case 8:
            this.msgSe = Galv.MSE.defaultSe9;
            break;
        case 9:
            this.msgSe = Galv.MSE.defaultSe10;
            break;
        case 10:
            this.msgSe = Galv.MSE.defaultSe11;
            break;
        case 11:
            this.msgSe = Galv.MSE.defaultSe12;
            break;
        case 12:
            this.msgSe = Galv.MSE.defaultSe13;
            break;
        case 13:
            this.msgSe = Galv.MSE.defaultSe14;
            break;
        case 14:
            this.msgSe = Galv.MSE.defaultSe15;
            break;
    };
    this.msgConfirmSe = Galv.MSE.defaultConfirmSe;
    Galv.MSE.Game_Message_initialize.call(this);
};

Galv.MSE.Window_Message_startMessage = Window_Message.prototype.startMessage;
Window_Message.prototype.startMessage = function() {
    this.delayTime = Galv.MSE.delay;
    Galv.MSE.Window_Message_startMessage.call(this);
};


Galv.MSE.Window_Message_updateMessage = Window_Message.prototype.updateMessage;
Window_Message.prototype.updateMessage = function() {
    this.delayTime += 1;
    return Galv.MSE.Window_Message_updateMessage.call(this);
};

Galv.MSE.Window_Message_processNormalCharacter = Window_Base.prototype.processNormalCharacter;
Window_Message.prototype.processNormalCharacter = function(textState) {
    if (!this._showFast) {
        if (this.delayTime >= Galv.MSE.delay) {
            AudioManager.playSe($gameMessage.msgSe);
            this.delayTime = 0;
        };
    };
    Galv.MSE.Window_Message_processNormalCharacter.call(this, textState);
};

Galv.MSE.Window_Message_terminateMessage = Window_Message.prototype.terminateMessage;
Window_Message.prototype.terminateMessage = function() {
    AudioManager.playSe($gameMessage.msgConfirmSe);
    this.delayTime = Galv.MSE.delay;
    Galv.MSE.Window_Message_terminateMessage.call(this);
};
})();


The way it is *supposed* to work is that you’d have to define each parameter (default talk se 1-15) and then when the dialogue is printing it randomly flips between the sound effects for every glyph printed. I plan to forgo the preset idea. If you want to switch to different character sounds then you will unfortunately have to individually set each SE parameter to a different one, but I plan to store those plugin commands in common events to use when I wish. It’s tedious but it requires less programming.

The problem is that while I can define each parameter, no sound plays when dialogue begins printing. I am not good at javascript, the only coding language I have familiarity with is HTML, so I don't know where the mistake is.
this one can also be extremly shorten it to a simple struct => set any amount of SE you want
so it isn't limited to 15, but to endless (100+) or more, depending how its used.

so you basictly only need 1 plugin command or use a escape character to grab the date per text box.
but I don't know if its each letter or per word.

but this is an old plugin, and there are some cleaner alternatives too like KC_TextSounds.

but the sample videos using voice sounds, so if you want "random" sound from a target,
I could rewrite this one and add the option to play sound randomly per word.

this require some time, but its perfectly doable.
it just needs an extra parameter to allow random sounds from the list you add there (static (1) multiple, (2 or more).
this one can also be extremly shorten it to a simple struct => set any amount of SE you want
so it isn't limited to 15, but to endless (100+) or more, depending how its used.

so you basictly only need 1 plugin command or use a escape character to grab the date per text box.
but I don't know if its each letter or per word.

but this is an old plugin, and there are some cleaner alternatives too like KC_TextSounds.

but the sample videos using voice sounds, so if you want "random" sound from a target,
I could rewrite this one and add the option to play sound randomly per word.

this require some time, but its perfectly doable.
it just needs an extra parameter to allow random sounds from the list you add there (static (1) multiple, (2 or more).
Are you offering to re-write KC_TextSounds to fit this plugin idea or to fix the code I sent with a randomized play function that actually works? Referring to KC, it would be much more breezy to have an endless amount of sound effects that can be put in an individual preset. If you are actually offering to fix my bastardized GALV code then that is good too, I would just like for this idea to be manifested in some way. Apologies for asking, I just want to get full clarification.

A sample being played Per Word is probably a lot better than per letter, as I can imagine ‘per glyph’ may sound overwhelming. An option to switch between ‘per letter’ or ‘per word’ would be convenient if plausible. The entire plugin's function is to randomly play an SE per word printed, so it being an ‘option’ doesn’t make sense to me.
Here are examples of how I think it should sound:
For what it's worth, those examples are not doing what you describe. They aren't dynamically-generated sounds, they're actual, pre-recorded audio files that are played for each message.



You can do that by manipulating public domain audio like the creators of that game did and putting a Play SE event command in front of each Show Text line.
Are you offering to re-write KC_TextSounds to fit this plugin idea
I ment galv sounds which you had in the spoiler.
KC is far more extended on what it does.
I ment galv sounds which you had in the spoiler.
KC is far more extended on what it does.
Okay, thank you. Again, apologies for asking.
I hope your re-writes to the plugin go well!
Okay, thank you. Again, apologies for asking.
I hope your re-writes to the plugin go well!
didn't start it, but if you need it, I rewrite it with randomize text sounds
per word if that is what you seek.

I'm almost done with my other plugin I'm working on, just need to fix some
stuff and add a more streamlined flow for it.

if you have no deadline, I work after it, and send you by DM to test it to see if it works.
from there, I can fix some code if it doesn't work or require modifications.

Original thread: https://forums.rpgmakerweb.com/threads/multi-sample-text-sound-effect-plugin-request.183388/