Skip to content
Roblox API Reference

AudioTextToSpeech

Plays text as speech audio.
Memory category
Internal
Own members
24
Inherited members
75
Subclasses
0
Siblings
608

Properties35

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byAudioTextToSpeech12

Property categoryAsset

  • AudioTextToSpeech.AutoLocalize: boolean = true
    • Capabilities: Audio
  • AudioTextToSpeech.IsLoaded: boolean = false
    Denotes whether the AudioTextToSpeech object is loaded, buffered, and ready to play.
    • Read only
    • Read capabilities: Audio
    • Save only
  • AudioTextToSpeech.Pitch: number = 0
    Controls the pitch of the generated speech audio, which will be independent of its speed.
    • Read capabilities: Audio
  • AudioTextToSpeech.Speed: number = 1
    Controls the speed of the generated speech audio, which will be independent of its pitch.
    • Read capabilities: Audio
  • AudioTextToSpeech.Text: string = ""
    The text to be converted into speech audio by AudioTextToSpeech.
    • Read capabilities: Audio
  • AudioTextToSpeech.TimeLength: number = 0
    Denotes the length of the generated speech audio.
    • Read only
    • Read capabilities: Audio
    • Save only
  • AudioTextToSpeech.VoiceId: string = ""
    The voice style to be used by AudioTextToSpeech.
    • Read capabilities: Audio

Property categoryPlayback

  • AudioTextToSpeech.IsPlaying: boolean = false
    Denotes whether the AudioTextToSpeech object is currently playing.
    • Write: Roblox engine security
    • Read capabilities: Audio
  • AudioTextToSpeech.Looping: boolean = false
    Controls whether the AudioTextToSpeech object loops.
    • Read capabilities: Audio
  • AudioTextToSpeech.PlaybackSpeed: number = 1
    Controls how quickly the speech audio will be played, which controls its pitch.
    • Read capabilities: Audio
  • AudioTextToSpeech.TimePosition: number = 0
    Tracks the current position of the playhead within the generated speech audio.
    • Read capabilities: Audio

Property categoryState

  • AudioTextToSpeech.Volume: number = 1
    Controls how loudly the generated speech audio will be played.
    • Read capabilities: Audio

Methods51

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byAudioTextToSpeech9
  • AudioTextToSpeech:GetConnectedWires(pin: string): { Instance }
    Returns an array of Wires that are connected to the specified pin.
    • Capabilities: Audio
    Parameters
    ParameterDescription
    pin: string
    An input or output pin on this instance
    Returns
    TypeDescription
    { Instance }
    An array of Wires
  • AudioTextToSpeech:GetInputPins(): { any }
    Gets the list of pins that a Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.
    • Capabilities: Audio
    Returns
    TypeDescription
    { any }
    An array of strings representing valid pin names.
  • AudioTextToSpeech:GetOutputPins(): { any }
    Gets the list of pins that a Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.
    • Capabilities: Audio
    Returns
    TypeDescription
    { any }
    An array of strings representing valid pin names.
  • AudioTextToSpeech:GetWaveformAsync(timeRange: NumberRange,samples: number,): { any }
    Returns a sampling of the waveform data for the generated audio.
    • Yields
    • Capabilities: Audio
    Parameters
    ParameterDescription
    timeRange: NumberRange
    The start and end time (in seconds) of the segment to read.
    samples: number
    The number of samples to return for the specified range.
    Returns
    TypeDescription
    { any }
    A table of samples numbers ranging between -1 and 1 representing the sampled waveform,
  • AudioTextToSpeech:LoadAsync(): Enum.AssetFetchStatus
    Generates speech audio.
    • Yields
    • Capabilities: Audio
    Returns
    TypeDescription
    Enum.AssetFetchStatus
    An AssetFetchStatus — Success once the speech audio has been generated, or Failure if generation could not be completed.
  • AudioTextToSpeech:LoadPlatformAsync(): Enum.AssetFetchStatus
    • Yields
    • Roblox script security
    • Capabilities: Audio
  • AudioTextToSpeech:Pause()
    Pauses the AudioTextToSpeech object wherever its TimePosition is.
    • Capabilities: Audio
  • AudioTextToSpeech:Play()
    Plays the AudioTextToSpeech from wherever its TimePosition is.
    • Capabilities: Audio
  • AudioTextToSpeech:Unload()
    Unload the generated speech audio.
    • Capabilities: Audio

Events13

Inherited fromObject1
Inherited fromInstance9
Defined byAudioTextToSpeech3