How riothitori/testvoice works
testvoice is a Tauri desktop voice OCR/TTS application. Users enter through the React interface, authenticate or choose a feature, then use OCR, speech, or movie-related views; the native Rust side provides capture/overlay, recognition, translation, authentication, and speech services. The excerpts show the UI’s feature routing and several native-module calls, but not the full command registration or all feature-to-command mappings, so those links are omitted rather than inferred.
Main entry points: main.rs Tauri runtime · App.tsx App shell · translator.rs Translation · auth.rs Authentication
Components 23
React interface
- App shell
src/App.tsx - Login view
src/components/LoginView.tsx - Sidebar settings
src/components/SidebarSettings.tsx - Interactive tutorial
src/components/InteractiveTutorial.tsx - OCR tab
src/components/tabs/OcrTab.tsx - Speak tab
src/components/tabs/SpeakTab.tsx - Movie tab
src/components/tabs/MovieTab.tsx
Capture and OCR
- Screen vision
src-tauri/src/eye.rs - Choice scanning
src-tauri/src/choice_scan.rs - Snipping OCR
src-tauri/src/snipping_ocr.rs - Auto crop
src-tauri/src/auto_crop.rs - Novel text flow
src-tauri/src/novel.rs
Language and speech
- Phonetic learning
src-tauri/src/hooklearn.rs - Text normalization
src-tauri/src/nlp.rs - Translation
src-tauri/src/translator.rs - Speech orchestration
src-tauri/src/speak.rs - Text to speech
src-tauri/src/tts.rs
Desktop services
- Tauri runtime
src-tauri/src/main.rs - Overlay windows
src-tauri/src/overlay.rs - Authentication
src-tauri/src/auth.rs
Other components
- User
- Authentication API
- Translation providers
Connections 15
- User → App shell: uses
README.md - App shell → Login view: renders
src/App.tsx - App shell → Sidebar settings: renders
src/App.tsx - App shell → OCR tab: routes to
src/App.tsx - App shell → Speak tab: routes to
src/App.tsx - App shell → Movie tab: routes to
src/App.tsx - Tauri runtime → Overlay windows: sets up
src-tauri/src/main.rs - Tauri runtime → Text to speech: initializes
src-tauri/src/main.rs - Tauri runtime → Text normalization: initializes
src-tauri/src/main.rs - Tauri runtime → Translation: starts worker
src-tauri/src/main.rs - Tauri runtime → Authentication: starts watchdog
src-tauri/src/main.rs - Tauri runtime → Phonetic learning: loads phonetics
src-tauri/src/main.rs - Novel text flow → Snipping OCR: recognizes image
src-tauri/src/novel.rs - Authentication → Authentication API: requests auth
src-tauri/src/auth.rs - Translation → Translation providers: requests translation
src-tauri/src/translator.rs