Jev Canvas
A tldraw canvas you draw on by speaking while pointing, where Jev decides on each debounced transcript update whether the words are a command and which shape, colour, place and size they mean.
A tldraw canvas you draw on by speaking while pointing, where Jev decides on each debounced transcript update whether the words are a command and which shape, colour, place and size they mean.
Every transcript update, partial or final, becomes one request, so a spoken sentence costs two to four requests and at most two are in flight at once. The state holds the trimmed transcript, a description of the finger and what it is over, the visible canvas area and one compact line per existing shape, plus the finger position saved when each pointing word was spoken. Eight questions ride together: is_command and complete are yes-or-no, action covers create, move, delete, recolor, resize, duplicate, clear, undo and redo, shape and colour are Choices over the supported values, target is a Choice over the existing shape ids with a none option, where is a Choice over the finger point, the centre and eight regions, and size is a five-step Score. An optional text question asks which span is exactly the text to write. Code acts only on the returned choice and copies the span from the transcript.
Is the speaker giving an instruction to the drawing canvas rather than talking to another person or thinking aloud?
The transcript, the finger with what it is over, the visible area, a line per existing shape, and the finger position recorded for each pointing word. Shape ids are short labels like s1.
Has the speaker finished the instruction, so that it can be carried out right now?
The transcript, the finger with what it is over, the visible area, a line per existing shape, and the finger position recorded for each pointing word. Shape ids are short labels like s1.
What should happen on the canvas?
The transcript, the finger with what it is over, the visible area, a line per existing shape, and the finger position recorded for each pointing word. Shape ids are short labels like s1.
Which kind of new shape does the speaker ask for?
The transcript, the finger with what it is over, the visible area, a line per existing shape, and the finger position recorded for each pointing word. Shape ids are short labels like s1.
Which colour does the speaker ask for?
The transcript, the finger with what it is over, the visible area, a line per existing shape, and the finger position recorded for each pointing word. Shape ids are short labels like s1.
Where on the canvas should the shape be placed or moved to?
The transcript, the finger with what it is over, the visible area, a line per existing shape, and the finger position recorded for each pointing word. Shape ids are short labels like s1.
What size does the speaker ask for, from tiny through no size mentioned to huge?
The transcript, the finger with what it is over, the visible area, a line per existing shape, and the finger position recorded for each pointing word. Shape ids are short labels like s1.
The browser speech recogniser transcribes the phrase while MediaPipe tracks the fingertip and stores its position for each pointing word.
The transcript, the shapes, the visible area and the recorded pointing positions are assembled into a single state with the fixed question set.
A low is_command probability stops the turn before any shape is touched, and an unfinished instruction waits for the next phrase.
Code reads the action, shape, colour, target, place and size answers, creates or edits the shape on the tldraw canvas, and copies any text span from the transcript.
The interface reports what was chosen so the speaker can see why the canvas changed, and can undo it like any other edit.
The finger position is sampled at the moment each pointing word is spoken, so here and there resolve against where the hand actually was rather than where it is when the answer arrives. A 200 ms debounce, dropping answers that arrive after a newer one and aborting an older request when a third is needed keep the document at 300 to 550 ms per decision, and the existing shape inventory and size rubric travel in the same state so the model never invents a target.