OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 21-Mar-2008 14:19:44
Branch: HEAD Handle: 2008032113194300
Added files:
openpkg-src/espeak espeak.1 espeak.patch espeak.spec
Log:
new package: espeak 1.36.02 (Speech Synthesis System)
Summary:
Revision Changes Path
1.1 +96 -0 openpkg-src/espeak/espeak.1
1.1 +64 -0 openpkg-src/espeak/espeak.patch
1.1 +99 -0 openpkg-src/espeak/espeak.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/espeak/espeak.1
============================================================================
$ cvs diff -u -r0 -r1.1 espeak.1
--- /dev/null 2008-03-21 14:16:02 +0100
+++ espeak.1 2008-03-21 14:19:44 +0100
@@ -0,0 +1,96 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH ESPEAK 1 "July 25, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+espeak \- A multi-lingual software speech synthesizer.
+.SH SYNOPSIS
+.B espeak
+.RI [ options ]\ [ "<words>" ]
+.SH DESCRIPTION
+.B espeak
+is a software speech synthesizer for English, and some other languages.
+.SH OPTIONS
+.TP
+.B \-h
+Show summary of options.
+.TP
+.B \-f <text file>
+Text file to speak
+.TP
+.B \-\-stdin
+Read text input from stdin instead of a file
+.TP
+If neither -f nor --stdin, <words> are spoken, or if none then text is
spoken from stdin, each line separately.
+.TP
+.B \-q
+Quiet, don't produce any speech (may be useful with -x)
+.TP
+.B \-a <integer>
+Amplitude, 0 to 20, default is 10
+.TP
+.B \-l <integer>
+Line length. If not zero (which is the default), consider
+lines less than this length as and-of-clause
+.TP
+.B \-p <integer>
+Pitch adjustment, 0 to 99, default is 50
+.TP
+.B -s <integer>
+Speed in words per minute, default is 160
+.TP
+.B \-v <voice name>
+Use voice file of this name from espeak-data/voices
+.TP
+.B -b
+Input text is 8-bit encoding
+.TP
+.B -m
+Indicates that the text contains SSML (Speech Synthesis Markup Language)
tags or other XML tags. Those SSML tags which are supported are interpreted.
Other tags, including HTML, are ignored, except that some HTML tags such as
<hr> <h2> and <li> ensure a break in the speech.
+.TP
+.B \-w <wave file name>
+Write output to this WAV file, rather than speaking it directly
+.TP
+.B \-x
+Write phoneme mnemonics to stdout
+.TP
+.B \-X
+Write phonemes mnemonics and translation trace to stdout. If rules files
have been built with --compile=debug, line numbers will also be displayed.
+.TP
+.B \-\-stdout
+Write speech output to stdout
+.TP
+.B \-\-compile=<voice name>
+Compile the pronunciation rules and dictionary in the current directory.
=<voice name> is optional and specifies which language
+.TP
+.B \-\-punct="<characters>"
+Speak the names of punctuation characters during speaking. If =<characters>
is omitted, all punctuation is spoken.
+.TP
+.B \-k <integer>
+Indicate capital letters with: 1=sound, 2=the word "capitals", higher values
= a pitch increase (try -k20).
+.TP
+.B \-\-voices[=<language code>]
+Lists the available voices. If =<language code> is present then only those
voices which are suitable for that language are listed.
+.TP
+.B \-\-compile=voicename
+Compile the pronunciation rules and dictionary in the current directory.
=<voice name> is optional and specifies which language
+.TP
+.B \-\-compile=debug
+Compile the pronunciation rules and dictionary in the current directory as
above, but include line numbers, that get shown when -X is used.
+.SH AUTHOR
+eSpeak was written by Jonathan Duddington <[EMAIL PROTECTED]>. The webpage
for this package can be found at http://espeak.sourceforge.net/.
+.PP
+This manual page was written by Luke Yelavich <[EMAIL PROTECTED]>, for the
Ubuntu project (but may be used by others).
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/espeak/espeak.patch
============================================================================
$ cvs diff -u -r0 -r1.1 espeak.patch
--- /dev/null 2008-03-21 14:16:02 +0100
+++ espeak.patch 2008-03-21 14:19:44 +0100
@@ -0,0 +1,64 @@
+Index: src/Makefile
+--- src/Makefile.orig 2008-03-09 20:22:06 +0100
++++ src/Makefile 2008-03-21 13:58:43 +0100
+@@ -25,7 +25,7 @@
+ MKDIR = mkdir -p
+
+ #AUDIO = pulseaudio
+-AUDIO = portaudio
++#AUDIO = portaudio
+
+
+ ifeq ($(AUDIO),pulseaudio)
+@@ -53,29 +53,29 @@
+
+ SRCS1=$(speak_SOURCES)
+ OBJS1=$(patsubst %.cpp,%.o,$(SRCS1))
+-LIBS1=-lstdc++ $(LIB_AUDIO) -lpthread $(EXTRA_LIBS)
++LIBS1=-lstdc++ $(LIB_AUDIO) -pthread $(EXTRA_LIBS)
+
+ SRCS2=$(libespeak_SOURCES)
+ OBJS2=$(patsubst %.cpp,x_%.o,$(SRCS2))
+-LIBS2=-lstdc++ $(LIB_AUDIO) -lpthread
++LIBS2=-lstdc++ $(LIB_AUDIO) -pthread
+
+ SRCS3 = espeak.cpp
+ OBJS3=$(patsubst %.cpp,%.o,$(SRCS3))
+-LIBS3=-lstdc++ -L . -lespeak
++LIBS3=-lstdc++ -L . -lespeak -pthread
+
+-CXXFLAGS=-O2
++CXX = g++
++CXXFLAGS=-O2 -pthread
+
+
+-all: $(BIN_NAME) $(LIB_NAME) $(STATIC_LIB_NAME) $(BIN2_NAME)
+- mv $(LIB_NAME) $(LIB_NAME).$(LIBTAG)
++all: $(BIN_NAME) $(STATIC_LIB_NAME) $(BIN2_NAME)
+
+ .cpp.o:
+- $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\"
-Wall -pedantic -I. -c -fno-exceptions $<
++ $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -I.
-c -fno-exceptions $<
+
+ $(BIN_NAME): $(OBJS1)
+ $(CXX) -o $@ $(OBJS1) $(LIBS1)
+
+-$(BIN2_NAME): $(OBJS3) $(LIB_NAME)
++$(BIN2_NAME): $(OBJS3) $(STATIC_LIB_NAME)
+ $(CXX) -o $@ $(OBJS3) $(LIBS3)
+
+
+Index: src/espeak.cpp
+--- src/espeak.cpp.orig 2008-03-13 02:08:03 +0100
++++ src/espeak.cpp 2008-03-21 13:58:37 +0100
+@@ -26,6 +26,10 @@
+
+ #include "speak_lib.h"
+
++#define GetFileLength my_GetFileLength
++#define strncpy0 my_strncpy0
++#define samplerate my_samplerate
++
+ // This version of the command-line speak program uses the
+ // libespeak.so.1 library
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/espeak/espeak.spec
============================================================================
$ cvs diff -u -r0 -r1.1 espeak.spec
--- /dev/null 2008-03-21 14:16:02 +0100
+++ espeak.spec 2008-03-21 14:19:44 +0100
@@ -0,0 +1,99 @@
+##
+## espeak.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS 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.
+##
+
+# package information
+Name: espeak
+Summary: Speech Synthesis System
+URL: http://espeak.sourceforge.net/
+Vendor: J. Duddington, G. Casse, R. Bencina, P. Burk
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: Audio
+License: GPL
+Version: 1.36.02
+Release: 20080321
+
+# list of sources
+Source0:
http://switch.dl.sourceforge.net/espeak/espeak-%{version}-source.zip
+Source1: espeak.1
+Patch0: espeak.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20060823, infozip, make, gcc,
gcc::with_cxx = yes
+PreReq: OpenPKG, openpkg >= 20060823
+AutoReq: no
+AutoReqProv: no
+
+%description
+ eSpeak is a Text to Speech engine for English and several other
+ languages. Compact size and clear pronunciation. It speaks text
+ files.
+
+%track
+ prog espeak = {
+ version = %{version}
+ url = http://prdownloads.sourceforge.net/espeak/
+ regex = espeak-(__VER__)-source\.zip
+ }
+
+%prep
+ %setup -q -T -c -n espeak-%{version}-source
+ ( cd .. && unzip -q -x %{SOURCE0} ) || exit $?
+ %patch -p0
+
+%build
+ ( cd src
+ %{l_make} %{l_mflags} \
+ DATADIR="%{l_prefix}/share/espeak"
+ ) || exit $?
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
+ $RPM_BUILD_ROOT%{l_prefix}/share/espeak \
+ $RPM_BUILD_ROOT%{l_prefix}/include \
+ $RPM_BUILD_ROOT%{l_prefix}/lib
+ %{l_shtool} install -c -s -m 755 \
+ src/espeak $RPM_BUILD_ROOT%{l_prefix}/bin/
+ %{l_shtool} install -c -m 644 \
+ %{SOURCE espeak.1} $RPM_BUILD_ROOT%{l_prefix}/man/man1/
+ cp -rp espeak-data/* \
+ $RPM_BUILD_ROOT%{l_prefix}/share/espeak/
+ %{l_shtool} install -c -m 644 \
+ src/speak_lib.h \
+ $RPM_BUILD_ROOT%{l_prefix}/include/espeak.hh
+ %{l_shtool} install -c -m 644 \
+ src/libespeak.a \
+ $RPM_BUILD_ROOT%{l_prefix}/lib/
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]