Created
August 6, 2024 03:39
-
-
Save limboinf/e9345163d721548e580d730d094dd003 to your computer and use it in GitHub Desktop.
edge-tts playback popclip extention.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps:
The first step is to 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.
Usage: