Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ OATutor can use Firebase to persistently store log data.
3. Centralized skill model - `src/content-sources/*/skillModel.json`
4. Data logging/collection - Based off of the Cognitive Tutor KDD dataset.
5. User login/registration - JSON Web Tokens
6. Text-to-Speech (TTS) for hints, steps, and problem body using SRE-converted text and AWS Lambda (optional)

### \[Optional\] Text-to-Speech (TTS)

TTS uses pre-computed `pacedSpeech` fields (LaTeX → speech via SRE) and an AWS Lambda endpoint for audio.

- **Generate speech text:** `npm run process-tts` (or `process-tts:force` / `process-tts:dry-run`). Writes `pacedSpeech` into hint, step, and problem JSON under `src/content-sources/oatutor/content-pool/`.
- **Lambda:** Set `TTS_API_URL` in `src/config/config.js` to your Lambda Function URL. The frontend sends `{ segments: string[] }` and expects `{ audios: base64[] }`.
- **Frontend:** Problem body, step title/body, and hints use `pacedSpeech` when present; otherwise a basic LaTeX-to-readable fallback is used.

## Technologies Used

Expand Down
Loading