PythonartificialintelligenceinterfaceTextToSpeech
100% didn't accidentally spell it with an extra i on accident or anything
A simple python program that generates an mp3 of an AI voice using ElevenLabs.
Important
On Linux, you need to install a CLI clipboard interface (xclip or wl-clipboard) for pyclip to use (if one isn't already).
- X11:
-
sudo pacman -Sy xclip # Arch -
sudo apt update && sudo apt install xclip # Debian-based
-
- Wayland:
-
sudo pacman -Sy wl-clipboard # Arch -
sudo apt update && sudo apt install wl-clipboard # Debian-based
-
Tip
All versions of PyaiiTTS support Linux and Windows.
macOS is only supported for ≥v1.3 (release)
If you want to use an older version on macOS, please build from an older version.
You may now install older versions from the installer too.
If on macOS, you can download versions directly from the respective release page, as (on macOS only) the binary contains the assets folder.
Note that (especially on macOS), running older (≤v1.3-pre2) versions through shortcuts/links (or the .app binary) will not work; PyaiiTTS won't be able to load any .json files or assets, as it was looking in the wrong directory prior to the fix implemented first in v1.3-pre3.
Otherwise, please don't download from the releases page directly. Instead...
Or...
Important
The following installation methods require Python to be installed.
- On Linux, it should already be installed.
- On Windows, the easiest way is to do so is to simply install it from the Microsoft Store.
- On macOS, it should already be installed. If you encounter problems, try installing the latest version here.
Make sure to add Python to PATH as well!
Important
Make sure Git is installed.
- Windows: download here.
- Linux:
-
sudo pacman -Sy git # Arch -
sudo apt update && sudo apt install git # Debian-based
-
- macOS:
git --version
- Clone this repo.
Run the following in a terminal emulator or PowerShell:
git clone https://github.com/DatBogie/PyaiiTTS && cd PyaiiTTS
- Run the build file for your OS.
This will create a venv and install all needed Python modules before building an executable.
You will find the executable in
./dist/(.\dist\on Windows)- Linux:
./build-linux.sh
- Windows:
.\build-windows.bat- macOS:
./build-mac.sh
Or or...
Tip
This isn't very useful anymore. Please just use the installer.
- Download the ZIP archive of the version you would like (you can find those here) and extract its contents into a folder.
- Download the
requirements.txtfile from this repo here and put it in the folder your extracted into above. - Download the build script for your OS from this repo and place it in the aformentioned folder.
- Linux: build-linux.sh
- Windows: build-windows.bat
- MacOS: build-mac.sh
- Run the build file. An executable file should appear in the
distfolder.
Note
PyaiiTTS will create files such as conf.json, pref.json, themes.json, and voices.json in the directory that the executable is placed in!
(Hover an image for a caption.)


