From e000fab086453ac2899f46d78c462d8b8b946f3a Mon Sep 17 00:00:00 2001 From: guanjihuan <34735497+guanjihuan@users.noreply.github.com> Date: Tue, 20 Jul 2021 13:00:09 +0800 Subject: [PATCH] version 0.0.14 --- PyPI/setup.cfg | 2 +- PyPI/src/guan/audio.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index f341651..7429fa8 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.0.13 +version = 0.0.14 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan/audio.py b/PyPI/src/guan/audio.py index 5f6ecba..76bb8a1 100644 --- a/PyPI/src/guan/audio.py +++ b/PyPI/src/guan/audio.py @@ -55,7 +55,7 @@ def pdf_to_text(pdf_path): def pdf_to_audio(pdf_path, rate=125, voice=1, read=1, save=0, print_text=0): import pyttsx3 text = pdf_to_text(pdf_path) - text = text.replace('\n', '') + text = text.replace('\n', ' ') if print_text==1: print(text) engine = pyttsx3.init()