https://github.com/numtel/voice-coder
https://github.com/numtel/voice-coder
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/numtel/voice-coder
- Owner: numtel
- Created: 2024-02-08T06:30:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-13T06:48:31.000Z (about 2 years ago)
- Last Synced: 2025-02-15T04:42:29.711Z (about 1 year ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# voice-coder
> Look ma, no hands!
*Turn on the sound*
https://github.com/numtel/voice-coder/assets/518698/073ac4ff-8110-4249-9c14-c2c8efb91512
## Installation
Will ask for your OpenAI API Key on first launch. (Saved in localStorage)
> Requires Node.js
```
$ git clone git@github.com:numtel/voice-coder.git
$ cd voice-coder
$ npm install
# Serve this current directory at http://localhost:3000/
$ npm start
```
Internal fileserver only accepts connections from localhost and only loads files in this directory.
## Commands
### Voice
Press `Escape` to begin recording and again to stop. Transcription will proceed automatically.
| command | description |
|---------------------------|----------------------------------|
| Language Javascript | Set programming language, can be anything since it's just part of the prompt. |
| Sam, write a function that calculates the fibonacci sequence. | Request a rewrite from Sam (Altman) for the entire document or selection |
| On this line, multiply the sequence variable times 3. | Request a rewrite for the current line |
| Move up/down 12 lines | Adjust the cursor position |
| Find next/previous (search term) | Jump to the next instance of the search term |
| Select inside (curly/parentheses/single quotes/double quotes/carrots) | Select text within specific delimiters `{}`, `()`, `''`, `""`, `<>` |
| Expand selection | Expand the selected text to fill the full lines of any existing selection, or the current line if no selection |
| cut selection/copy selection/grapefruit | Perform internal clipboard operations (grapefruit is picked up easier than paste) |
| beginning/end of selection | Move the cursor position |
| Undo | Revert the last action |
| banana | Replay the last transcription as a prompt to rewrite the selection or entire document |
| avocado | Replay the last transcription as a prompt to rewrite the current line |
| *anything else* | Transcribed with some helpers to convert words to programming characters |
### Undo/Redo
* Press `F1` to undo your last voice command
* Press `F2` to redo