update
This commit is contained in:
parent
a2c580e9ef
commit
e853d1ed07
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.0.44
|
version = 0.0.45
|
||||||
author = guanjihuan
|
author = guanjihuan
|
||||||
author_email = guanjihuan@163.com
|
author_email = guanjihuan@163.com
|
||||||
description = An open source python package
|
description = An open source python package
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
# others
|
# others
|
||||||
|
|
||||||
|
import guan
|
||||||
|
|
||||||
## download
|
## download
|
||||||
|
|
||||||
def download_with_scihub(address=None, num=1):
|
def download_with_scihub(address=None, num=1):
|
||||||
@ -109,7 +111,7 @@ def pdf_to_text(pdf_path):
|
|||||||
|
|
||||||
def pdf_to_audio(pdf_path, rate=125, voice=1, read=1, save=0, print_text=0):
|
def pdf_to_audio(pdf_path, rate=125, voice=1, read=1, save=0, print_text=0):
|
||||||
import pyttsx3
|
import pyttsx3
|
||||||
text = pdf_to_text(pdf_path)
|
text = guan.pdf_to_text(pdf_path)
|
||||||
text = text.replace('\n', ' ')
|
text = text.replace('\n', ' ')
|
||||||
if print_text==1:
|
if print_text==1:
|
||||||
print(text)
|
print(text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user