An Electron application with React and TypeScript featuring text-to-speech functionality powered by OpenAI's TTS API.
- EPUB Reader: Read EPUB books with customizable themes
- Text-to-Speech: AI-powered narration using OpenAI's TTS API
- Smart Caching: Audio files are cached locally for faster playback
- Paragraph Highlighting: Visual feedback during audio playback
- Navigation Controls: Play, pause, previous/next paragraph controls
- Auto Page Navigation: Seamlessly moves between pages during reading
- Node.js (v16 or higher)
- OpenAI API key for text-to-speech functionality
-
Get OpenAI API Key:
- Visit OpenAI Platform
- Create an account and generate an API key
- Ensure you have credits available for TTS usage
-
Configure Environment Variable:
export OPENAI_API_KEY="your-api-key-here"
-
Restart Application:
- Restart the application after setting the API key
- TTS controls will appear in the top-right corner when configured
For detailed TTS usage instructions, see TTS User Guide.
$ npm install- Get your OpenAI API key from https://platform.openai.com/api-keys
- Create a
.envfile in the project root:OPENAI_API_KEY=your_openai_api_key_here - The TTS controls will automatically appear in the book reader when an API key is configured
$ npm run dev# For windows
$ npm run build:win
# For macOS
$ npm run build:mac
# For Linux
$ npm run build:linux