I can play mp3s in MZ but I don't know which scriptcalls pause, stop, or adjust the volume for them.

Either of these scriptcalls will play an mp3 (instead of an ogg).
option one
Code:
var audio = new Audio("audio/BGM/test.mp3");
audio.play();

option two
Code:
var audio = document.createElement("audio");
audio.src = "audio/BGM/test.mp3";
audio.play();

However, I do not yet know which corresponding scriptcall(s) will pause and/or stop the mp3 file once it is playing, and I don't know what scriptcalls will adjust the volume either. If you happen to know how to pause, stop or adjust the volume in this situation please share your expertise! Thank You!
If it's all going through the same system, then I imagine it'd be the same as usual.

There are event commands that can be used to stop BGM:
  • To stop it immediately, you can use Play BGM: (None).
  • To fade it out gradually, you can use Fadeout BGM.
As far as I'm aware, pause/playback is more complicated. For BGM there's the Save BGM and Replay BGM event commands.

Otherwise, here's a post I made about MV's audio, I think this all applies to MZ as well:
About pause/playback:
  1. The WebAudio API AudioContext has suspend and resume methods for this, e.g.
    JavaScript:
    WebAudio._context.suspend();
    WebAudio._context.resume();
    RMMV uses this single context for all audio, so this will affect all in-game audio simultaneously.

  2. The core scripts implement a seek method that can be used to get the current playback time for a given buffer, e.g.
    JavaScript:
    AudioManager._meBuffer.seek()
    I believe this can then be used as an offset for a buffer's play method:
    JavaScript:
    AudioManager._meBuffer.play(loop, offset);
    loop is true or false; offset is a number, e.g. the seek value.
If it's all going through the same system, then I imagine it'd be the same as usual.

There are event commands that can be used to stop BGM:
  • To stop it immediately, you can use Play BGM: (None).
  • To fade it out gradually, you can use Fadeout BGM.
As far as I'm aware, pause/playback is more complicated. For BGM there's the Save BGM and Replay BGM event commands.

Otherwise, here's a post I made about MV's audio, I think this all applies to MZ as well:
These traditional methods do not appear to work with either of the scriptcalls I used to get the mp3s to play. (with or without fossil, or in a new blank project)

While trying, I did some testing and found some things out. Hopefully this new information is useful in determining the problem:

First, the issue is not with the filetype being called, it is with the method I used (the scriptcall itself). Because calling an ogg with the two methods I posted works just as well as calling an mp3, but I can not control the oggs once called either. So far I can't stop or pause any file called this way regardless of filetype; ogg or mp3.
Second, when I call a file using the two new methods I posted, attempting to run the same script a second (or third, fourth, etc) time will call an additional version of the song to play over the one(s) already in the process of playing-- creating a stack of songs playing over themselves all jumbled. This behavior is different from the default behavior of calling an ogg through scriptcall or event command where it will not 'stack' if it is already playing.
Could this mean the files called through this method have no ID or something?
I know with pictures the engine needs an ID (layer) to determine what picture to interact with.

Maybe its simpler for me not to bother with this new method. All I was trying to do was find a scriptcall to call an mp3. Because every scriptcall to call audio that I have found does not bother to specify the extention and so simply calls oggs by default.
Well, you're bypassing RPG Maker's functionality. So it makes sense the included event commands and script calls won't work - but you should find the documentation for this kind of object wherever you looked it up in the first place, no?

Here's an article about it:

And documentation:
Well, you're bypassing RPG Maker's functionality. So it makes sense the included event commands and script calls won't work - but you should find the documentation for this kind of object wherever you looked it up in the first place, no?

Here's an article about it:

And documentation:
Thanks, I'll read up on it and see if I can find anything I can use!
Oh, I overlooked that you're using Audio instead of MZ's WebAudio. 😴
Oh, I overlooked that you're using Audio instead of MZ's WebAudio. 😴
Yeah, its fine.
It is very simple to call mp3s using the game's default scriptcalls by changing the extention the game adds by default from "ogg" to "mp3" under AudioManager.audioFileExt = function() inside "js/rmmz_managers.js"

The reason I was trying to find the proper scriptcalls ingame without doing that is I am trying to learn more about the MZ engine and how to control/manipulate it.
Thanks for trying to help!

Original thread: https://forums.rpgmakerweb.com/threads/i-can-play-mp3s-in-mz-but-i-dont-know-which-scriptcalls-pause-stop-or-adjust-the-volume-for-them.161156/