Libraries

s&box libraries

TikTokTTS

carsonk.tiktoktts

No summary provided.

About

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

ttstexttospeechtiktok

Media

More by Carson Kompon

01
MediaHelpers thumbnail
MediaHelpers carsonk.mediahelpers

A library used to retrieve video stream urls for use with the VideoPlayer class.

videoplayermediavideohelper
+0 24h
15favorites
10upvotes
72%Wilson score
02
Razor Panel Tooltips thumbnail
Razor Panel Tooltips carsonk.razor_tooltips

A custom tooltip system that lets you use razor panels instead of a string

razortooltipui
+0 24h
6favorites
5upvotes
44%Wilson score
03
RichText Razor Panels thumbnail
RichText Razor Panels carsonk.richtextpanels

Adds a <RichText/> element which can parse text into custom Razor Panels

razorrichtextui
+0 24h
3favorites
4upvotes
51%Wilson score
04
Editor All Chat thumbnail
Editor All Chat carsonk.editor_all_chat

A global chat that lets you talk with anyone else using the library who's currently in the Editor.

chateditor
+0 24h
2favorites
6upvotes
61%Wilson score
05
SFXR thumbnail
SFXR carsonk.sfxr

No summary provided.

sfxrsfxsoundsaudiosound
+0 24h
1favorites
2upvotes
34%Wilson score
06
Granular Pitch Audio Processor thumbnail
Granular Pitch Audio Processor carsonk.granularpitchprocessor

A basic audio processor that lets you change the pitch of a sound live without changing its speed.

audio
+0 24h
1favorites
0upvotes
--Wilson score