The problem:
I am using a combination of hardware, software, and wires to generate an input biased to my given outputs. In essence, I am playing an electric keyboard and need the audio to be as clean as possible to minimize distortion and keep quality. But while I've been successful in achieving clean input audio (as checked using the software Audacity), I wanted to move on to playing my instrument live on a browser to an audience. However, to my dismay, no matter where I go or how I set things, the audio is basically destroyed.
When doing a test recording online in Google, or Edge, on several recorders to remove possible error, here are the results I see:
Four seconds in: audio is original and clean
Seven seconds in: the audio suddenly gets quieter
Ten-plus seconds in: my music is distorted, quiet, and unpleasing to the ears. However, when I stop playing for a couple of seconds or so and begin playing again, the quality does come back briefly before going back to the prior observations.
Materials and what I'm using:
Casio electric piano with 61 keys.
MIDI cable connection to compute
Computer is a Victus HP gaming laptop running Windows 11 Home version 24H2
Internet speed is 100 Mbps download, and 75 Mbps upload
I'm using FL Studio 21 to take the MIDI commands from the keyboard
I've downloaded VB-Audio cables (this is to route my output sounds into my input so I can record my piano internally)
I'm using the FL Studio ASIO device to sample the music at 192000 Hz and send its output to the VB-cable input
In the Windows sound mixer I've set my output device to be the VB-Audio input, and set my input device to be my VB-Audio output. (This completes the audio transfer)
I've set my microphone inputs and outputs to be defaults in their properties menus, and changed the output virtual cable to 1 channel, 24-bit, 192000 Hz, while the input virtual cable is at 24-bit, 48000 Hz. Both devices have exclusive mode enabled to let FL Studio access them.
What I've tried:
Tried using both Chrome and Microsoft Edge in their latest versions.
Tried several online recording sites to see if they were the culprit. (They all ended up doing what I described above.)
Tried recording the audio to Audacity to see if I was even getting clean audio in the first place since it's recording offline (for the most part yes, it worked almost flawlessly in this test).
Tried starting both Chrome and Edge through the Win+R command with the following code to disable any sound enhancement functionality: e.g. "chrome.exe --disable-audio-processing" (this didn't work unfortunately and ended up doing the same as described above.)
Tried routing my internet to my computer directly to check if maybe my internet was just too slow. (Which I feel safe to say it isn't.)
Conclusion:
I'm unsure what to do at this point as I have tried in many futile attempts to resolve this issue and would greatly appreciate ideas as to why it's doing what it's doing and how to fix it.
I'd like to say I'm confident that it's just how the browser receives the data, but I'm just unsure at this point.