Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions config/modules/piper.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Debug 1

# Location of the piper binary
PiperBinPath "/usr/lib/piper/piper"

# Location of voice model files
PiperModelsPath "/usr/share/piper-voices"

# The amount of voice data (ms) to buffer from piper before returning it to
# speech-dispatcher for playback
# default 200
PiperAudioBufferMsec 200

# For the following parameters, value/100 is passed to piper cmdline

# seconds of silence after each sentence
# default 20 -> 0.20 sec
PiperSentenceSilence 20

# generator noise
# default 67 -> 0.67
PiperNoiseScale 67

# phoneme width noise
# default 80 -> 0.80
PiperNoiseWidth 80

# Voice definitions. The name must be the filename within ${PiperModelsPath}/
AddVoice "en-gb" "female1" "en_GB-alba-medium.onnx"
1 change: 1 addition & 0 deletions config/speechd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ SymbolsPreprocFile "symbols-fallback.dic"
#AddModule "baratinoo" "sd_baratinoo" "baratinoo.conf"
#AddModule "rhvoice" "sd_rhvoice" "rhvoice.conf"
#AddModule "voxin" "sd_voxin" "voxin.conf"
#AddModule "piper" "sd_piper" "piper.conf"

# The output module testing doesn't actually connect to anything. It
# outputs the requested commands to standard output and reads
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ AS_IF([test $enable_python != "no"],
[AC_MSG_FAILURE([python 3 or greater is not available])])])])
AM_CONDITIONAL([HAVE_PYTHON], [test $enable_python = "yes"])

output_modules="cicero dummy festival openjtalk generic"
output_modules="cicero dummy festival openjtalk generic piper"
# checks for output modules
# check for espeak support
AC_ARG_WITH([espeak],
Expand Down
1 change: 1 addition & 0 deletions src/modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
/sd_kali
/sd_openjtalk
/sd_pico
/sd_piper
/sd_skeleton0
/sd_skeleton0_espeak-ng-async
/sd_skeleton0_espeak-ng-async-server
Expand Down
11 changes: 11 additions & 0 deletions src/modules/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,17 @@ sd_openjtalk_LDADD = $(top_builddir)/src/common/libcommon.la \
sd_openjtalk_CPPFLAGS = $(AM_CPPFLAGS) \
$(DOTCONF_CFLAGS)

#
# piper module
#
modulebin_PROGRAMS += sd_piper
sd_piper_SOURCES = piper.c $(common_SOURCES) \
module_utils_addvoice.c
sd_piper_LDADD = $(top_builddir)/src/common/libcommon.la \
$(common_LDADD)
sd_piper_CPPFLAGS = $(AM_CPPFLAGS) \
$(DOTCONF_CFLAGS)

#
# Dummy module speech message
#
Expand Down
Loading