Different Text Sounds for Different Characters?

I'm using Moby's Text SE script for giving each letter of a message a sound and it works perfectly. Exceeding my expectation with the added bonus of randomly pitching different letters. My question is: Is it possible to change the sound for different characters, so it'll sound like they have individual voices?

(I'm sure there's a way to do it through coding, but I'm basically below a preschooler's level in coding.
Maybe it could be possible through the advanced script event, but I just wouldn't know where to even begin...)
from the looks of it, No you can't.
is it possible? Yes it might be possible and use a scriptcall if you modify the script
so you can call it before showing the text.

Now while I dont know ruby, I cant modify it nor test it while I dont own vx ace.
you have to do it without that or someone with ruby knowledge to modify it so, that
a a scriptcall can be used for the sound.

do you want each actor/npc has its individuel sounds? or only actors? or
actors + npc + evil npc's (max 3 sounds in this case)?
I was planning on each individual interactable event (NPCs or Actors) that talks to have their own sound. (Easily giving each NPC a sense of individuality.)
I went to the liberty of making it so each variable can be altered; add this in below the existing script:

Spoiler
Ruby:
=begin

Use the following script calls:

  $game_message.reset_text_se
    - Reset all variables back to the default
 
  $game_message.text_se_filename = "filename"
    - Set the text SE filename
    
  $game_message.text_se_volume = 100
    - Set the text SE volume (needs to be an integer)
    
  $game_message.text_se_pitch = [20, 130]
    - Set the text SE pitch (needs to be an array)
    
  $game_message.text_se_interval = 6
    - Set the text SE interval (needs to be an integer)

=end

module Sound
  def self.play_text_se
    file = "Audio/SE/" + $game_message.text_se_filename
    pitch = rand($game_message.text_se_pitch[1] - $game_message.text_se_pitch[0]) + $game_message.text_se_pitch[0]
    Audio.se_play(file, $game_message.text_se_volume, pitch)
  end
end

class Game_Message
  attr_accessor :text_se_filename, :text_se_volume, :text_se_pitch, :text_se_interval
 
  alias amn_soundvar_gamemsg_clear  clear
  def clear
    amn_soundvar_gamemsg_clear
    reset_text_se
  end
 
  def reset_text_se
    @text_se_filename = TSE::SE
    @text_se_volume   = TSE::Volume
    @text_se_pitch    = TSE::Pitch
    @text_se_interval = TSE::Interval
  end

end

class Window_Message < Window_Base

  alias amn_soundvar_windmsg_procnormchar process_normal_character
  def process_normal_character(c, pos)
    tse_process_normal_character(c, pos)
    Sound.play_text_se if @character % $game_message.text_se_interval == 0 && !@line_show_fast
    @character += 1
  end

end
Thanks, but I'm not sure how I would go about changing it for each character.

Edit:
Nevermind! I've got it figured out now! I just had to use the script calls!
(To anyone wondering: to change it, you paste one of the options i.e. " $game_message.text_se_filename = "filename" " as a script event (3rd page under "advanced) above the text you want to change!)

Thank you so much, A-Moonless-Night!! You've saved me!! 🙏

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/different-text-sounds-for-different-characters.117939/