Do you know if is it possible to set a macro in order to set in-game system audio volume?

For Example, when i am in Teamspeak i have to set in-game audio at low level in order to hear my teammate properly. However when i am out of TS i would be able to reset audio volume quickly... it would be awesome if it was such feature like:

/set master audio 100%

/set master audio 10%

or something like that...