From 593d21675ec0e7773eead522e349f71c46ee6bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= Date: Sat, 3 May 2025 23:15:06 +0300 Subject: [PATCH 1/2] Update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 93493cb..ab4f1f9 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ With voice mixer, you can create custom voices by mixing different voice models. When you process ePUB or PDF files, abogen converts them into text files stored in your temporary directory. When you click "Edit," you're actually modifying these converted text files. In these text files, you'll notice tags that look like this: ``` - +<> ``` These are chapter markers. They are automatically added when you process ePUB or PDF files, based on the chapters you select. They serve an important purpose: - Allow you to split the text into separate audio files for each chapter @@ -116,10 +116,10 @@ These are chapter markers. They are automatically added when you process ePUB or You can manually add these markers to plain text files for the same benefits. Simply include them in your text like this: ``` - +<> This is the beginning of my text... - +<> Here's another part... ``` When you process the text file, abogen will detect these markers automatically and ask if you want to save each chapter separately and create a merged version. From 3bbb88d4468815345ff2386e13b32d783a93b0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= Date: Sun, 4 May 2025 00:14:01 +0300 Subject: [PATCH 2/2] Update Dockerfile --- abogen/Dockerfile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/abogen/Dockerfile b/abogen/Dockerfile index a4fd02a..af76df7 100644 --- a/abogen/Dockerfile +++ b/abogen/Dockerfile @@ -4,7 +4,6 @@ # Use a docker base image that runs a window manager that can be viewed # outside the image with a web browser or VNC client. # https://github.com/jlesage/docker-baseimage-gui - FROM jlesage/baseimage-gui:debian-12-v4 # Load stuff needed by abogen @@ -36,15 +35,8 @@ RUN echo '#!/bin/bash\nsource /app/venv/bin/activate\nexec abogen' > /startapp.s && mkdir /app /shared \ && chown 1000:1000 /app /shared \ && chmod 755 /app /shared - -# Switch to user 1000 to create the virtual environment USER 1000:1000 RUN python3 -m venv /app/venv - -# Make /app the working dir, copy your project in, and install from “.” -COPY . /app/ -WORKDIR /app -RUN /bin/bash -c "source venv/bin/activate && pip install ." - -# Change back to root for the base‐image startup scripts -USER root \ No newline at end of file +RUN /bin/bash -c "source /app/venv/bin/activate && pip install abogen" +# Change back to user ROOT as the startup scripts inside base image needs it +USER root