-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a sample search replace file #89
Comments
I also wonder if we should consider having two files - an included on that had been throughly vetted and custom replacements. |
Hey @haydonryan . Thanks for reaching out. Not sure if the word replacement you mentioned would be something similar with this PR #80 we have merged.
Besides, just curious about which TTS engine are you using? |
Oh yes good point - it's definitely going to be specific to the TTS engine. I'm currently using piper, but have been thinking about trying https://github.com/coqui-ai/TTS, but as this isn't currently a supported option, I'd export the text files before passing it on. Still looking for the best free TTS system. I like piper but the lack of GPU acceleration is frustrating. |
So the readme is helpful - but what regular expression syntax is it using? Eg in my script to run epub_to_audiobook I have:
and some involve punctuation eg:
|
I dug into the code. seems it's calling re.sub. Therefore python regex format is the one it's doing.
This as a search and replace file didn't work. however this did:
Also I don't think it should be one regex per line, it's highly lkely that you'll get more than one match - eg:
Better to run the search and replace over the whole file. |
Why would this lead to '70.3 billion dollars'? |
sorry i fudged the example, the example above would be 70 billion dollars |
Loving this app. Thankyou all for the great work.
It would be good to crowd source some of the word replacements
There are a bunch of clear ones based on the books I read.
$1 million reads as dollar one million
2010 reads as two thousand ten.
I'm currently doing these changes on the command line. Happy to contribute mines just need to confirm the format.
The text was updated successfully, but these errors were encountered: