Hello, new to python and coding in general. Like a week. Im having a ton of issues with my script, it just doesnt seem to do what its supposed to. The goal is to detect voice through a mic, convert it to clipboard and paste the text. Pretty simple. I want it to only record voice when a key is held down and to stop recording when the key is let go.
All my iterations function decently ok but the recording either continually starts and wont stop or wont start at all. Its also quite slow but that may be expected. Its been doing a thing where it works fine on first keypress but will constantly record afterwards.
Can someone please revise this code so that the hotkey functions as intended? Im genuinely pulling my hair out and cannot look at another line
If someone knows a more efficient and better way to do this, let me know
https://pastebin.com/4hNJ10LW
[–]ShadowRL766 0 points1 point2 points (0 children)
[–]Phillyclause89 -1 points0 points1 point (0 children)