MZ Are there Text to Speech (TTS) plugins for MZ?

I would like my windows voice to read the game text.
I see a few plugins for MV, like https://dismal-science.itch.io/rmmv-text-to-speech-plugin

Hopefully someone has information or a link for MZ. Thank you!
it might work in MZ as it is, if not, try FOSSIL.

However, it can be outdated as it can work with specific versions,
but while you may not edit the code, its hard to tell if it work, fix or
modify for later version (which you can try to ask permission).
but I dont see any other plugins for MZ specific for it.
Depending on what kind of text you intend to synthesize, and on how often you intend to do it, you might not need a plugin. The Web Speech API is available in MZ, and it's not too hard to use.

You can put this into a script command in an event, and your game will talk to you when you activate the event:
JavaScript:
const synth = window.speechSynthesis;
const utterThis = new SpeechSynthesisUtterance("Booty butts");
synth.speak(utterThis);

If you need to use a plugin, you also could try to use the one that you linked. I haven't looked at the code, but there is a good chance it will work as-is in MZ. None of the parts of the engine that the plugin should be messing with have changed between MV and MZ.
if the plugin does not work, but the above does and you need it alot.
you can turn it into a tiny plugin for easier use:

JavaScript:
Function TTS(textspeak){
    const synth = window.speechSynthesis;
    const utterThis = new SpeechSynthesisUtterance(textspeak);
    synth.speak(utterThis);
};

than use it as simple as:

TTS("Hello World, this could work");

and it should speak it out.
as Arthran code works in MZ as it is (which I cannot tell), it should be far
easier to use than for MV which might not have it and require the plugin.
Wow, I didn't realize RPG Maker had this functionality built in! Thank you very much for showing me this.

Is there somewhere I can read up on it? Because I'd like to know a few basic commands... mainly for pitch, volume, and speed.
I would also like to know whether or not I can select the installed voice.

This is fantastic!

EDIT: I was actually able to locate the documentation

Adding these in will alter pitch and speed, for anyone curious:

utterThis.pitch = pitch.value;
utterThis.rate = rate.value;

Again, Thank you very much for helping me!
Running this scriptcall gives me a list of all installed voices on my system:


const allVoicesObtained = new Promise(function(resolve, reject) {

let voices = window.speechSynthesis.getVoices();

if (voices.length !== 0) {

resolve(voices);

} else {

window.speechSynthesis.addEventListener("voiceschanged", function() {

voices = window.speechSynthesis.getVoices();

resolve(voices);

});

}

});



allVoicesObtained.then(voices => console.log("All voices:", voices));

voices.png

but I don't understand what scriptcall would allow switching voices.
I feel like it should be something like

utterThis.voice = "IVONA 2 Amy - British English female voice [22kHz]";
or
utterThis.voice = SpeechSynthesisVoice[1];

but neither of those worked for me so I'm a bit confused now 😕
(Sorry for double post)
Running this scriptcall gives me a list of all installed voices on my system:




View attachment 270447
but I don't understand what scriptcall would allow switching voices.
I feel like it should be something like

utterThis.voice = "IVONA 2 Amy - British English female voice [22kHz]";
or
utterThis.voice = SpeechSynthesisVoice[1];

but neither of those worked for me so I'm a bit confused now 😕
(Sorry for double post)
This would do it:
JavaScript:
const synth = window.speechSynthesis;
const utterThis = new SpeechSynthesisUtterance("Booty butts");

const allVoicesObtained = new Promise(function(resolve, reject) {
    let voices = window.speechSynthesis.getVoices();

    if (voices.length !== 0) {
        resolve(voices);
    } else {
        window.speechSynthesis.addEventListener("voiceschanged", function() {
            voices = window.speechSynthesis.getVoices();

            resolve(voices);
        });
    }
});

allVoicesObtained.then(voices => {
    utterThis.voice = voices[1];
    synth.speak(utterThis);
});

However, in practice, adjusting the voices is going to be a bit more difficult, and probably will require you to make a plugin. The reason is because the available voices are different for everyone--it changes depending on the browser being used, as well as the voices that are installed on the user's system. For example, for me, on MZ, voice 1 is "Microsoft Zira - English (United States)". So if you were to arbitrarily use voice 1 in your code, I'd actually hear a completely different voice than you if I were playing your game.

So if you want to mess with the voices, then the best thing to do would probably be to create an option in your game's options menu or something like that, where the player can select the voice they want to use.
@Emily Frost
I like to observe user requests.

And I decided to take this project based on what you guys said, so here is the plugin done.

The same is free. I hope it helps you to continue creating your games!

Happy Making!

Download Here on mi Itchio
Thanks a lot. that will be very helpful.

Does anyone know if a speech to text plugin would be possible? I remember a MV plugin listening for the microphone, but do you know if there are windows stt functionalities like the tts one?

Original thread: https://forums.rpgmakerweb.com/threads/are-there-text-to-speech-tts-plugins-for-mz.159616/