Loading files
3adb53fb9This file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/stack-chan-374381865.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
export function onContextCreated(robot) {
const remoteSession = robot.conversation.remoteSession
const touchPanel = robot.input.touchPanel
if (!remoteSession) {
trace('[codex-voice] USB remote conversation capability is unavailable\n')
return
}
if (!touchPanel) {
trace('[codex-voice] top touch panel is unavailable\n')
return
}
remoteSession.subscribe((state, error) => {
trace(`[codex-voice] state=${state}${error ? ` error=${error}` : ''}\n`)
})
remoteSession.subscribeTransport((state) => {
trace(`[codex-voice] transport=${state}\n`)
})
touchPanel.onEvent = (event) => {
if (event.gesture === 'forwardSwipe') {
const requestId = remoteSession.requestStart()
trace(`[codex-voice] start request=${requestId}\n`)
} else if (event.gesture === 'backwardSwipe') {
const requestId = remoteSession.requestStop()
trace(`[codex-voice] stop request=${requestId}\n`)
}
}
trace(`[codex-voice] ready: transport=${remoteSession.transportState}, forward swipe starts, backward swipe stops\n`)
}
3adb53fb9This file is pinned to the selected release. Download the original to open it in your design tool.