AI Speech Capture
Updated
Marks this entity’s audio for Runtime Audio Speech To Text.
- Type
comp-ai-speech-capture- Script class
AISpeechCaptureComponent- Per entity
- Several
- Version
- 1.0.0
Read about it in Speech: what it does, how to use it from a script, and examples.
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
Captions of the guide's speechAn 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(AISpeechCaptureComponent); if (component) log(component.props);}