diff options
| -rw-r--r-- | .extras/nvchecker.toml | 4 | ||||
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | edge-tts/README | 12 | ||||
| -rw-r--r-- | edge-tts/edge-tts.SlackBuild | 100 | ||||
| -rw-r--r-- | edge-tts/edge-tts.info | 10 | ||||
| -rw-r--r-- | edge-tts/slack-desc | 19 |
6 files changed, 146 insertions, 0 deletions
diff --git a/.extras/nvchecker.toml b/.extras/nvchecker.toml index 37ea0ba..892b27b 100644 --- a/.extras/nvchecker.toml +++ b/.extras/nvchecker.toml @@ -178,3 +178,7 @@ source = "github" github = "OHF-Voice/piper1-gpl" use_latest_release = true prefix = "v" + +[edge-tts] +source = "pypi" +pypi = "edge-tts" @@ -66,6 +66,7 @@ Each package lives in its own top-level subfolder: | python3-pathvalidate | ✅ | not tested | ❌ | 3.3.1 | 3.3.1 | | python3-onnxruntime | ✅ | not tested | ❌ | 1.28.0 | 1.28.0 | | piper-tts | ✅ | not tested | ❌ | 1.6.1 | 1.6.1 | +| edge-tts | ✅ | not tested | ❌ | 7.2.8 | 7.2.8 | > **Note on `kvantum-qt5`:** the official SBo build lags several releases behind > upstream (1.1.2 vs 1.1.8), so this repo ships an updated build. It provides the diff --git a/edge-tts/README b/edge-tts/README new file mode 100644 index 0000000..cd91f7d --- /dev/null +++ b/edge-tts/README @@ -0,0 +1,12 @@ +edge-tts uses Microsoft Edge's online text-to-speech service from Python +or the provided edge-tts and edge-playback commands, without needing +Microsoft Edge, Windows, or an API key. + +The edge-playback command requires the mpv player (Slackware ships it). + +Runtime dependencies (packaged separately): + python3-aiohttp + python3-tabulate + python3-typing-extensions + +Homepage: https://github.com/rany2/edge-tts diff --git a/edge-tts/edge-tts.SlackBuild b/edge-tts/edge-tts.SlackBuild new file mode 100644 index 0000000..cf8b8d2 --- /dev/null +++ b/edge-tts/edge-tts.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/bash + +# Slackware build script for edge-tts + +# Copyright 2026 danix <danix@danix.xyz> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=edge-tts +VERSION=${VERSION:-7.2.8} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRCNAM=edge_tts + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +python3 -m build --wheel --no-isolation +python3 -m installer --destdir "$PKG" dist/*.whl + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + LICENSE README* \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/edge-tts/edge-tts.info b/edge-tts/edge-tts.info new file mode 100644 index 0000000..af5de8b --- /dev/null +++ b/edge-tts/edge-tts.info @@ -0,0 +1,10 @@ +PRGNAM="edge-tts" +VERSION="7.2.8" +HOMEPAGE="https://github.com/rany2/edge-tts" +DOWNLOAD="https://files.pythonhosted.org/packages/3f/60/afbf548b43c78355e03926c6b1fff7500303a2da4d84db9e1324119e21ae/edge_tts-7.2.8.tar.gz" +MD5SUM="f10d1faef7631c93398d49e77852513d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="python3-aiohttp python3-tabulate python3-typing-extensions" +MAINTAINER="danix" +EMAIL="danix@danix.xyz" diff --git a/edge-tts/slack-desc b/edge-tts/slack-desc new file mode 100644 index 0000000..ed3962b --- /dev/null +++ b/edge-tts/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +edge-tts: edge-tts (Microsoft Edge online text-to-speech for Python) +edge-tts: +edge-tts: edge-tts is a Python module that uses Microsoft Edge's online +edge-tts: text-to-speech service without needing Microsoft Edge, Windows, +edge-tts: or an API key. It provides the edge-tts and edge-playback +edge-tts: commands. +edge-tts: +edge-tts: Homepage: https://github.com/rany2/edge-tts +edge-tts: +edge-tts: +edge-tts: |
