This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@input Component.ScriptComponent speechRecognitionScript {"label": "Speech Recognition Script"} | |
//@input float switchInterval = 10.0 {"label": "Switch Interval (seconds)"} | |
var languages = [ | |
"LANGUAGE_ENGLISH", | |
"LANGUAGE_SPANISH", | |
"LANGUAGE_FRENCH", | |
"LANGUAGE_GERMAN" | |
]; | |
var currentLanguageIndex = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NativeLogger from "SpectaclesInteractionKit/Utils/NativeLogger"; | |
const log = new NativeLogger("CameraAPIBothLogger"); | |
@component | |
export class CameraDoubleye extends BaseScriptComponent { | |
private cameraModule: CameraModule = require("LensStudio:CameraModule"); | |
private cameraRequestLeft: CameraModule.CameraRequest | undefined; | |
private cameraTextureLeft: Texture | undefined; | |
private cameraTextureProviderLeft: CameraTextureProvider | undefined; |
NewerOlder