Skip to content

A Chrome extension that automatically converts selected text to speech on any webpage. Features instant playback, automatic stop on deselection, and optimized voice selection for natural-sounding speech output.

Notifications You must be signed in to change notification settings

dsolankii/Text-to-Speech-Chrome-Ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text-to-Speech Chrome Extension

A Chrome extension that automatically reads selected text aloud from any webpage, with intelligent voice selection and immediate stop functionality when text is deselected.

Features

  • 🎯 Instant text-to-speech conversion of selected text
  • 🛑 Automatic speech stopping when text is deselected
  • 🗣️ Optimized for Indian English voice (falls back to other English voices if unavailable)
  • 🔄 Handles multiple selections seamlessly
  • 🎚️ Customized speech settings for clarity
  • 🔍 Works on any webpage

Installation

  1. Clone this repository:
git clone https://github.com/DivineDarshan/Text-to-Speech-Chrome-Ext
  1. Open Chrome and navigate to chrome://extensions/
  2. Enable "Developer mode" in the top right
  3. Click "Load unpacked" and select the extension directory

Usage

  1. Select any text on any webpage
  2. The extension will automatically start reading the selected text
  3. Deselect the text or select different text to stop the current reading
  4. Close the tab to stop speech immediately

Technical Details

The extension consists of three main components:

  • Background Script: Manages the core text-to-speech functionality and voice selection
  • Content Script: Handles text selection events and communicates with the background script
  • Manifest: Defines extension permissions and configuration

Voice Settings

  • Speech Rate: 0.9 (90% of normal speed)
  • Pitch: 1.1 (slightly higher than normal)
  • Volume: 1.0 (maximum)
  • Voice Selection: Prioritizes Indian English voices, with fallback to GB/US English

Permissions

The extension requires minimal permissions:

  • activeTab: To access the current tab's content
  • tabs: To manage speech when tabs are closed

Contributing

Contributions are welcome! Feel free to submit issues and enhancement requests on the GitHub repository.

License

MIT License

Author

Created and maintained by DivineDarshan

About

A Chrome extension that automatically converts selected text to speech on any webpage. Features instant playback, automatic stop on deselection, and optimized voice selection for natural-sounding speech output.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published