NotePad Quick Reference
Voice-enabled text editor with speech recognition and commands
Key Features
- Voice input and dictation
- Voice commands for text editing
- Text-to-speech read back
- Rich text editing
- Undo/redo support
- Cursor navigation by voice
- Special character insertion by voice
Voice Commands
- System: start listening, stop listening, save, help, read back, stop reading
- Editing: undo, retype, delete line, backspace, delete word
- Cursor: left, right, up, down, word left/right, line start/end, select all
- Characters: next line, comma, full stop, question mark, quotes, brackets, tab, bullet point
Server-Side Usage:
// Get the NotePad API
var NotePad = js.getObject("/OpenForum/AddOn/NotePad","NotePad.sjs");
// Save note
NotePad.saveNote("/MyPage", "note.txt", "Note content");
// Load note
var content = NotePad.loadNote("/MyPage", "note.txt");
Client-Side Usage:
// Save note via API
JSON.post('/OpenForum/AddOn/NotePad/Save', null,
'pageName=/MyPage&fileName=note.txt&content=' encodeURIComponent(noteContent))
.onSuccess(function(result) {
console.log('Note saved');
}).go();
// Load note
JSON.get('/OpenForum/AddOn/NotePad/Load', null,
'pageName=/MyPage&fileName=note.txt')
.onSuccess(function(content) {
console.log('Note loaded:', content);
}).go();
Configuration
- Voice recognition uses browser Web Speech API
- Requires microphone permissions
- Customizable voice commands