项目
在 GitHub 查看
danthelion/doc2audiobook
关于
Convert text documents to high fidelity audio(books).
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文doc2audiobook.py
Extract text from a document (textract) and convert it into a natural sounding synthesised speech (Cloud Text-To-Speech), which is able to leverage Deepminds Wavenet models.
Example
Available source formats (from textract)
- .csv
- .doc
- .docx
- .eml
- .epub
- .gif
- .jpg and .jpeg
- .json
- .html and .htm
- .mp3
- .msg
- .odt
- .ogg
- .png
- .pptx
- .ps
- .rtf
- .tiff
- .txt
- .wav
- .xlsx
- .xls
Prerequisites
GCP
- Select or create a Google Cloud Platform project.
- Enable billing for your project.
- Enable the Cloud Text-to-Speech API.
- Setup Authentication using a Service Account.
Host Machine
- Docker
/doc2audiobook/data/input: directory to hold all input files./doc2audiobook/data/output: directory to store all output files./doc2audiobook/.secrets/client_secret.json: GCP authentication token.
Build
git clone [email protected]:danthelion/doc2audiobook.git
cd doc2audiobook
docker build -t doc2audiobook .
Run
Make sure to put your documents in the folder that is mapped to /data before running!
List available voices
docker run \
-v /doc2audiobook/data:/data:rw \
-v /doc2audiobook/.secrets/client_secret.json:/.secrets/client_secret.json:ro \
doc2audiobook -list-voices
Convert all documents in the mapped input folder to audiobooks using the en-GB-Standard-C voice.
docker run \
-v /doc2audiobook/data:/data:rw \
-v /doc2audiobook/.secrets/client_secret.json:/.secrets/client_secret.json:ro \
doc2audiobook --voice en-GB-Standard-C
Convert a single document in the mapped input folder to an audiobook using the en-GB-Standard-C voice.
docker run \
-v /doc2audiobook/data:/data:rw \
-v /doc2audiobook/.secrets/client_secret.json:/.secrets/client_secret.json:ro \
doc2audiobook --voice en-GB-Standard-C --input test_input.txt
探索相关项目
加载中…