First, why? You're just wasting your time to be honest as if you keep using voice commands, there will be a cooldown on all voice commands, plus having something to bypass the cooldown just means you will just be spamming.
Second, You're making yourself a easy target. say you're facing a enemy soldier, and he gets you to 36 HP. so you run and/or hide but thanks to the script you have, your position is expose cause you keep calling out for a medic, which the enemy soldier can hear.
If you want to be healed. Fall back pick up some health, get to a safe place away from the battlefield and call for a medic, or fall back to your spawn and use the lockers (last one is if you're near your spawn).