A small tool that redirect tts output to audio input. Based on edge-tts
.
You will need some audio cable device to do the redirection. I test it on Virtual Audio Cable. But I suppose it would work on other choices.
I tested it on python 3.11
and it works. It does not seem to work with 3.8
. Anywhere between them is untested.
If you are using a different audio cable device, you may need to change the device name in utils.py
.
Just run python main.py
and it will start accept tts input. Set your voice chat application input to audio cable output and it's done.
WASAPI
complains about sample rate but DirectSound
is OK.