Skip to content

Commit

Permalink
Add a run-spd-say script and make run-speechd and run-spd-say able to…
Browse files Browse the repository at this point in the history
… talk directly

That allows to run the just-built speech-dispatcher and call spd-say on
it without having to interfere with an existing installation.
  • Loading branch information
sthibaul committed Sep 25, 2024
1 parent 7167ff3 commit 2833c60
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
/po/stamp-it
/po/stamp-po
/py-compile
/run-spd-say
/run-speechd
/so_locations
/speech-dispatcher.pc
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ To build and install speech-dispatcher and all of it's components, read the
file [INSTALL](INSTALL).


To try speech-dispatcher without installing it (e.g. to avoid disturbing an
existing speech-dispatcher instance), you can run

```
./run-speechd -t 0 -s
```

and in another terminal run

```
./run-spd-say foo
```


People
------

Expand Down
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@ AM_CONDITIONAL([USE_LIBSYSTEMD], [test "x$use_libsystemd" = "xyes"])
AM_CONDITIONAL(BUILD_HTML_DOC, [test "$EMAIL" = [email protected]])

AC_CONFIG_FILES([Makefile
run-speechd
run-speechd
run-spd-say
speech-dispatcher.pc
config/Makefile
config/clients/Makefile
Expand All @@ -591,7 +592,7 @@ AC_CONFIG_FILES([Makefile
src/modules/Makefile
src/server/Makefile
src/tests/Makefile],
[chmod +x run-speechd])
[chmod +x run-speechd run-spd-say])
AC_OUTPUT
AC_MSG_NOTICE([output modules to be built are $output_modules])
AC_MSG_NOTICE([audio methods to be built are $audio_methods])
Expand Down
4 changes: 4 additions & 0 deletions run-spd-say.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
abs_builddir=@abs_builddir@
abs_srcdir=@abs_srcdir@
LD_LIBRARY_PATH=$abs_builddir/src/audio${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} SPEECHD_ADDRESS=inet_socket:127.0.0.1:6561 $abs_builddir/src/clients/say/spd-say "$@"
2 changes: 1 addition & 1 deletion run-speechd.in
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
abs_builddir=@abs_builddir@
abs_srcdir=@abs_srcdir@
LD_LIBRARY_PATH=$abs_builddir/src/audio${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} $abs_builddir/src/server/speech-dispatcher -C $abs_srcdir/config -m $abs_builddir/src/modules "$@"
LD_LIBRARY_PATH=$abs_builddir/src/audio${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} $abs_builddir/src/server/speech-dispatcher -C $abs_srcdir/config -m $abs_builddir/src/modules -P $abs_builddir/speech-dispatcher.pid -c inet_socket -p 6561 "$@"

0 comments on commit 2833c60

Please sign in to comment.