aedocw / epub2tts-edge

epub2tts-edge uses Microsoft Edge cloud-based TTS to create a full featured audiobook m4b from an epub or text file
GNU General Public License v3.0
77 stars 13 forks source link

Replace "shhh" with something more friendly to human ear #33

Open darauble opened 1 month ago

darauble commented 1 month ago

This is an annoying quirk of English language, but most of TTSs (including Edge) pronounce longer "shhhh" like /ˈɛs ˈeɪtʃ ˈeɪtʃˈeɪtʃ/. This could be demonstrated with simple:

edge-playback -t '"Hey, shhhhh", she whispered.'

Only shh is pronounced correctly (whatever that means). So I suppose that in the book pre-processing (of course, with an optional switch on, like --shhh) all shh+[^a-gi-z] could be replaced with shh.

Just for record: I myself replace all shhh+s with shush in the exported text file, it is also read quite well by TTS.