Voice Generator

Table of contents

  1. Voice Generator
    1. Commands and Examples
      1. Installing Dependencies
      2. Code Examples

Voice Generator

Voice Generator is a simple CLI generator of the sound system used for dialogues in games like Celeste and Undertale! But I managed to bring it over to its own webpage on here for anyone to use on Github Pages! (Not able to completely implement yet on Github Pages)

But in case you want to download it and do it local, download the code from my Github here:

Voice Generator 🗣️: Github Project Link

  • Python 3.10: Make sure you have the CORRECT Version, as Audioop no longer works with any others higher than 3.10. Download 3.10 here: Download
    • Make sure to add it in the Environmental PATH
  • Pip Installer: Makes life easier
  • Pydub: Handles loading, editing, and exporting audio
  • Ffmpeg OR Libav: For non-WAV files like MP3
    • If you’re only working with .wav, you don’t need FFmpeg — pydub works with raw .wav files out of the box.
  • SimpleAudio: Live Playback (if desired)

Commands and Examples

Installing Dependencies

py -3.10 -m pip install pydub simpleaudio

Code Examples

INPUTS: (text, category, pitch, speed, outputname) CATEGORIES: melodic, soft, rough, long DEFAULT INPUT:

  • category: all OR mixed
  • filename: output.wav
  • pitch: 0 (normal)
  • speed: 1.0x (normal)

GEN EXAMPLE: py -3.10 typingvoice.py

EXAMPLE: py -3.10 typingvoice.py "Hello friend!" --category melodic --pitch 2 --speed 1.3 --output outputs/friend.wav

OUTPUT LOCATION: /outputs/talk_output.wav