s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
Synthesizer
chevron_left Classes
class
Synthesizer

Constructors

functionsSynthesizer

Properties

data_objectCurrentVoicedata_objectInstalledVoices

Methods

functionsDisposefunctionsOnVisemeReachedfunctionsPlayfunctionsTrySetVoicefunctionsWithBreakfunctionsWithRatefunctionsWithText
Synthesizer
A speech synthesis stream. Lets you write text into speech and output it to a Sandbox.SoundHandle.
class Sandbox.Speech .
sealedSandbox.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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter