Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Loatchi/Tiktok-TTS-java
A program to transform a text to a vocal message using Tiktok voice template.
https://github.com/Loatchi/Tiktok-TTS-java
java text-to-speech tiktok tts
Last synced: 3 months ago
JSON representation
A program to transform a text to a vocal message using Tiktok voice template.
- Host: GitHub
- URL: https://github.com/Loatchi/Tiktok-TTS-java
- Owner: Loatchi
- License: mit
- Created: 2022-10-18T06:44:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-23T08:11:23.000Z (over 2 years ago)
- Last Synced: 2023-03-06T21:36:35.219Z (almost 2 years ago)
- Topics: java, text-to-speech, tiktok, tts
- Language: Java
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tiktok-TTS-java
A program to transform a text to a vocal message using Tiktok voice template.It is a rewrite of [Oscie57's project](https://github.com/oscie57/tiktok-voice) in Java. It aims at providing a Java alternative to its program
for everyone to use in its own project.## How to use it ?
You simply use a `TiktokTTS` instance and follow its format.
```java
String sessionID;TiktokTTS tts = new TiktokTTS(sessionID, Voice.ENGLISH_US_MALE_1, "Testing random things", new File("test.mp3"));
tts.createAudioFile();
tts.setVoice(Voice.ENGLISH_CHEWBACCA);
tts.setOutput(new File("test_chewbacca.mp3"));
tts.createAudioFile();```
They're is no limit in speech size.
## Getting SessionID
While connected to the Tiktok web app you go to your Cookie menu and retrieve the value of `sessionid`.
#### Chromium-Based Browsers
1. Go to [Tiktok](https://www.tiktok.com/) and login yourself.
2. Press `Ctrl+Shift+i`.
3. Go to `Application/Cookies`.
4. Search `sessionid` and copy its value.## Downloads
Latest Release: [GitHub Release](https://github.com/Loatchi/Tiktok-TTS-java/releases/latest)
### Maven
```xml
io.github.loatchi.tiktok
TiktokTTS
VERSION```
## Goals
- [X] Have no limit on speech size
- [X] Properly concatenate each audio together (A concatenation should take place at an end of a sentence "," or ".")