Giter Club home page Giter Club logo

Comments (4)

p0n1 avatar p0n1 commented on August 25, 2024 2

You're welcome. I havenโ€™t noticed that the audio quality of the audiobooks I converted is poor. I am very interested in trying other options and comparing their differences. I will implement this optional feature later. Thanks for the suggestion.

from epub_to_audiobook.

p0n1 avatar p0n1 commented on August 25, 2024 2

Hi @7enChan. I just released a new version and now you can choose more audio formats now.

Check the usage section here for details https://github.com/p0n1/epub_to_audiobook/tree/main#usage. Only MP3 format supported now because I don't want to deal with other formats currently.

I think I can tell the difference on audio quality now if I just choose the audio-48khz-192kbitrate-mono-mp3 config which is the highest and best. But the file size is large though. LOL. ๐Ÿ˜Š

from epub_to_audiobook.

7enChan avatar 7enChan commented on August 25, 2024 1

I just tried the ogg-24khz-16bit-mono-opus and ogg-48khz-16bit-mono-opus setting. I can hardly tell the difference to the default audio-24khz-48kbitrate-mono-mp3 for the audiobook. Do you have any preference on the settings from the list? I'd love to hear and learn your experience.

And I found we have to deal with filename extensions when enabling custom audio formats or just let user pass in.

output_file = os.path.join(output_folder, f"{idx:04d}_{title}.mp3")

And we have to deal with tags for other audio formats.

# Add ID3 tags to the generated MP3 file
audio = MP3(output_file)
audio["TIT2"] = TIT2(encoding=3, text=title)
audio["TPE1"] = TPE1(encoding=3, text=author)
audio["TALB"] = TALB(encoding=3, text=book_title)
audio["TRCK"] = TRCK(encoding=3, text=str(idx))
audio.save()

Thank you for your reply. I previously used a TTS app that also utilized Azure TTS services, and I often use the audio-24khz-96kbitrate-mono-mp3 format. Honestly, I don't hear a significant difference compared to the current default of 48kbitrate. However, since I have a limited collection of audiobooks and ample disk space, and I also own a HiFi player ๐Ÿ˜„, I'd prefer to use a higher bitrate format. Nonetheless, if this would compromise the overall user experience, I'm okay with sticking to the current default format. It's already fantastic as it is, and I appreciate your efforts ๐Ÿ™.


from epub_to_audiobook.

p0n1 avatar p0n1 commented on August 25, 2024

I just tried the ogg-24khz-16bit-mono-opus and ogg-48khz-16bit-mono-opus setting. I can hardly tell the difference to the default audio-24khz-48kbitrate-mono-mp3 for the audiobook. Do you have any preference on the settings from the list? I'd love to hear and learn your experience.

And I found we have to deal with filename extensions when enabling custom audio formats or just let user pass in.

output_file = os.path.join(output_folder, f"{idx:04d}_{title}.mp3")

And we have to deal with tags for other audio formats.

# Add ID3 tags to the generated MP3 file
audio = MP3(output_file)
audio["TIT2"] = TIT2(encoding=3, text=title)
audio["TPE1"] = TPE1(encoding=3, text=author)
audio["TALB"] = TALB(encoding=3, text=book_title)
audio["TRCK"] = TRCK(encoding=3, text=str(idx))
audio.save()

from epub_to_audiobook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.