public sealed class Sandbox.Speech.Synthesizer
A speech synthesis stream. Lets you write text into speech and output it to a `Sandbox.SoundHandle`.
Constructors
Showing 1 constructors
public Synthesizer()
No results match this filter.
Methods
Showing 8 methods
public virtual sealed void Dispose()
public Sandbox.Speech.Synthesizer OnVisemeReached(System.Action`2<int,System.TimeSpan> action)
public Sandbox.SoundHandle Play()
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.
public Sandbox.Speech.Synthesizer WithBreak()
Adds a break to the speech.
public Sandbox.Speech.Synthesizer WithRate(int rate)
Sets the playback rate of the synthesizer.
public Sandbox.Speech.Synthesizer WithText(string input)
Adds some text to the speech.
No results match this filter.
Properties
Showing 2 properties
public string Sandbox.Speech.Synthesizer.CurrentVoice { get; set; }
Gets the current voice being used by `Sandbox.Speech.Synthesizer.SpeechSynthesizer`.
public System.Collections.ObjectModel.ReadOnlyCollection`1<Sandbox.Speech.Synthesizer.InstalledVoice> Sandbox.Speech.Synthesizer.InstalledVoices { get; set; }
Gets a list of currently installed voices on the user's system.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.Speech |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Speech.Synthesizer |