s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
Synthesizer
chevron_left
Classes
class
Synthesizer
search
Constructors
functions
Synthesizer
Properties
data_object
CurrentVoice
data_object
InstalledVoices
Methods
functions
Dispose
functions
OnVisemeReached
functions
Play
functions
TrySetVoice
functions
WithBreak
functions
WithRate
functions
WithText
Synthesizer
A speech synthesis stream. Lets you write text into speech and output it to a Sandbox.SoundHandle.
class
Sandbox.Speech
.
sealed
Sandbox.Engine
build
Constructors
1
Synthesizer
(
)
data_object
Properties
2
CurrentVoice
string
Gets the current voice being used by Sandbox.Speech.Synthesizer.SpeechSynthesizer.
InstalledVoices
ReadOnlyCollection`1
Gets a list of currently installed voices on the user's system.
functions
Methods
7
Dispose
(
)
OnVisemeReached
(
action
)
Synthesizer
Play
(
)
SoundHandle
Takes info from Sandbox.Speech.Synthesizer.Builder and creates a System.Speech.Synthesis.SpeechSynthesizer, outputting to a stream object. Using Sandbox.Speech.Synthesizer.AudioStreamHelpers we then read all the PCM samples, and write it to a SoundStream. This means it'll work like any other sound.
TrySetVoice
(
voiceName
)
Synthesizer
Tries to set the voice to a matching voice name installed on the user's system.
WithBreak
(
)
Synthesizer
Adds a break to the speech.
WithRate
(
rate
)
Synthesizer
Sets the playback rate of the synthesizer.
WithText
(
input
)
Synthesizer
Adds some text to the speech.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.