Class · inherits Instance
AudioSpeechToText
Converts spoken audio into text.
About AudioSpeechToText
AudioSpeechToText is used to convert speech audio into text. This
class provides a single Input pin that can be connected to other pins via
Wires.
Roblox uses the following formula to throttle requests for this API based on
the number of players in your experience:
max requests per minute per experience = 1 + (5 * number_of_concurrent_users).
You can purchase additional usage using
Extended Services.
For more information, see Speech-to-text.
Properties 3
Enabled
: booleanWhether theAudioSpeechToTextobject is enabled for processing input audio into text.Text
: stringThe text resulting from the conversion of speech audio.VoiceDetected
: booleanReadOnlyNotReplicatedWhether theAudioSpeechToTextobject is detecting speech in the incoming audio signal.Whether the
AudioSpeechToTextobject is detecting speech in the incoming audio signal.AudioSpeechToTextrecords the speech audio until it ceases or until a maximum amount of 10 seconds has been recorded. Then it converts the recorded audio into text.
Methods 3
GetConnectedWires
(pin: string) → List<Wire>Returns an array ofWiresthat are connected to the specified pin.Returns an array of
Wiresthat are connected to the specified pin.AudioSpeechToTexthas one "Input" pin.GetInputPins
() → ArrayGets the list of pins that aWirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.Gets the list of pins that a
Wirecan use inWire.TargetNameto connect to this instance via itsWire.TargetInstanceproperty.For
AudioSpeechToText, this isInputonly.GetOutputPins
() → ArrayGets the list of pins that aWirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.Gets the list of pins that a
Wirecan use inWire.SourceNameto connect to this instance via itsWire.SourceInstanceproperty.For
AudioSpeechToText, there are none.
Events 1
WiringChanged
AudioSpeechToText.WiringChanged:Connect(function(connected, pin, wire, instance))Fires when another instance is connected to or disconnected from theAudioSpeechToTextvia aWire.Event that fires after a
Wirebecomes connected or disconnected, and thatWireis now or was previously connected to a pin on theAudioSpeechToTextand to some other wirable instance.
AudioSpeechToText also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.