/tiktok-voice

Simple Python script to interact with the TikTok TTS API

Primary LanguagePython

TikTok Text-to-speech API

This is a simple Python program that accesses the TikTok API and gives you an .mp3 file with what it says in the specified voice.

Usage

  1. Make sure you have Python installed of course
  2. Run py main.py (Windows) or python3 main.py (Else)
  3. Input a voice (see below for options)
  4. Enter the text you would like said
  5. Check the script directory for a voice.mp3 file

Voice Options

Language Voice Code
Ghost Face (Disney) en_us_ghostface
Chewbacca (Disney) en_us_chewbacca
C3PO (Disney) en_us_c3po
Stitch (Disney) en_us_stitch
Stormtrooper (Disney) en_us_stormtrooper
Rocket (Disney) en_us_rocket
English AU - Female en_au_001
English AU - Male en_au_002
English UK - Male en_uk_002
English US - Female en_us_002
English US - Male en_us_006
French - Male 1 fr_001
French - Male 2 fr_002
German - Female de_001
German - Male de_002
Japanese - Female 1 jp_001
Japanese - Female 2 jp_003
Spanish - Male es_002

Samples

You can find samples of all the voices in /samples/

Credits

  • Spotlight for giving me the idea for this program
  • Myself for creating this
  • scanlime for giving the voice options
  • Komfudo for translating the sample text to German
  • Philemax for translating the sample text to French