Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2023 15:44:24 GMT
From:      Rainer Hurling <rhurlin@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3f4c5c37c17b - main - audio/py-pyttsx3: Add port
Message-ID:  <202305131544.34DFiOoH032439@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rhurlin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3f4c5c37c17b673a77ed1af44d699dcedac3e561

commit 3f4c5c37c17b673a77ed1af44d699dcedac3e561
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2023-05-13 15:32:21 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2023-05-13 15:43:01 +0000

    audio/py-pyttsx3: Add port
    
    Offline Text To Speech (TTS) converter for Python. Unlike alternative libraries, it works offline.
    
    Requires some post-release commits from Github due to dependency on audio/espeak-ng[1]. If release version 2.90 is installed via e.g. PIP instead, it will not find audio/espeak's libespeak-ng.so.1 library.
    
    The port is needed as one of the dependencies of the QGIS plugin 'QChatGPT'.
    
    [1] https://github.com/nateshmbhat/pyttsx3/commit/1e2cd7fc63671a410e6ca7b53b1e3b048577e962
---
 audio/Makefile             |  1 +
 audio/py-pyttsx3/Makefile  | 24 ++++++++++++++++++++++++
 audio/py-pyttsx3/distinfo  |  3 +++
 audio/py-pyttsx3/pkg-descr |  2 ++
 4 files changed, 30 insertions(+)

diff --git a/audio/Makefile b/audio/Makefile
index 106aa0eeb577..d850c4db26b5 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -659,6 +659,7 @@
     SUBDIR += py-pyradio
     SUBDIR += py-pysndfile
     SUBDIR += py-python-mpd2
+    SUBDIR += py-pyttsx3
     SUBDIR += py-resampy
     SUBDIR += py-simpleaudio
     SUBDIR += py-soundcloud
diff --git a/audio/py-pyttsx3/Makefile b/audio/py-pyttsx3/Makefile
new file mode 100644
index 000000000000..4b6cd87e82f7
--- /dev/null
+++ b/audio/py-pyttsx3/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	pyttsx3
+DISTVERSIONPREFIX=	v.
+DISTVERSION=	2.90-12
+DISTVERSIONSUFFIX=	-g5d3755b
+CATEGORIES=	audio python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	rhurlin@FreeBSD.org
+COMMENT=	Offline Text To Speech (TTS) converter for Python
+WWW=		https://github.com/nateshmbhat/pyttsx3
+
+LICENSE=	MPL20
+
+LIB_DEPENDS=	libespeak.so:audio/espeak-ng
+
+# Unfortunately found no way to use PyPI
+USES=		python
+USE_GITHUB=	yes
+GH_ACCOUNT=	nateshmbhat
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/audio/py-pyttsx3/distinfo b/audio/py-pyttsx3/distinfo
new file mode 100644
index 000000000000..77749bff5d00
--- /dev/null
+++ b/audio/py-pyttsx3/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1683991178
+SHA256 (nateshmbhat-pyttsx3-v.2.90-12-g5d3755b_GH0.tar.gz) = 62378f96c255f27e5a1588959c1074e742cc4abb8c40c51d6cf9630a27ddc80b
+SIZE (nateshmbhat-pyttsx3-v.2.90-12-g5d3755b_GH0.tar.gz) = 104139
diff --git a/audio/py-pyttsx3/pkg-descr b/audio/py-pyttsx3/pkg-descr
new file mode 100644
index 000000000000..b5bfbb4521c9
--- /dev/null
+++ b/audio/py-pyttsx3/pkg-descr
@@ -0,0 +1,2 @@
+pyttsx3 is a text-to-speech conversion library in Python.
+Unlike alternative libraries, it works offline.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305131544.34DFiOoH032439>