MacOS has a great tool, called say which just says what you pass it. For example
say "Hello" and next you'll hear your device say Hello.
Where this is really useful is when you want to do a long running action and get notified when it is done. For example
git clone https://github.com/torvalds/linux.git && say "clone complete"
So, what about for Windows? You can do something similar with Powershell. First the setup:
$say = New-Object System.Speech.Synthesis.SpeechSynthesizer
Once you have that in place you can use it like this:
git clone https://github.com/torvalds/linux.git; $say.Speak("clone complete")