Skip to content
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

[feat]: dotenv and multithreading #94

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

allen-n
Copy link

@allen-n allen-n commented Nov 15, 2024

Adds support for reading env from a .env file, and adds multithreading to the azure tts provider to speed up throughput

@p0n1
Copy link
Owner

p0n1 commented Nov 15, 2024

Hi @allen-n. Thanks for contributing. I'll review and test this PR when I'm available. One quick question here: Is the conversion process stable and reliable when using multithreading to access Azure to accelerate TTS? Looking forward to your feedback from intensive testing.

@allen-n
Copy link
Author

allen-n commented Nov 15, 2024

Hey @p0n1 - I've done quite a bit of single chapter at a time testing, but let me do a more thorough test of a larger swathe of a book and get some benchmarks on the speed-up and stability, I can ping back here once I've had a chance to do so!

@allen-n
Copy link
Author

allen-n commented Nov 19, 2024

image
This is the performance gain I'm seeing in larger scale testing, the google drive link below has a sheet with the specific stats and output audio files, which all sounded correct to me.

https://drive.google.com/drive/folders/16gBmNx41DpAlxxSC1txpiXBZmnqOleGh?usp=sharing

The compressed audiobook_output folder contains chapters from Harry Potter and the Methods of Rationality (a fan fic that isn't monetized). The google sheet specifies which chapters were created in the multi threaded vs single threaded environment. Sometimes I did both for a given chapter, which resulted in the suffix at the end of the file name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants