i have a text to speech program that can take the text i write and make a mp3 from it. i then take that mp3 and store it in a folder then use auto hot key.
auto hot key program takes code i wrote and makes it so when i press a button on my keyboard my computer plays the mp3 sound.
here’s the code for auto hot key:
code stars next line:
#SingleInstance, Force
+q::
loop, 1
{
sendinput, {`` down}
SoundPlay, C:\Users\user\Documents\voice\hello.mp3,wait
sendinput, {`` up}
}
return
end of code. in previous line.
i make 1 autohotkey file per letter. compile it by right clicking the file.
then double click the file the compile makes to run it, each time you boot up.
so now i have the sound play when i press the key on my keyboard, the key i press is “shift q”, the “+” means shift.
now how do i play the sound to the mic so that in the game when i press key to play sound the mic in the game starts and the mic plays the mp3?
i use another program called virtual cable “VB-CABLE Virtual Audio Device.”.
i install the virtual cable program, i set it to default in windows speaker properties for both recording and playback, and in recording i go to properties, listen, and check listen to device and choose from the list my regular speakers so i can hear from my speakers.
now when i go into the game and press the key on my keyboard the mic plays the mp3 sound. in the game i have to set the keys i choose in my auto hot key program so they don’t conflict with the keys the program set. namely shift, q, w, e, r, t, y, u, i, o.
i made this guide in case you wanted to use a mic but didnt want to speak into the mic this way the text to speech program can read canned text so you can talk to your team mates in a game and help them with the mic.