This is a Chrome extension that allows you to use OpenAI's Text-to-Speech (TTS) API to read selected text on any webpage.
- Clone this repository
- Run
npm install
- Run
npm run build
- Open Chrome and go to
chrome://extensions/
- Enable Developer mode
- Click on "Load unpacked" and select the
dist
folder in the repository
- Click on the extension icon in your browser toolbar
- Enter your OpenAI API key in the settings popup
- Click Save (key will be validated)
Your API key is stored locally in your browser and is only sent to OpenAI's servers when generating speech.
- Select any text on a webpage
- Right-click and select "Read with OpenAI TTS" from the context menu
- The extension will convert the selected text to speech using OpenAI's TTS API
- Audio will play automatically and a player will appear at the bottom of the screen
npm run build
- Build the extensionnpm run watch
- Watch for changes and rebuild automaticallynpm run start
- Build and then watch for changes
- TypeScript
- OpenAI
- esbuild for bundling
- npm