Sleek, easy to use text-to-speech web application for converting LaTeX documents into spoken audio.
Explore Tex2Speech Docs »
To run this locally
Note: You need to have Python on your machine and have an active Amazon Web Services account
- Clone this repository
- Create a virtual environment in root directory
python3 -m venv env
- Activate it
source env/bin/activate
on Mac/Linux orsource env/Scripts/activate
on Windows - Run
pip3 install -r requirements.txt
to install all dependencies - Install the AWS CLI by running
pip3 install awscli
then runaws configure
add in your AWS Secret Key and Access Key - Create directory called instance in the
latex2speech/app
directory - Create a file called config.py in the instance directory
instance/config.py
- Create variable in config.py called
SECRET_KEY
and assign it a random generated key (string of random characters) - To run project locally run
python3 application.py
To run tests
Run the command python3 -m pytest
and all tests should run. If you want a specific file to run use python3 -m pytest tests/unit/test_name.py
for example.
To find how much code coverage there is, run coverage run -m pytest
to create a .coverage file. Run coverage report
to get full details of the report.
Tex2Speech documentation is included in this repository under the wiki, it is also built and publicly hosted on Vercel at https://tex2speech-website.vercel.app/.
- Quickly and conveniently upload LaTeX and download mp3 with an intuitive web interface
- Convert .bib files along with LaTeX
- Upload and convert multiple LaTeX files at a time, as well as files zipped in .zip or .tgz files
- Wide array of supported LaTeX functions
- Unambiguous spoken math equations
This project is available under the MIT license and contributions are welcomed. If you would like to contribute, please fork the repository and create a PR.