Skip to content

convert epub file to txt files separated according to TOC, then to audio file using edge-tts

License

Notifications You must be signed in to change notification settings

Attt/epub2audiobook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

epub2audiobook

convert epub file to txt files separated according to TOC, then to audio file using edge-tts or apple-tts in macOS called 'say'

usage

# use edge_tts with default voice
./epub2audiobook.py /path/to/epub /path/to/output/

# specify voice name
./epub2audiobook.py --voice_name zh-CN-YunyeNeural /path/to/epub /path/to/output/

# specify tts method
./epub2audiobook.py --voice_name 'TingTing' --tts_method mac_say /path/to/epub /path/to/output/

# run without outputs
./epub2audiobook.py --dry_run /path/to/epub /path/to/output/

When using the tts method of mac_say and the --voice_name option is set to 'auto', which is the default value, the currently activated voice on the system will be used. This is very useful because the say -v command cannot select some voices such as Siri

references

About

convert epub file to txt files separated according to TOC, then to audio file using edge-tts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages