Skip to content

QCCS/pdftovoice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#PDF转语音 pdftovoice

环境

macOS node 8.0.0 系统依赖

brew install imagemagick
brew install graphicsmagick
brew install ghostscript

node依赖

npm i pdf2pic

步骤

  • pdf 转图片
  • 图片转文字
  • 文字转语音

测试

pdf 转图片:

//批量把pdf转化为图片
node src/1pdf_to_image.js

图片转文字

node src/2get_text.js

文字转语音

node src/3text_to_voice.js

百度语音合成

参考文档

百度AI开放API

About

pdf转语音

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published