Skip to content

Uses Google’s cloud speech-to-text software to convert text extracted from a .tex file into a series of audio clips. Originally built to assist in proof-reading my thesis

Notifications You must be signed in to change notification settings

mikeedjones/prooflisten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

prooflisten

A python program which uses Google’s cloud speech-to-text software to convert text extracted from a .tex file into a series of audio clips. Originally built to assist in proof-reading my thesis. I found it very useful, and have a few more details and some comparison clips on my blog.

Installation

To use the code you'll have to set yourself up with the google-cloud API. You can find an excellent quickstart guide here.

You can set the credential enviroment variables in an iPython console using os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = <credentials file>

You'll also need to install opendetex. I found the default detex program found in the tex installation loses a lot of the content from a tex file - equations, captions etc. Opendetex is much better. Opendetex and detex both follow \include commands.

Useage

python prooflisten.py <folder with tex file in it> <tex file name>

Google's cloud text-to-speech is priced depending on the voice used. Higher quality voices are more expensive. You get a million characters (~160k words) a month for free and it's $16 per million characters after that.

About

Uses Google’s cloud speech-to-text software to convert text extracted from a .tex file into a series of audio clips. Originally built to assist in proof-reading my thesis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages