Skip to content

Commit

Permalink
audio/py-pyttsx3: Add port
Browse files Browse the repository at this point in the history
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] nateshmbhat/pyttsx3@1e2cd7f
  • Loading branch information
rhurlin committed May 13, 2023
1 parent e85fe72 commit 3f4c5c3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions audio/Makefile
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions 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.

0 comments on commit 3f4c5c3

Please sign in to comment.