Garry's Mod

Garry's Mod

52 ratings
How to Micspam in Garry's Mod (using Foobar2000)
By ✯Radek
So, I wrote another guide, huh?
In this guide, I'll be explaining how to use the voice chat function in GMod in a somewhat, well, unique way. And that is Micspamming.
You know those dudes who play Darude - Sandstorm or Michael Rosen YTPs through their mic? Well, now you know how to do this too! Just read this guide and you will be in the club.
Please note that this is not the fastest or most efficient way of doing this, it's just one way. I know you can just hold your phone infront of your mic and play spotify or soundcloud on it, but that's only if you have a mic, and then you have to make sure that the mic is not crappy.

For your information, this works for every source game, not just garry's mod.
   
Award
Favorite
Favorited
Unfavorite
What we need
First, we need to acquire the required tools for micspamming. In my guide, these are the following:

-Foobar2000
-VB Audio Virtual Cable

Foobar2000 is nothing more but a highly configurable audio player. It plays audio files in an organized fashion.
We're using Foobar2000 and not HLDJ because not only is HLDJ dead, it's also dependent on server settings, and in GMod, HLDJ would only work on ~2% of all servers. Foobar2000 is independent from serverside settings, and thus can be used anywhere. And I see SLAM being mentioned, which also seems to be a music player, but I know nothing about it.

Virtual Audio Cable is a more popular choice, but that one is not free, and the trial version has its limits. So we'll be using a free alternative.


Foobar2000: http://www.foobar2000.org/download
VB Audio Virtual Cable: https://vb-audio.com/Cable/

Extract the .zip file somewhere, and then run the VBCABLE_Setup.exe file, or the x64 variant. After the installation is done, you can delete the files.
Then, you should have something like this in your Sound settings:



For Foobar2000, simply download the installer, run it, and follow the instructions.
Setting up all the stuff
Now comes the part with setting up the audio cable. First, in Foobar2000:

Launch Foobar2000
In the Quick Appearance Setup that should pop up the first time you launch Foobar, I recommend using the Simple Playlist+Tabs layout. Choose any theme you prefer. To open those settings again, go to View>Layout>Quick Setup
Go to File>Preferences
Go to Playback>Output
For Device, set "CABLE Input (VB-Audio Virtual Cable)"




Then you need to go to the Playback tab, and tick "Stop playback after the current track", and untick "Reset the above when stopping".

Optionally, go to Keyboard Shortcuts and set various keyboard shortcuts. You can do it like this:

F8 - Playback/Stop
F9 - Playback/Play or pause
F10 - Previous
F11 - Next


Now we need to do something similiar in Steam.
Go to Settings, then to the tab Voice Chat, and for the Input Device, set "CABLE Output (VB Audio Virtual Cable)"

Garry's Mod Config
Now comes a pretty important step. Go to your garrysmod/cfg directory, and open the autoexec.cfg file, with any text editor. Paste these lines:

bind SOMEKEYHERE toggle alias toggle "micspamon" alias micspamon "alias toggle micspamoff; +voicerecord; voice_loopback 1" alias micspamoff "alias toggle micspamon; -voicerecord; voice_loopback 0"
Getting Music and things to micspam
You are probably in a need of something to micspam. Use whatever website that can convert YT/soundcloud stuff into sound files to get your unfunny YTPs and memes, or just regular songs.

Once you have all your preferred files downloaded, store them somewhere for easy access. To make them usable in Foobar2000, drag all the files into the foobar interface, and when needed, create seperate categories for it. I'll let you do the organizing in foobar.
NOTE: Renaming sound files makes them no longer work in foobar, you will have to place them there again, or rename them to the exact same name in foobar.

You might also need to nerf the audio files in order to sound less crappy with the incredibly outdated voice codec GMod uses. I'll let you decide if you want to do this, given that this guide is already complicated enough compared to the alternatives of achieving the exact same thing. But if you want to, then I'd recommend using Audacity for it.
All you need to do is change the project rate to 11025 Hz, decrease the amplitude (if it's high), and reduce the bass.

To test if it works, set up a multiplayer game through the Start New Game menu. Then, select an audio file in foobar, push the button you set in autoexec.cfg, and play your sound file, either through foobar directly, or with your hotkeys.
Now you are a walking jukebox!
Have fun and stuff!
I do not take any responsibility if you get banned from servers for doing this.
54 Comments
loriANS Jan 22, 2023 @ 10:26pm 
Nice, still working even it don't is a micspam for me i can roleplay and listen music with my friends thanks you so much for this.
Ashton May 21, 2022 @ 8:48am 
Why does it echo
IAmScrum Sep 5, 2021 @ 11:03pm 
Used to be able to do this no problem. The quality wasn't great but it wasn't unlistenable. For whatever reason, it's absolute TRASH now. The audio breaks up constantly for some songs and for other songs starts normal and then starts breaking up, like a speaker with a bad wire or something. Unless they pushed an update that made the voice codecs worse, something else is going on here.
Benjideaula Jul 14, 2021 @ 12:20am 
this worked for me for a while but all of a sudden my virtual cable just stopped working. it won't play audio in any source game and when I switch it as my default device I lose all sound from my headphones
The1WhoTheyCallEeper May 28, 2021 @ 7:25am 
there is no voicechat tab on settings
FunTon's 600lb Lumber Tumbler May 13, 2021 @ 8:08pm 
For Dr Autist:

Sometimes Gmod or source in general is just dumb, reinput the stuff into autoexec. If that doesn't work, I dont know whats going on, I'm no wizard for Source Engine
Dinorun1235 Feb 19, 2021 @ 1:04pm 
>stupid ass gmod crashes for no reason one day
>out of no where the micspam toggle no longer works nomatter what I do
anyone know a fix?
Niko Aug 14, 2019 @ 5:25pm 
best guide ever. +rep from shrek community
grexhh Aug 7, 2019 @ 3:47am 
how does one get to garrysmod/cfg directory?
jesse Jul 13, 2019 @ 10:26am 
damn ok... :GL_endorlight: