version 0.0.13

This commit is contained in:
guanjihuan 2021-07-20 10:43:32 +08:00
parent cd3db00afe
commit 0612a24cfa
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = guan
version = 0.0.11
version = 0.0.13
author = guanjihuan
author_email = guanjihuan@163.com
description = An open source python package

View File

@ -55,6 +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', '')
if print_text==1:
print(text)
engine = pyttsx3.init()