From 100ed3e4671c1b2c0501deee45d853e1704cf386 Mon Sep 17 00:00:00 2001 From: Claudio Santini Date: Tue, 11 Feb 2025 09:33:48 +0100 Subject: [PATCH] v0.4.3 --- README.md | 30 +++++++++++++++++++++--------- poetry.lock | 41 ++++------------------------------------- pyproject.toml | 3 +-- 3 files changed, 26 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 3461bb8..fb282ec 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,13 @@ On a Google Colab's T4 GPU via Cuda, **it takes about 5 minutes to convert "Anim On my M2 MacBook Pro, on CPU, it takes about 1 hour, at a rate of about 60 characters per second. -## How to install and run +## How to install the Command Line toool If you have Python 3 on your computer, you can install it with pip. You also need `espeak-ng` and `ffmpeg` installed on your machine: ```bash -sudo apt install ffmpeg espeak-ng libgtk-3-dev # on Ubuntu/Debian 🐧 +sudo apt install ffmpeg espeak-ng # on Ubuntu/Debian 🐧 pip install audiblez ``` @@ -36,13 +36,7 @@ brew install ffmpeg espeak-ng # on Mac 🍏 pip install audiblez ``` -Then, to run the graphical interface, just type: - -``` -audiblez-ui -``` - -If you prefer the command-line instead, you can convert an .epub directly with: +Then you can convert an .epub directly with: ``` audiblez book.epub -v af_sky @@ -53,6 +47,24 @@ and at the end it will produce a `book.m4b` file with the whole book you can lis audiobook player. It will only produce the `.m4b` file if you have `ffmpeg` installed on your machine. +## How to run the GUI + +The GUI is a simple interface to convert an epub file to an audiobook. +You need some extra dependencies to run the GUI. + +``` +sudo apt install ffmpeg espeak-ng +sudo apt install libgtk-3-dev # just for Ubuntu/Debian 🐧, Windows/Mac don't need this + +pip install audiblez pillow wxpython +``` + +Then you can run the GUI with: +``` +audiblez-ui +``` + + ## Speed By default the audio is generated using a normal speed, but you can make it up to twice slower or faster by specifying a speed argument between 0.5 to 2.0: diff --git a/poetry.lock b/poetry.lock index 29351b5..cac5f6e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1341,14 +1341,14 @@ files = [ [[package]] name = "misaki" -version = "0.7.10" +version = "0.7.12" description = "G2P engine for TTS" optional = false python-versions = "<3.13,>=3.8" groups = ["main"] files = [ - {file = "misaki-0.7.10-py3-none-any.whl", hash = "sha256:1a85bdfa50f21f1ea0ac6744030fe99851a8933cadcaad80e9b84caa4e600b66"}, - {file = "misaki-0.7.10.tar.gz", hash = "sha256:5457bb829e8b88678c788bd76abffcce15747cbb73443b73419249f63dd8c91b"}, + {file = "misaki-0.7.12-py3-none-any.whl", hash = "sha256:bb71a0e85ff70557d96303560ac72ccf669a02fb126b3e0b38eed3215bb80b34"}, + {file = "misaki-0.7.12.tar.gz", hash = "sha256:cfe714488012ab6beaad08077ce782559f9f0e019989df8bfa3ebc7674f7c33f"}, ] [package.dependencies] @@ -3296,39 +3296,6 @@ files = [ {file = "wrapt-1.17.2.tar.gz", hash = "sha256:41388e9d4d1522446fe79d3213196bd9e3b301a336965b9e27ca2788ebd122f3"}, ] -[[package]] -name = "wxpython" -version = "4.2.2" -description = "Cross platform GUI toolkit for Python, \"Phoenix\" version" -optional = false -python-versions = "*" -groups = ["main"] -files = [ - {file = "wxPython-4.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:a83bc118417b715ee8fd7143faaf51adaa041ccae22cc6de99bc7f7bb7fc44ef"}, - {file = "wxPython-4.2.2-cp310-cp310-win32.whl", hash = "sha256:68923029a7e236374002af25c14aa311922b80f8d63e1f088e6176e12640fa3e"}, - {file = "wxPython-4.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:a1f506144173010ae3354980d1a1da6ffcaeed87f2b1be9eef43f60fc8faeaa4"}, - {file = "wxPython-4.2.2-cp311-cp311-macosx_10_10_universal2.whl", hash = "sha256:0fe3cb940f5da4f0ec61c3cf37e63c0f577f09a7b9a5d3d7cfc59399eb18cb3b"}, - {file = "wxPython-4.2.2-cp311-cp311-win32.whl", hash = "sha256:f63863d52272f8c841b22e7128a339b6d93f3e4d8307d98ea346fa1ec6fbc13b"}, - {file = "wxPython-4.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:008c55c60abb3dd66229e1849f10f6a7d5b9af9cc62de40fb9dec144686b5c4d"}, - {file = "wxPython-4.2.2-cp312-cp312-macosx_10_10_universal2.whl", hash = "sha256:5d536110a674cb44ff6112d910b26fe6b062d670a6c3840a41036abfe83acc6b"}, - {file = "wxPython-4.2.2-cp312-cp312-win32.whl", hash = "sha256:5298662b83792fa8e66e60fdc298dbc317fcf61c68facc506182c2914faef0db"}, - {file = "wxPython-4.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:ea0cc206d40d6749f98f60eae2105382685e26bbf6c5a62a853543a0f3fd0ad7"}, - {file = "wxPython-4.2.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e3a6f0eebb8176135991851adbb1648da7f3beb0378752117c3b7ee05e8e55c6"}, - {file = "wxPython-4.2.2-cp313-cp313-win32.whl", hash = "sha256:c9310864b088d0f68d212360f261c8fec46a543c952da21805177519622b8524"}, - {file = "wxPython-4.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:d8548ce4165e214601083d0d5767dba854a5e14f4e0ed4dbe56e2daf193a4575"}, - {file = "wxPython-4.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:e5ba9b29f64b466d2926c4a5c5a1b624f635c20b1c23ba27064ac9216d858b90"}, - {file = "wxPython-4.2.2-cp38-cp38-win32.whl", hash = "sha256:a391eacd10d0ba16333a186819307641803b0dc7a066d5fe4bd1c13f1cd2f44e"}, - {file = "wxPython-4.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:b68a4cc0e5b648a0856ffd399ce04e6b750d9dbfba325c4a1f6201dc8e9e4886"}, - {file = "wxPython-4.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:a8c58154e05bb63e7b45dfd0ee379d354dc3372199a858260575e2817908434f"}, - {file = "wxPython-4.2.2-cp39-cp39-win32.whl", hash = "sha256:f7b879f29d91ef847c5e88bfb7c34a732a35f016896b1b7f87bc3e3d2d0a5a96"}, - {file = "wxPython-4.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:c8d6509f5579732329df70070966a5d8152890e0213f9305801048f5e7408158"}, - {file = "wxPython-4.2.2.tar.gz", hash = "sha256:5dbcb0650f67fdc2c5965795a255ffaa3d7b09fb149aa8da2d0d9aa44e38e2ba"}, -] - -[package.dependencies] -numpy = {version = "*", markers = "python_version >= \"3.0\" and python_version < \"3.12\""} -six = "*" - [[package]] name = "zipp" version = "3.21.0" @@ -3353,4 +3320,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" python-versions = ">=3.9,<3.13" -content-hash = "f707c0bfe9b0824dcdc3287d3b4aab33ba66ec6ce1eacf15c4da4791572f7746" +content-hash = "cf552b00837bbecb202ae6b9044e8af01e8d770e88a9aa0132e9926f9383e8b4" diff --git a/pyproject.toml b/pyproject.toml index ecd6404..874163d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "audiblez" -version = "0.4.2" +version = "0.4.3" description = "Generate audiobooks from e-books (epub to wav/m4b)" authors = [ { name = "Claudio Santini", email = "hireclaudio@gmail.com" } @@ -16,7 +16,6 @@ dependencies = [ "spacy (>=3.8.3,<4.0.0)", "kokoro (>=0.7.9,<0.8.0)", "misaki[zh] (>=0.7.10,<0.8.0)", - "wxpython (>=4.2.2,<5.0.0)" ] exclude = [ "imgs",