SharpTalkTTS
by| Summary | a formant TTS engine |
|---|---|
| Description |
Getting Started: to get started, install the library and begin with this template (note, in my testing, i had to restart the editor before it worked, so if it breaks please try that before reporting a bug) template code: Add a SharpTalkSpeaker component to any GameObject in the editor, then speak from code: public sealed class MyComponent : Component { [Property] SharpTalkSpeaker Speaker { get; set; } protected override void OnStart() { _ = Speaker.Speak( "Hello, world!" ); } } Runtime Voice Switching: Speaker.SetVoice( VoiceData.WhisperVoice ); _ = Speaker.Speak( "This is a whisper." ); Speaker.SetVoice( VoiceData.BaselineVoice ); _ = Speaker.Speak( "Back to normal." ); Lipsync: OnPhoneme fires on the main thread as each phoneme begins playing, giving you a timeline to drive blend shapes, jaw bones, or any other animation: Speaker.OnPhoneme += e => { Log.Info( $"Phoneme {e.Phoneme} at {e.TimeSeconds:F3}s" ); // Drive a blend shape, animate a jaw bone, etc. }; _ = Speaker.Speak( "Watch my mouth move." );Getting Started:
to get started, install the library and begin with this template
(note, in my testing, i had to restart the editor before it worked, so if it breaks please try that before reporting a bug)
template code:
Add a SharpTalkSpeaker component to any GameObject in the editor, then speak from code:
public sealed class MyComponent : Component
{
[Property] SharpTalkSpeaker Speaker { get; set; }
protected override void OnStart()
{
_ = Speaker.Speak( "Hello, world!" );
}
}
Runtime Voice Switching:
Speaker.SetVoice( VoiceData.WhisperVoice );
_ = Speaker.Speak( "This is a whisper." );
Speaker.SetVoice( VoiceData.BaselineVoice );
_ = Speaker.Speak( "Back to normal." );
Lipsync:
OnPhoneme fires on the main thread as each phoneme begins playing, giving you a timeline to drive blend shapes, jaw bones, or any other animation:
Speaker.OnPhoneme += e =>
{
Log.Info( $"Phoneme {e.Phoneme} at {e.TimeSeconds:F3}s" );
// Drive a blend shape, animate a jaw bone, etc.
};
_ = Speaker.Speak( "Watch my mouth move." );
|
| Votes | 👍3 👎0 ❤️4 |
| Error Rate | 0% |
| Data | {} |
| Version | Created | Size (modified) | Files | Changes |
|---|---|---|---|---|
| 239507 | 2.5 MB (395.7 KB) | 42 +2 ~17 | Changes on 2026-05-13 | |
| 231993 | 2.4 MB (1.9 MB) | 40 ~4 | Changes on 2026-05-06 | |
| 231818 | 2.4 MB (2 MB) | 40 ~6 | Changes on 2026-05-06 | |
| 230884 | 11.9 MB (11.8 MB) | 40 +5 ~13 -5 | Changes on 2026-05-05 | |
| 225513 | 1.8 MB (169.1 KB) | 40 +1 ~4 -5 | Changes on 2026-05-02 | |
| 225493 | 1.8 MB (468.6 KB) | 44 +3 ~3 | Changes on 2026-05-02 | |
| 225349 | 1.5 MB (75.6 KB) | 41 ~1 -1 | Changes on 2026-05-02 | |
| 225289 | 1.5 MB (51.2 KB) | 42 ~3 | Changes on 2026-05-01 | |
| 225276 | 1.5 MB (119.3 KB) | 42 +1 ~3 | Changes on 2026-05-01 | |
| 224829 | 1.7 MB (347.4 KB) | 41 ~2 | Changes on 2026-05-01 | |
| 222789 | 1.7 MB (12.8 KB) | 41 ~1 | Changes on 2026-04-29 | |
| 222729 | 1.7 MB (995 KB) | 41 +1 ~1 | Changes on 2026-04-29 | |
| 222715 | 798.9 KB (14.3 KB) | 40 ~1 | Changes on 2026-04-29 | |
| 222705 | 796.7 KB (17.9 KB) | 40 ~2 | Changes on 2026-04-29 | |
| 222443 | 796.6 KB (1 KB) | 40 +1 | Changes on 2026-04-29 | |
| 222430 | 795.5 KB (12.1 KB) | 39 ~1 | Changes on 2026-04-29 | |
| 222428 | 795.3 KB (11.8 KB) | 39 ~1 | Changes on 2026-04-29 | |
| 222402 | 787.4 KB (7.6 KB) | 39 ~2 | Changes on 2026-04-29 | |
| 221971 | 787.9 KB (21.7 KB) | 39 ~2 | Changes on 2026-04-29 | |
| 221966 | 786.8 KB (678.9 KB) | 39 +1 ~18 | Changes on 2026-04-29 | |
| 221921 | 786.8 KB (674.7 KB) | 38 ~17 | Changes on 2026-04-29 | |
| 221914 | 786.8 KB | 38 +38 | initial upload |
Loading history…