---
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/zh-cn/libraries/carsonk/tiktoktts/"
generated_at: "2026-11-27T18:25:25.350Z"
---

# TikTokTTS

暂无简介。

- 类型: 库
- 标识符: carsonk.tiktoktts
- 创作者: Carson Kompon
- 规范地址: https://sbox.watch/zh-cn/libraries/carsonk/tiktoktts/
- Markdown: https://sbox.watch/zh-cn/libraries/carsonk/tiktoktts/index.md
- sbox.game: https://sbox.game/carsonk/tiktoktts/
- 生成时间: 2026-11-27T18:25:25.350Z

## 统计

- 24小时热度: +0
- Terry 评分: 60%
- 收藏: 1
- 好评: 4
- 差评: 0
- 更新时间: 2024年4月27日
- 创建时间: 2024年4月27日
- 大小: 17.7 KB
- 文件: 9
- 标签: tts, texttospeech, , tiktok

## 描述

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 | 标识符 | 玩家 | 收藏 | 好评 | 评分 | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| MediaHelpers | carsonk.mediahelpers | 0 | 15 | 10 | 79% | https://sbox.watch/zh-cn/libraries/carsonk/mediahelpers/index.md |
| Razor Panel Tooltips | carsonk.razor_tooltips | 0 | 6 | 6 | 55% | https://sbox.watch/zh-cn/libraries/carsonk/razor_tooltips/index.md |
| RichText Razor Panels | carsonk.richtextpanels | 0 | 3 | 4 | 60% | https://sbox.watch/zh-cn/libraries/carsonk/richtextpanels/index.md |
| SFXR | carsonk.sfxr | 0 | 1 | 2 | 43% | https://sbox.watch/zh-cn/libraries/carsonk/sfxr/index.md |
| Granular Pitch Audio Processor | carsonk.granularpitchprocessor | 0 | 1 | 0 | -- | https://sbox.watch/zh-cn/libraries/carsonk/granularpitchprocessor/index.md |
| Twitch API | carsonk.twitchapi | 0 | 0 | 0 | -- | https://sbox.watch/zh-cn/libraries/carsonk/twitchapi/index.md |
