AI Speech To Text
Updated
Understands spoken input and detects when a person starts and stops talking.
- Type
comp-ai-speech-to-text- Script class
AISpeechToTextComponent- Per entity
- One
- Version
- 1.0.0
Read about it in Speech: what it does, how to use it from a script, and examples.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
silenceMs |
0 ≤ x ≤ 5000, integer |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
An AI Caption shows what the guide's AI Speech To Text hears: her own lines spoken through the browser's voice, and the Radio, which an AI Speech Capture marker selects for transcription.
Press Next line: the guide speaks with your browser's voice and her caption appears above her, also in the log. Transcribing the Radio needs the AI service, which this preview does not have: the log reports it instead. Drag outside the panel to orbit the camera.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(AISpeechToTextComponent); if (component) log(component.props);}