Skip to content

DatBogie/PyaiiTTS

Repository files navigation

PyaiiTTS

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!

Build from Source

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
    
  1. Clone this repo. Run the following in a terminal emulator or PowerShell:
    git clone https://github.com/DatBogie/PyaiiTTS && cd PyaiiTTS
  2. 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...

Build Version from ZIP Archive

Tip

This isn't very useful anymore. Please just use the installer.

  1. Download the ZIP archive of the version you would like (you can find those here) and extract its contents into a folder.
  2. Download the requirements.txt file from this repo here and put it in the folder your extracted into above.
  3. Download the build script for your OS from this repo and place it in the aformentioned folder.
  4. Run the build file. An executable file should appear in the dist folder.

 

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!

 

Screenshots:

(Hover an image for a caption.)

PyaiiTTS v1.3 on macOS w/ default widgets/theme PyaiiTTS v1.3 on Linux w/ default widgets & custom theme

About

Simple Python Application that Generates AI TTS via ElevenLabs.

Resources

Stars

Watchers

Forks

Contributors