@Starman Thanks for getting back.
Since the requirement here is to convert the speech to text while taking the input from microphone, You can leverage the sample provided here:
Please refer the function recognize_from_microphone().
Also note that this github code which you shared https://github.com/DougDougGithub/Babagaboosh is open source, so if you are facing any issues, you should report it under its issue section.
If you feel its related to the proxy / firewall, as an isolation step, try to bypass it or test your application from a different network and see if that works.
If you cannot bypass your proxy, then you can use the SpeechConfig SetProxy() call and add the proxy details in your application:
https://learn.microsoft.com/en-us/cpp/cognitive-services/speech/speechconfig#setproxy
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.