---
title: "TikTokTTS - s&box library"
description: "Using in Code\n\nThere are two static functions you can use. and\n\nusing TikTokTTS;\n\npublic class MyComponent : Component\n{\n async void SayExample()\n {\n // Call the API directly and returns a MusicPlayer\n await TikTokTTS.Say(\"Hello world, what is up?\");\n\n // Can also specify what voice you'd like to use\n var musicPlayer = await TikTokTTS.Say(\"This is a different voice. Positioned in the world.\", \"en_male_ukneighbor\");\n musicPlayer.Position = Transform.Position;\n }\n\n async void DownloadExample()\n {\n // Call the API directly and save the returned TTS to an mp3 file\n var fileName = await TikTokTTS.Download(\"I'm downloading this so I can play it and then save it for future use!\");\n\n // Play the sound yourself once you've downloaded it like normal\n MusicPlayer.Play(FileSystem.Data, fileName);\n }\n}\n\nUsing the Component\n\nSimply 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"
canonical: "https://sbox.watch/libraries/carsonk/tiktoktts/"
generated_at: "2026-07-22T23:22:23.039Z"
---

# TikTokTTS

No summary provided.

- Type: library
- Ident: carsonk.tiktoktts
- Creator: Carson Kompon
- Canonical: https://sbox.watch/libraries/carsonk/tiktoktts/
- Markdown: https://sbox.watch/libraries/carsonk/tiktoktts.md
- sbox.game: https://sbox.game/carsonk/tiktoktts/
- Generated: 2026-07-22T23:22:23.039Z

## Stats

- 24h momentum: +0
- Terry score: 60%
- Favorites: 1
- Upvotes: 4
- Downvotes: 0
- Updated: Apr 27, 2024
- Created: Apr 27, 2024
- Size: 17.7 KB
- Files: 9
- Tags: tts, texttospeech, , tiktok

## Description

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



## More by Carson Kompon

| Package | Ident | Players | Favorites | Upvotes | Score | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| MediaHelpers | carsonk.mediahelpers | 0 | 15 | 10 | 79% | https://sbox.watch/libraries/carsonk/mediahelpers.md |
| Razor Panel Tooltips | carsonk.razor_tooltips | 0 | 6 | 5 | 50% | https://sbox.watch/libraries/carsonk/razor_tooltips.md |
| RichText Razor Panels | carsonk.richtextpanels | 0 | 3 | 4 | 60% | https://sbox.watch/libraries/carsonk/richtextpanels.md |
| Editor All Chat | carsonk.editor_all_chat | 0 | 2 | 6 | 69% | https://sbox.watch/libraries/carsonk/editor_all_chat.md |
| SFXR | carsonk.sfxr | 0 | 1 | 2 | 43% | https://sbox.watch/libraries/carsonk/sfxr.md |
| Granular Pitch Audio Processor | carsonk.granularpitchprocessor | 0 | 1 | 0 | -- | https://sbox.watch/libraries/carsonk/granularpitchprocessor.md |
