s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter