Skip to content

Commit

Permalink
Update Say extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotmoon committed Aug 29, 2023
1 parent d2822fc commit b818c10
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 37 deletions.
Binary file modified extensions/Say.popclipextz
Binary file not shown.
10 changes: 10 additions & 0 deletions source/Say.popclipext/Config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"identifier": "com.pilotmoon.popclip.extension.say",
"name": "Say",
"icon": "speechicon.png",
"popclipVersion": 4069,
"shellScriptFile": "say.zsh",
"interpreter": "zsh",
"stdin": "text",
"description": "Speak the selected text aloud, using the system default voice."
}
32 changes: 0 additions & 32 deletions source/Say.popclipext/Config.plist

This file was deleted.

25 changes: 22 additions & 3 deletions source/Say.popclipext/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
Say
===
# Say

PopClip extension to speak the text aloud.
PopClip extension to speak the text aloud using the Mac's built-in text-to-speech.

The extension simply invokes the `say` command-line tool, which is included with macOS.

The text is spoken using the default voice settings, which can be changed in System Settings → Accessibility → Spoken Content.

## Changelog

### 2023-08-29

- Update to "modern" extension structure with JSON config, for documentation example purposes.
- Use `stdin` instead of shell variable for input.
- Update Readme to describe the new location of the default voice settings.

### 2017-07-17

- Fix bug when input contained `*` character.

### 2012-01-08

- Initial release.
2 changes: 0 additions & 2 deletions source/Say.popclipext/say.sh

This file was deleted.

2 changes: 2 additions & 0 deletions source/Say.popclipext/say.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# the text will be read from stdin
say

0 comments on commit b818c10

Please sign in to comment.