TikTokTTS

Library
Carson Kompon updated 2y ago 0 MB engine 17
thumb_up 4 open_in_new View on sbox.game
TikTokTTS

Using in Code

There are two static functions you can use. and

using TikTokTTS;

public class MyComponent : Component
{  
    async void SayExample()
    {
        // Call the API directly and returns a MusicPlayer
        await TikTokTTS.Say("Hello world, what is up?");
        
        // Can also specify what voice you'd like to use
        var musicPlayer = await TikTokTTS.Say("This is a different voice. Positioned in the world.", "en_male_ukneighbor");
        musicPlayer.Position = Transform.Position;
    }

    async void DownloadExample()
    {
        // Call the API directly and save the returned TTS to an mp3 file
        var fileName = await TikTokTTS.Download("I'm downloading this so I can play it and then save it for future use!");
        
        // Play the sound yourself once you've downloaded it like normal
        MusicPlayer.Play(FileSystem.Data, fileName);
    }
}

Using the Component

Simply add the component and set the and property accordingly. You can test the voice by pressing the "Speak" button at any time and can call the component's speak function at runtime with

716
Total Users
1,796
Total Sessions
3.2 months
Total Playtime
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
Package ID: carsonk.tiktoktts
Created: 2024-04-27 17:24 UTC
Updated: 2024-04-27 18:34 UTC
Type: library
Public: Yes
Version: 55749
files: 9
Size: 0.0 MB
Engine Version: 17
Asset Version ID: 55749
Version Created: 2024-04-27 18:34 UTC
Hash: -8765095568768700364
Manifest: Open manifest
new_releases Latest Update Apr 27, 2024
Changes on 2024-04-27
55749 Apr 27, 2024
Changes on 2024-04-27
55747 Apr 27, 2024
Changes on 2024-04-27
55744 Apr 27, 2024
Changes on 2024-04-27
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.