https://github.com/patarapolw/s2speak
Highlight the text and press S to speak
https://github.com/patarapolw/s2speak
web-speech-api
Last synced: 4 months ago
JSON representation
Highlight the text and press S to speak
- Host: GitHub
- URL: https://github.com/patarapolw/s2speak
- Owner: patarapolw
- License: mit
- Created: 2019-08-17T10:49:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T08:48:09.000Z (over 3 years ago)
- Last Synced: 2025-11-06T22:05:02.789Z (8 months ago)
- Topics: web-speech-api
- Language: TypeScript
- Homepage: https://patarapolw.github.io/s2speak
- Size: 1.05 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# s2speak
Highlight the text and press "s" to speak; after including a script tag.
```html
```
Try highlighting this text, and press "s"
范例文字,请取代此段落文字。此段落文字为范例文字内容,请务必取代。范例文字,请取代此段落文字。此段落文字为范例文字内容,请务必取代。范例文字,请取代此段落文字。此段落文字为范例文字内容,请务必取代。范例文字,请取代此段落文字。此段落文字为范例文字内容,请务必取代。
## Options
Please set the options in the script's query string. All are optional.
- key -- Keyboard trigger to speak (default: `s`)
- lang -- Speaking language, according to `speechSynthesis.getVoices()`, optionally two characters. Will be fixed for mobile, which `speechSynthesis.getVoices()` might yield different results.
## Usage
I plan to use this with <https://reveal-md.herokuapp.com>, and add YAML front matter,
```yaml
---
js:
- https://patarapolw.github.io/s2speak/speak.js?key=x
---
```