p0n1 / epub_to_audiobook

EPUB to audiobook converter, optimized for Audiobookshelf
MIT License
888 stars 86 forks source link

feat: add Edge TTS provider #30

Closed xtmu closed 5 months ago

xtmu commented 5 months ago

Edge TTS and Azure TTS are almost same,but Edge TTS don't require API Key because it's based on Edge read aloud functionality, it's free to use.

p0n1 commented 5 months ago

@xtmu Thanks for contributing. Love this! Will try to debug this on or after Monday.

I'm quite curious about if Edge TTS could be used to convert a whole book without being banned by Microsoft.

BTW, We have a tiny discord server https://discord.gg/pgp2G8zhS7. Invite you to join if you want to discuss anything.

xtmu commented 5 months ago

For now it could be used to converting a whole book. I tested a book parsed 60 chapters among which max length is 27k Chinese characters and get a 45 mins audio. Note chapter is not split into chunks as Azure provider do so need to keep connection alive during converting, actually I get interrupted audio(10min max) if in proxy environment, I suppose it's the GFW bothering.

Here is some information:

edge-tts bypassed text length limit and seems won't be banned if conections are not thousand parallel.

p0n1 commented 5 months ago

Looks good. Will test, review and merge asap!