Skip to content

Instantly share code, notes, and snippets.

@limboinf
Created August 6, 2024 03:39
Show Gist options
  • Save limboinf/e9345163d721548e580d730d094dd003 to your computer and use it in GitHub Desktop.
Save limboinf/e9345163d721548e580d730d094dd003 to your computer and use it in GitHub Desktop.
edge-tts playback popclip extention.
#popclip
name: tts
icon: iconify:ri:speak-line
interpreter: /bin/sh
shell script: |
/path/to/edge-playback --rate="${POPCLIP_OPTION_RATE:-+20%}" --voice "${POPCLIP_OPTION_VOICE:-zh-CN-XiaoxiaoNeural}" --text "$POPCLIP_TEXT"
options:
- identifier: rate
label: Rate (default +20%)
type: string
default: +20%
description: 设置播放速率,如 +20% 表示加快 20%,-10% 表示减慢 10%
- identifier: voice
label: Voice
type: string
default: zh-CN-XiaoxiaoNeural
description: 设置语音,默认是 zh-CN-XiaoxiaoNeural 为中文小雅,en-US-AriaNeural 为英文 Aria
@limboinf
Copy link
Author

limboinf commented Aug 6, 2024

Steps:

The first step is to install edge-tts.

pip install edge-tts

and the second step is to select the popclicp option that will appear to install the tts plugin in the above code, and install it.

image

Usage:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment