espeakup-0.71/ 0000775 0000000 0000000 00000000000 11210270201 0013240 5 ustar 00root root 0000000 0000000 espeakup-0.71/.indent.pro 0000664 0000000 0000000 00000000011 11210270201 0015311 0 ustar 00root root 0000000 0000000 -kr
-ts4
espeakup-0.71/COPYING 0000664 0000000 0000000 00000104513 11210270201 0014277 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
espeakup-0.71/Makefile 0000664 0000000 0000000 00000001272 11210270201 0014702 0 ustar 00root root 0000000 0000000 INSTALL = install
SRCS = \
cli.c \
espeakup.c \
queue.c \
softsynth.c \
synth.c
OBJS = $(SRCS:.c=.o)
LDLIBS = -lespeak -lpthread
PREFIX = /usr
MANDIR = $(PREFIX)/share/man/man8
BINDIR = $(PREFIX)/bin
all: espeakup
install: espeakup
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 0755 $< $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR)
$(INSTALL) -m 0644 espeakup.8 $(DESTDIR)$(MANDIR)
clean:
$(RM) $(OBJS)
distclean: clean
$(RM) espeakup
espeakup: $(OBJS)
cli.o: cli.c espeakup.h
espeakup.o: espeakup.c espeakup.h
queue.o: queue.c espeakup.h
softsynth.o: softsynth.c espeakup.h
synth.o: synth.c espeakup.h
%.o: %.c
$(CC) -c -Wall $(CFLAGS) $(CPPFLAGS) -o $@ $<
espeakup-0.71/README 0000664 0000000 0000000 00000004621 11210270201 0014123 0 ustar 00root root 0000000 0000000 espeakup connector
=======================
espeakup is a program which makes it possible for speakup to use
the espeak software synthesizer. It does this by reading speakup's
softsynth device and passing the text to espeak which actually speaks.
Requirements
============
This program works with the speakup screen reader, which can be obtained
from http://linux-speakup.org, and the espeak software speech
synthesizer which can be obtained from http://espeak.sourceforge.net.
You must have both of these installed and operational. Setting them up
is beyond the scope of this document.
Installation
============
The preferred way to install espeakup is using your distribution's
packaging system, but if your distribution does not have a package for
espeakup yet, here are some basic instructions.
To install espeakup, first cd into the directory where you
unpacked the tarball, then issue make to compile the program. Once this
is done, as root, issue make install. This will install espeakup in /usr/bin.
Starting Up
===========
This program should be run after speakup is set up to communicate with a
software synthesizer and after /dev/softsynth exists. The way this is
done is distribution specific, so it is beyond the scope of this
documentation.
Command Line Options
====================
Espeakup currently accepts the following command line options:
--default-voice=voice, -V voice Set default voice.
--debug, -d Debug mode (stay in the foreground).
--help, -h Show this help.
--version, -v Display the software version.
Getting the Latest Version
==========================
Currently, a tarball of the latest official release will be included in
the contrib/ directory of the speakup repository. Also, it is possible
to download a tarball of any released version from github as follows:
wget http://www.github.com/williamh/espeakup/tarball/vx.y
Also, the clone URL, if you are familiar with using git is
git://github.com/williamh/espeakup.git.
Acknowledgements
================
I would like to thank Marc Mulcahy, the author of the speakup to
TTSynth connector, on which this work is based. Also, I would like
to thank Kirk Reiser and Jonathan Duddington, the
authors of Speakup and Espeak, respectively, for their work.
Questions
=========
You can contact me with questions, bugs, patches, etc, at
w.d.hubbs@gmail.com or on the speakup mailing list. I hope you find
this software to be useful.
espeakup-0.71/ToDo 0000664 0000000 0000000 00000000643 11210270201 0014033 0 ustar 00root root 0000000 0000000 This file contains a list of improvements that need to be made to
espeakup.
Voice and language support should be added at some point.
This will consist of the following:
- add a function which will allow switching voices. (completed on 9/27)
- add a function/command which will allow speakup to find out which
voices espeak supports.
- define and add the command to speakup which will allow it to switch
voices.
espeakup-0.71/cli.c 0000664 0000000 0000000 00000004351 11210270201 0014156 0 ustar 00root root 0000000 0000000 /*
* espeakup - interface which allows speakup to use espeak
*
* Copyright (C) 2008 William Hubbs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include
#include
#include
#include
#include "espeakup.h"
/* program version */
extern const char *Version;
/* default voice */
extern char *defaultVoice;
/* command line options */
const char *shortOptions = "dhV:v";
const struct option longOptions[] = {
{"default-voice", required_argument, NULL, 'V'},
{"debug", no_argument, NULL, 'd'},
{"help", no_argument, NULL, 'h'},
{"version", no_argument, NULL, 'v'},
{0, 0, 0, 0}
};
static void show_help()
{
printf("Usage: espeakup [options]\n\n");
printf("Options are as follows:\n");
printf(" --default-voice=voice, -V voice\tSet default voice.\n");
printf(" --debug, -d\t\t\t\tDebug mode (stay in the foreground).\n");
printf(" --help, -h\t\t\t\tShow this help.\n");
printf(" --version, -v\t\t\t\tDisplay the software version.\n");
exit(0);
}
static void show_version(void)
{
printf("espeakup %s\n", Version);
printf("Copyright (C) 2008 William Hubbs\n");
printf("License GPLv3+: GNU GPL version 3 or later\n");
printf("You are free to change and redistribute this software.\n");
exit(0);
}
void process_cli(int argc, char **argv)
{
int opt;
do {
opt = getopt_long(argc, argv, shortOptions, longOptions, NULL);
switch (opt) {
case 'V':
defaultVoice = strdup(optarg);
break;
case 'd':
debug = 1;
break;
case 'h':
show_help();
break;
case 'v':
show_version();
break;
case -1:
break;
default:
show_help();
break;
}
} while (opt != -1);
}
espeakup-0.71/espeakup.8 0000664 0000000 0000000 00000005230 11210270201 0015146 0 ustar 00root root 0000000 0000000 .\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Espeakup is Copyright 2008 by William Hubbs.
.\" This is free software; see the GNU General Public Licence version 3
.\" or later for copying conditions. There is NO warranty.
.TH ESPEAKUP 8 "5 Nov 2008" "0.60"
.nh
.SH NAME
espeakup \(em connect Speakup to the ESpeak TTS engine
.SH SYNOPSIS
.B espeakup
[
.B \-\^\-default-voice=voicename
]
[
.B \-\^\-debug
]
[
.B \-\^\-help
]
[
.B \-\^\-version
]
.SH OPTIONS
.TP
.B \-V voicename, \-\^\-default-voice=voicename
Set the espeak voice to be used by default.
.TP
.B \-d, \-\^\-debug
run in the foreground, rather than becoming a daemon process.
.TP
.B \-h, \-\^\-help
display a brief help message and exit.
.TP
.B \-v, \-\^\-version
output version information and exit.
.SH DESCRIPTION
Espeakup bridges the gap between two tools: the Speakup screen review
system and the ESppeak text-to-speech engine. Each of these tools
performs a well-defined task. Speakup is a kernel-based screen reader
for the Linux console. It extracts and processes the text that is
displayed on the foreground virtual console. It supports several
hardware based speech synthesizers directly. However, since it is in
kernel space, it cannot support a software speech synthesizer directly
since these are in user space.
ESpeak is a popular software speech synthesizer. It is small, light
weight, very responsive, and supports multiple languages.
Espeakup is a connector which will read text sent to it by speakup and
forward it to ESpeak. This allows Speakup to use ESpeak as its speech
synthesizer.
.PP
Espeakup is a daemon. Typically, it is started at boot time, and it terminates
when the system is halted or rebooted. It should be started by the
system's init scripts. This process varies among Linux distributions,
but the details are usually managed by the person who packaged Espeakup for
your distribution.
From the perspective of an average user, Espeakup's operation is invisible.
.SH BUGS
.PP
Espeakup is still classified as alpha software. Bugs are periodically found
and fixed. If you find a bug, please do report it to the author. You
might also consider mentioning it on the mailing list for the Speakup
screenreader. Visit http://speech.braille.uwo.ca/mailman/listinfo/speakup
to learn more about the mailing list.
.SH SEE ALSO
.PP
For more information about Speakup, visit its homepage: http://linux-speakup.org.
ESpeak's home page is http://espeak.sourceforge.net.
.SH AUTHOR
.PP
William Hubbs is the author and maintainer of Espeakup. He may be reached
via the email address . This manual page was written
by Chris Brannon, and his email address is .
espeakup-0.71/espeakup.c 0000664 0000000 0000000 00000006275 11210270201 0015233 0 ustar 00root root 0000000 0000000 /*
* espeakup - interface which allows speakup to use espeak
*
* Copyright (C) 2008 William Hubbs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include
#include
#include
#include
#include
#include
#include
#include "espeakup.h"
/* program version */
const char *Version = "0.71";
/* path to our pid file */
const char *pidPath = "/var/run/espeakup.pid";
/* default voice settings */
const int defaultFrequency = 5;
const int defaultPitch = 5;
const int defaultRate = 5;
const int defaultVolume = 5;
char *defaultVoice = NULL;
int debug = 0;
int espeakup_is_running(void)
{
int rc;
FILE *pidFile;
pid_t pid;
rc = 0;
pidFile = fopen(pidPath, "r");
if (pidFile) {
fscanf(pidFile, "%d", &pid);
fclose(pidFile);
if (!kill(pid, 0) || errno != ESRCH)
rc = 1;
}
return rc;
}
int create_pid_file(void)
{
FILE *pidFile;
pidFile = fopen(pidPath, "w");
if (!pidFile)
return -1;
fprintf(pidFile, "%d\n", getpid());
fclose(pidFile);
return 0;
}
void espeakup_sighandler(int sig)
{
if (debug)
printf("Caught signal %i\n", sig);
/* clear the queue */
queue_clear();
/* shut down espeak and close the softsynth */
espeak_Terminate();
close_softsynth();
if (!debug)
unlink(pidPath);
exit(0);
}
int main(int argc, char **argv)
{
pthread_t queue_thread_id;
struct synth_t s = {
.voice = "",
};
/* process command line options */
process_cli(argc, argv);
/* Is the espeakup daemon running? */
if (espeakup_is_running()) {
printf("Espeakup is already running!\n");
return 1;
}
/* open the softsynth. */
if (! open_softsynth()) {
perror("Unable to open the softsynth device");
return 3;
}
/* register signal handler */
signal(SIGINT, espeakup_sighandler);
signal(SIGTERM, espeakup_sighandler);
if (!debug) {
/* become a daemon */
daemon(0, 1);
/* write our pid file. */
if (create_pid_file() < 0) {
perror("Unable to create pid file");
return 2;
}
}
/* initialize espeak */
espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 0, NULL, 0);
/* Setup initial voice parameters */
if (defaultVoice) {
set_voice(&s, defaultVoice);
free(defaultVoice);
defaultVoice = NULL;
}
set_frequency(&s, defaultFrequency, ADJ_SET);
set_pitch(&s, defaultPitch, ADJ_SET);
set_rate(&s, defaultRate, ADJ_SET);
set_volume(&s, defaultVolume, ADJ_SET);
espeak_SetParameter(espeakCAPITALS, 0, 0);
/* Spawn our queue-processing thread. */
int err = pthread_create(&queue_thread_id, NULL, &queue_runner, &s);
if (err != 0) {
return 4;
}
/* run the main loop */
main_loop(&s);
return 0;
}
espeakup-0.71/espeakup.h 0000664 0000000 0000000 00000004303 11210270201 0015226 0 ustar 00root root 0000000 0000000 /*
* espeakup - interface which allows speakup to use espeak
*
* Copyright (C) 2008 William Hubbs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#ifndef __ESPEAKUP_H
#define __ESPEAKUP_H
/* This was added for gcc 4.3 */
#include
#include
enum command_t {
CMD_SET_FREQUENCY,
CMD_SET_PITCH,
CMD_SET_PUNCTUATION,
CMD_SET_RATE,
CMD_SET_VOICE,
CMD_SET_VOLUME,
CMD_SPEAK_TEXT,
CMD_FLUSH,
CMD_UNKNOWN,
};
enum adjust_t {
ADJ_DEC,
ADJ_SET,
ADJ_INC,
};
struct synth_t {
int frequency;
int pitch;
int punct;
int rate;
char voice[10];
int volume;
char *buf;
int len;
};
extern int debug;
extern void process_cli(int argc, char **argv);
extern void queue_clear(void);
extern void queue_add_cmd(enum command_t cmd, enum adjust_t adj,
int value);
extern void queue_add_text(char *txt, size_t length);
extern espeak_ERROR set_frequency(struct synth_t *s, int freq,
enum adjust_t adj);
extern espeak_ERROR set_pitch(struct synth_t *s, int pitch,
enum adjust_t adj);
extern espeak_ERROR set_punctuation(struct synth_t *s, int punct,
enum adjust_t adj);
extern espeak_ERROR set_rate(struct synth_t *s, int rate,
enum adjust_t adj);
extern espeak_ERROR set_voice(struct synth_t *s, char *voice);
extern espeak_ERROR set_volume(struct synth_t *s, int vol,
enum adjust_t adj);
extern espeak_ERROR stop_speech(void);
extern espeak_ERROR speak_text(struct synth_t *s);
extern int open_softsynth(void);
extern void close_softsynth(void);
extern void main_loop(struct synth_t *s);
extern void * queue_runner(void *arg);
#endif
espeakup-0.71/queue.c 0000664 0000000 0000000 00000012046 11210270201 0014533 0 ustar 00root root 0000000 0000000 /*
* espeakup - interface which allows speakup to use espeak
*
* Copyright (C) 2008 William Hubbs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include
#include
#include
#include
#include
#include "espeakup.h"
pthread_cond_t runner_awake = PTHREAD_COND_INITIALIZER;
pthread_mutex_t queue_guard = PTHREAD_MUTEX_INITIALIZER;
struct queue_entry_t {
enum command_t cmd;
enum adjust_t adjust;
int value;
char *buf;
int len;
struct queue_entry_t *next;
};
static struct queue_entry_t *first = NULL;
static struct queue_entry_t *last = NULL;
static void queue_add(struct queue_entry_t *entry)
{
pthread_mutex_lock(&queue_guard);
assert(entry);
entry->next = NULL;
if (!last)
last = entry;
if (!first) {
first = entry;
} else {
first->next = entry;
first = first->next;
}
pthread_mutex_unlock(&queue_guard);
pthread_cond_signal(&runner_awake);
}
static void free_entry(struct queue_entry_t *entry)
{
if (entry->cmd == CMD_SPEAK_TEXT)
free(entry->buf);
free(entry);
}
/* Remove and return the entry at the head of the queue.
* Return NULL if queue is empty. */
static struct queue_entry_t *queue_remove(void)
{
struct queue_entry_t *temp = NULL;
if (last) {
temp = last;
last = temp->next;
if (!last)
first = last;
}
return temp;
}
void queue_clear(void)
{
pthread_mutex_lock(&queue_guard);
while (last) {
struct queue_entry_t *entry = queue_remove();
if (entry)
free_entry(entry);
}
pthread_mutex_unlock(&queue_guard);
/* We aren't adding data to the queue, so no need to signal. */
}
void queue_add_cmd(enum command_t cmd, enum adjust_t adj, int value)
{
struct queue_entry_t *entry;
entry = malloc(sizeof(struct queue_entry_t));
if (!entry) {
perror("unable to allocate memory for queue entry");
return;
}
entry->cmd = cmd;
entry->adjust = adj;
entry->value = value;
queue_add(entry);
}
void queue_add_text(char *txt, size_t length)
{
struct queue_entry_t *entry;
entry = malloc(sizeof(struct queue_entry_t));
if (!entry) {
perror("unable to allocate memory for queue entry");
return;
}
entry->cmd = CMD_SPEAK_TEXT;
entry->adjust = ADJ_SET;
entry->buf = strdup(txt);
if (!entry->buf) {
perror("unable to allocate space for text");
free(entry);
return;
}
entry->len = length;
queue_add(entry);
}
static void queue_process_entry(struct synth_t *s)
{
espeak_ERROR error;
struct queue_entry_t *current = queue_remove();
pthread_mutex_unlock(&queue_guard); /* So "reader" can go. */
if (current) {
switch (current->cmd) {
case CMD_SET_FREQUENCY:
error = set_frequency(s, current->value, current->adjust);
break;
case CMD_SET_PITCH:
error = set_pitch(s, current->value, current->adjust);
break;
case CMD_SET_PUNCTUATION:
error = set_punctuation(s, current->value, current->adjust);
break;
case CMD_SET_RATE:
error = set_rate(s, current->value, current->adjust);
break;
case CMD_SET_VOICE:
break;
case CMD_SET_VOLUME:
error = set_volume(s, current->value, current->adjust);
break;
case CMD_SPEAK_TEXT:
s->buf = current->buf;
s->len = current->len;
error = speak_text(s);
break;
default:
break;
}
free_entry(current);
}
}
/* queue_runner is the "main" function of our secondary (queue-processing)
* thread.
* First, lock queue_guard, because it needs to be locked when we call
* pthread_cond_wait on the runner_awake condition variable.
* Next, enter an infinite loop.
* The wait call also unlocks queue_guard, so that the other thread can
* manipulate the queue.
* When runner_awake is signaled, the pthread_cond_wait call re-locks
* queue_guard, and the "queue processor" thread has access to the queue.
* While there is an entry in the queue, call queue_process_entry.
* queue_process_entry unlocks queue_guard after removing an item from the
* queue, so that the main thread doesn't have to wait for us to finish
* processing the entry. So re-lock queue_guard after each call to
* queue_process_entry.
*
* The main thread can add items to the queue in exactly two situations:
* 1. We are waiting on runner_awake, or
* 2. We are processing an entry that has just been removed from the queue.
*/
void *queue_runner(void *arg)
{
struct synth_t *synth = (struct synth_t *) arg;
pthread_mutex_lock(&queue_guard);
while (1) {
pthread_cond_wait(&runner_awake, &queue_guard);
while (last) {
queue_process_entry(synth);
pthread_mutex_lock(&queue_guard);
}
}
return NULL;
}
espeakup-0.71/softsynth.c 0000664 0000000 0000000 00000006600 11210270201 0015447 0 ustar 00root root 0000000 0000000 /*
* espeakup - interface which allows speakup to use espeak
*
* Copyright (C) 2008 William Hubbs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include
#include
#include
#include
#include
#include
#include
#include "espeakup.h"
/* max buffer size */
const size_t maxBufferSize = 1025;
/* synth flush character */
const int synthFlushChar = 0x18;
static int softFD = 0;
static int process_command(struct synth_t *s, char *buf, int start)
{
char *cp;
int value;
enum adjust_t adj;
enum command_t cmd;
cp = buf + start;
switch (*cp) {
case 1:
cp++;
switch (*cp) {
case '+':
adj = ADJ_INC;
cp++;
break;
case '-':
adj = ADJ_DEC;
cp++;
break;
default:
adj = ADJ_SET;
break;
}
value = 0;
while (isdigit(*cp)) {
value = value * 10 + (*cp - '0');
cp++;
}
switch (*cp) {
case 'b':
cmd = CMD_SET_PUNCTUATION;
break;
case 'f':
cmd = CMD_SET_FREQUENCY;
break;
case 'p':
cmd = CMD_SET_PITCH;
break;
case 's':
cmd = CMD_SET_RATE;
break;
case 'v':
cmd = CMD_SET_VOLUME;
break;
default:
cmd = CMD_UNKNOWN;
break;
}
cp++;
break;
default:
cmd = CMD_UNKNOWN;
cp++;
break;
}
if (cmd != CMD_FLUSH && cmd != CMD_UNKNOWN)
queue_add_cmd(cmd, adj, value);
return cp - (buf + start);
}
static void process_buffer(struct synth_t *s, char *buf, ssize_t length)
{
int start;
int end;
char txtBuf[maxBufferSize];
size_t txtLen;
start = 0;
end = 0;
while (start < length) {
while ((buf[end] < 0 || buf[end] >= ' ') && end < length)
end++;
if (end != start) {
txtLen = end - start;
strncpy(txtBuf, buf + start, txtLen);
*(txtBuf + txtLen) = 0;
queue_add_text(txtBuf, txtLen);
}
if (end < length)
start = end = end + process_command(s, buf, end);
else
start = length;
}
}
int open_softsynth(void)
{
int rc;
softFD = open("/dev/softsynth", O_RDWR | O_NONBLOCK);
if (softFD < 0)
rc = 0;
else
rc = 1;
return rc;
}
void close_softsynth(void)
{
close(softFD);
}
void main_loop(struct synth_t *s)
{
fd_set set;
ssize_t length;
char buf[maxBufferSize];
char *cp;
while (1) {
FD_ZERO(&set);
FD_SET(softFD, &set);
if (select(softFD + 1, &set, NULL, NULL, NULL) < 0) {
if (errno == EINTR)
continue;
perror("Select failed");
break;
}
if (!FD_ISSET(softFD, &set))
continue;
length = read(softFD, buf, maxBufferSize - 1);
if (length < 0) {
if (errno == EAGAIN || errno == EINTR)
continue;
perror("Read from softsynth failed");
break;
}
*(buf + length) = 0;
cp = strrchr(buf, synthFlushChar);
if (cp) {
queue_clear();
stop_speech();
memmove(buf, cp + 1, strlen(cp + 1) + 1);
length = strlen(buf);
}
process_buffer(s, buf, length);
}
}
espeakup-0.71/synth.c 0000664 0000000 0000000 00000005541 11210270201 0014556 0 ustar 00root root 0000000 0000000 /*
* espeakup - interface which allows speakup to use espeak
*
* Copyright (C) 2008 William Hubbs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include
#include "espeakup.h"
/* multipliers and offsets */
const int frequencyMultiplier = 11;
const int pitchMultiplier = 11;
const int rateMultiplier = 34;
const int rateOffset = 84;
const int volumeMultiplier = 22;
espeak_ERROR set_frequency(struct synth_t *s, int freq, enum adjust_t adj)
{
espeak_ERROR rc;
if (adj == ADJ_DEC)
freq = -freq;
if (adj != ADJ_SET)
freq += s->frequency;
rc = espeak_SetParameter(espeakRANGE, freq * frequencyMultiplier, 0);
if (rc == EE_OK)
s->frequency = freq;
return rc;
}
espeak_ERROR set_pitch(struct synth_t * s, int pitch, enum adjust_t adj)
{
espeak_ERROR rc;
if (adj == ADJ_DEC)
pitch = -pitch;
if (adj != ADJ_SET)
pitch += s->pitch;
rc = espeak_SetParameter(espeakPITCH, pitch * pitchMultiplier, 0);
if (rc == EE_OK)
s->pitch = pitch;
return rc;
}
espeak_ERROR set_punctuation(struct synth_t * s, int punct,
enum adjust_t adj)
{
espeak_ERROR rc;
if (adj == ADJ_DEC)
punct = -punct;
if (adj != ADJ_SET)
punct += s->punct;
rc = espeak_SetParameter(espeakPUNCTUATION, punct, 0);
if (rc == EE_OK)
s->punct = punct;
return rc;
}
espeak_ERROR set_rate(struct synth_t * s, int rate, enum adjust_t adj)
{
espeak_ERROR rc;
if (adj == ADJ_DEC)
rate = -rate;
if (adj != ADJ_SET)
rate += s->rate;
rc = espeak_SetParameter(espeakRATE,
rate * rateMultiplier + rateOffset, 0);
if (rc == EE_OK)
s->rate = rate;
return rc;
}
espeak_ERROR set_voice(struct synth_t * s, char *voice)
{
espeak_ERROR rc;
rc = espeak_SetVoiceByName(voice);
if (rc == EE_OK)
strcpy(s->voice, voice);
return rc;
}
espeak_ERROR set_volume(struct synth_t * s, int vol, enum adjust_t adj)
{
espeak_ERROR rc;
if (adj == ADJ_DEC)
vol = -vol;
if (adj != ADJ_SET)
vol += s->volume;
rc = espeak_SetParameter(espeakVOLUME, (vol + 1) * volumeMultiplier,
0);
if (rc == EE_OK)
s->volume = vol;
return rc;
}
espeak_ERROR stop_speech(void)
{
return (espeak_Cancel());
}
espeak_ERROR speak_text(struct synth_t * s)
{
espeak_ERROR rc;
rc = espeak_Synth(s->buf, s->len + 1, 0, POS_CHARACTER, 0, 0, NULL,
NULL);
return rc;
}
espeakup-0.71/version 0000775 0000000 0000000 00000000143 11210270201 0014651 0 ustar 00root root 0000000 0000000 #!/bin/bash
ver=$(grep "const char.*Version" espeakup.c)
ver=${ver%\"*}
ver=${ver#*\"}
echo ${ver}
espeakup-0.71/ 0000755 0001750 0001750 00000000000 11210270442 014425 5 ustar 00william william 0000000 0000000 espeakup-0.71/ChangeLog 0000644 0001750 0001750 00000057431 11210270442 016211 0 ustar 00william william 0000000 0000000 commit b31985f97c30b043dba7b77c5af0b42d3a65fcdd
Author: William Hubbs
Date: Sat May 30 12:44:33 2009 -0500
released v0.71
commit d7dd0f919dc82cc0e497700412980ce771a5d7df
Author: William Hubbs
Date: Sat May 30 12:37:58 2009 -0500
fixed initialization issues
We were not returning exit codes properly if we were unable to open the
softsynth or if the daemon was already running.
commit 2db53856a90a82c99c759399a1dfa5e704ce4f4a
Author: William Hubbs
Date: Sat May 30 10:37:39 2009 -0500
fixed typo in tarball script
commit 55f8ebf98a0fd2caef675e22499798b8ead99b12
Author: William Hubbs
Date: Sat May 30 10:32:36 2009 -0500
released v0.70
commit 69f1e8554a65b3eb0bdfcaf56bbcea86acc7e926
Author: William Hubbs
Date: Sat May 30 10:30:45 2009 -0500
The tarball script now adds a ChangeLog
commit 0e47c95015a8d0ca3c777717f3187bafc615f201
Author: William Hubbs
Date: Sat May 30 08:36:33 2009 -0500
updated README
commit c235a3b063a524cd308f2512c14502b5dee71434
Author: William Hubbs
Date: Sat May 30 00:20:31 2009 -0500
added .indent.pro to the repository
commit d7c81f5117442d66358efb52232d51f45a90d4e8
Author: William Hubbs
Date: Fri May 29 23:17:28 2009 -0500
indentation fixes
commit 3ddbb94e37a5183a0010a2e1ae46f4a64d39bba4
Author: Christopher Brannon
Date: Fri May 29 19:32:36 2009 -0500
multithreading
Make espeakup a multi-threaded program. One thread reads from the softsynth
device, queuing text and synthesis commands. The other thread processes
items from the queue.
commit 3a8323f98c702443f65b35bbfa84d3ae2c4c9b39
Author: William Hubbs
Date: Wed Apr 15 08:03:40 2009 -0500
Fixed typo in README
commit e7d300a183668d24cc1250083bd09ab1abcc4cfb
Author: William Hubbs
Date: Tue Apr 14 09:00:32 2009 -0500
turn off espeak's default processing of uppercase letters
This needs to be turned off since speakup processes upper case by
raising the pitch.
commit a1510b5e93de11dbf70fec2295b30a87656b4824
Author: William Hubbs
Date: Sun Apr 12 16:33:01 2009 -0500
indentation fixes
commit 3dbdcb21cbb28dc6cebd80077a6e774cc2673bb6
Author: William Hubbs
Date: Sun Apr 5 19:24:36 2009 -0500
Aespeakup should not drop all non-ascii characters.
This fixes an issue with non-english languages.
Thanks to Samuel Thibault for the patch.
commit 9551ba81d9bffad667f0d5f864d07c767e2e70e6
Author: William Hubbs
Date: Mon Mar 9 00:42:29 2009 -0500
espeakup 0.60
commit 6366b41bdf7b28b392de8ca0c2a246a8360f9293
Author: William Hubbs
Date: Sun Mar 8 23:25:54 2009 -0500
espeakup v0.6
commit 40f152e11fb4a89546e459861ac0348c58c8d449
Author: William Hubbs
Date: Sun Mar 8 21:05:24 2009 -0500
allow users to override CFLAGS
This fixes an issue with the Makefile that was not allowing users to
override cflags and keeping -Wall in the flags when compiling.
commit 4e7ae23757290ef299a3ba4285bc031de425d788
Author: William Hubbs
Date: Sun Mar 8 13:45:56 2009 -0500
created tarball script
This commit adds a script to create a tarball from the repository and
removes this functionality from the makefile.
commit 9ee3fd433cb2513462327fd815f108dc9abc8e8e
Author: William Hubbs
Date: Sun Mar 8 13:17:59 2009 -0500
documented --default-voice in man page
This commit adds the documentation for --default-voice to the espeakup
man page.
commit e2493db48e69307eeee3390d9329212cb6403613
Author: William Hubbs
Date: Sun Mar 8 10:18:44 2009 -0500
add --default-voice option to the help and README
This commit adds the documentation to the help and README files for the
--default-voice command line option.
commit 2351b5d489454c32c4a5c2ccdb1da609ded03b70
Author: William Hubbs
Date: Sat Mar 7 14:34:49 2009 -0600
add support for setting the default voice
This adds support for a --default-voice or -V (upper case) command line
option which will set the default voice espeakup uses. This takes a
name of an espeak voice -- for example:
espeakup --default-voice=en-us
or
espeakup -V en-us
commit da15136aa7b8c12024d9178d1ba6b29037984a75
Author: William Hubbs
Date: Sat Mar 7 10:39:00 2009 -0600
only one espeakup daemon should be running
This fixes a bug which would allow espeakup in debug mode to be run even
if espeakup was already running as a daemon.
commit 8dca597f29e0ef54525f5f717a7058a037d2e9fc
Author: William Hubbs
Date: Tue Mar 3 21:58:02 2009 -0600
Added a version script
I added a version script. This is used in the Makefile to get the
version of espeakup when none is specified when a tarball is created.
commit bbf77d918dac93e1bec7fc90c0b8b34dfb5a8e65
Author: William Hubbs
Date: Tue Mar 3 18:02:19 2009 -0600
Cleaned up warnings and adjusted CFLAGS
This commit cleans up warnings and adjusts CFLAGS. Thanks to
samuel.thibault@ens-lyon.org.
commit 7db55303088588a19fcde1c804268c984f6008d8
Author: William Hubbs
Date: Tue Feb 10 21:57:10 2009 -0600
Espeakup version 0.51.
commit 341fa7ba425892c12ae293584aacd9028d520e62
Author: William Hubbs
Date: Tue Feb 10 21:54:44 2009 -0600
fixed install command in makefile.
commit 0f24afef95c2bdda474d77bc774f19003015da46
Author: William Hubbs
Date: Mon Feb 9 09:05:28 2009 -0600
espeakup v0.5
commit c12ec3e1b060b6e3ec1ac53db33b6f87877e9109
Author: William Hubbs
Date: Mon Feb 9 08:46:14 2009 -0600
moved version definition
This commit moves the version definition to espeakup.c instead of cli.c
commit a8876a79644f36453a7edaef4c0860c7d2402c9b
Author: William Hubbs
Date: Mon Feb 9 08:39:58 2009 -0600
fixed the license in the man page
The man page said that espeakup is under gpl version 2 or later, but it
is under version 3 or later, so I fixed the man page.
commit 2b96dd2a026bb2220071699fc51cdf11b9412d82
Author: William Hubbs
Date: Sat Jan 24 13:02:33 2009 -0600
updated man page
This commit re-words the description of espeakup in the man page.
commit 17553c3c391e011a1ccf90179c634003d2a61519
Author: William Hubbs
Date: Sat Jan 10 09:48:48 2009 -0600
fixed the makefile
This commit removes the definitions for CC, RM and INSTALL from the
makefile so that it will use system defaults for these commands.
commit ace8acf7d01cc256c1df96d3b03e21806772edb5
Author: William Hubbs
Date: Wed Nov 12 23:40:27 2008 -0600
fixed hyphenation
This commit turns off hypenation in the man page.
commit 84c473b690633999f47478dbf00c766d1a31628b
Author: William Hubbs
Date: Wed Nov 12 21:22:39 2008 -0600
added man page
This commit adds a man page for espeakup.
Thanks to Chris Brannon for writing it.
commit f7ddd8dc77927d21a07479f80969df031af396f2
Author: William Hubbs
Date: Wed Oct 22 19:23:46 2008 -0500
Released v0.4.
commit a3901a7e4c0d273f2ad5352f939714fe235166e4
Author: William Hubbs
Date: Wed Oct 22 19:17:03 2008 -0500
fixed a bug in process_command
One of the switch statements in process_command did not have a default
label, which lead to undefined behavior.
Thanks to Chris Brannon for the patch.
commit 36b05aec419a7ab7bc3b66358f62122096ec9ce2
Author: William Hubbs
Date: Sat Oct 18 16:56:47 2008 -0500
Added support for the punctuation command from speakup
commit c48b05d7437435c0c7513e9d98ab04b565c87f92
Author: William Hubbs
Date: Fri Oct 10 20:05:43 2008 -0500
moved all variable definitions to the top of the Makefile.
commit 82fa63600b9377fa590a2c97ed737fd8c85a622c
Author: William Hubbs
Date: Thu Oct 9 19:40:11 2008 -0500
fixed the makefile
Added espeakup.h as a dependency in the makefile so that the sources
will be compiled if it changes.
commit d7e8dc2b342b5a810ec561535ca0426969f519ea
Author: William Hubbs
Date: Thu Oct 9 09:05:56 2008 -0500
Revert "fixed the length calculation when a flush is processed."
This reverts commit 66cb5a7b5cfe0e569525935d03b0843ee85a8afc.
commit 66cb5a7b5cfe0e569525935d03b0843ee85a8afc
Author: William Hubbs
Date: Thu Oct 9 08:17:07 2008 -0500
fixed the length calculation when a flush is processed.
commit 62deb008bc658d925bd86fb4172b12779b9cad18
Author: William Hubbs
Date: Thu Oct 9 07:58:58 2008 -0500
fixed the number of bytes to move in the memmove() call
commit 14858818d3cf38886aef5089982522feb9a8edfb
Author: William Hubbs
Date: Wed Oct 8 21:59:36 2008 -0500
changed strcpy to memmove
The areas pointed to by strcpy() cannot overlap, so we need to use
memmove() in case that happens.
Thanks to Chris Brannon for pointing this out.
commit 6bec55ca5789e26ee315e890f4937c1451b8cd07
Author: William Hubbs
Date: Wed Oct 8 18:14:17 2008 -0500
changed process_buffer to use the isprint() call.
commit 1b608481a4062f3a8f98192e50acfcb73cf577e2
Author: William Hubbs
Date: Sun Oct 5 16:22:16 2008 -0500
the main loop now uses strrchr and strcpy
The idea for this change came from another patch submitted by Chris
Brannon. We now use strrchr to look for the flush character and strcpy
to move the remainder of the buffer to the beginning.
commit faab1893893fa0c97263a0edf965cf4f67bd1294
Author: William Hubbs
Date: Sun Oct 5 16:12:37 2008 -0500
Fixed the select call
The select call was moved to be in the if statement below it since the
return code is not needed after that statement is processed.
commit 24607b1cc8000d4d95128e96662240dbce385358
Author: William Hubbs
Date: Sun Oct 5 14:47:52 2008 -0500
made the synth flush character a constant for readability
commit c8e2a35763624463d1006a83ab0125603813d239
Author: William Hubbs
Date: Sat Oct 4 12:43:40 2008 -0500
fixed an off-by-one error
The loop can start at length-1 since we know that the last character in
the buffer is a null.
Thanks again to Chris Brannon for finding this.
commit f76d00f6afefb8de92bf205d16d84f488b91615d
Author: William Hubbs
Date: Sat Oct 4 11:39:01 2008 -0500
removed the callback function
This commit removes the synthcallback function since it wasn't doing
anything. Also, it has been reported that this may be causing the
sluggishness when espeakup is asked to shut up.
Thanks to Chris Brannon for finding this.
commit 17f07e8cd175520c8fe16880f9f578e0f49579fc
Author: William Hubbs
Date: Sun Sep 28 12:26:26 2008 -0500
released v0.3.
commit 9b0c6a8224980c8637302d9e680cccef4ed0043d
Author: William Hubbs
Date: Sat Sep 27 12:23:11 2008 -0500
fixed the volume multiplier
The volume range is actually 0-200 instead of 0-100, so the multiplier
needed to be adjusted.
commit c7e3835fbd2ab4d9ae5162488163d22c8bd9c811
Author: William Hubbs
Date: Sat Sep 27 11:04:22 2008 -0500
Updated ToDo list
commit 527fb136de9d01c752f6f6d03d2ac42b89a94499
Author: William Hubbs
Date: Sat Sep 27 10:52:24 2008 -0500
starting work toward supporting changing voices
This commit adds a set_voice() function which will ultimately allow the
user to switch voices.
commit f52c03ec2be8cc67e680eda0cdb6bbb051b858cd
Author: William Hubbs
Date: Fri Sep 26 08:17:13 2008 -0500
Fixed a typo.
commit 8d3552c9642aec00f5ecc89dbbccd181244d9bfa
Author: William Hubbs
Date: Wed Sep 3 08:51:46 2008 -0500
updated readme
commit 1f784be8911bd2917e697630de3da05da2814ab4
Author: William Hubbs
Date: Wed Sep 3 08:16:54 2008 -0500
added support for long command line options
commit 037019de3a74c191349bebc03289a11ab7cead42
Author: William Hubbs
Date: Mon Sep 1 16:18:46 2008 -0500
Espeakup v0.2
commit 943ff9d3dc50184a359ee7b39d57b4baaba0657c
Author: William Hubbs
Date: Mon Sep 1 16:08:07 2008 -0500
updated README
commit 5ddeb1e978bc637b4db22f19d0db8e448599f5e0
Author: William Hubbs
Date: Mon Sep 1 12:50:16 2008 -0500
indentation fixes
commit ccc9c4aa4ed3f16d3781b92fbd6d6ec013627c5c
Author: William Hubbs
Date: Sun Aug 31 11:30:01 2008 -0500
modified rate offset
This commit moves the rate offset to 84 instead of 80 so that the
highest espeak rate can be reached by setting the speakup rate to
the maximum.
commit 96a3b198508172e30bb0614563db94f83e45ce03
Author: William Hubbs
Date: Sun Aug 31 10:29:00 2008 -0500
fix flush processing
This removes flush processing from process_command() and fixes
the code in the main loop so that it does not ignore the 0 position
in the buffer.
commit 5bc67dc49d61468968b25cda1340091fced573a0
Author: William Hubbs
Date: Sat Aug 30 17:04:08 2008 -0500
updated ToDo list.
commit 02e72bda39b4c26bcc1a67d701a405427e3a6f8a
Author: William Hubbs
Date: Sat Aug 30 16:54:10 2008 -0500
adjusted the rate multiplier
This gets us closer to espeak's top speed, which is 390 wpm.
commit ebcbcac9d2b230a37347f60aa3e2715a07bb13a6
Author: William Hubbs
Date: Sat Aug 30 16:34:59 2008 -0500
removed an extra assignment statement
commit d2d763b36ba477c18a04933ee49b68f71dd641a2
Author: William Hubbs
Date: Sat Aug 30 15:02:26 2008 -0500
moved flush processing into main loop
This patch from Kirk Reiser attempts to increase
responsiveness by moving the flush processing into the main loop.
commit 564db7981e1aeda4eb84958d1f66c6474803991f
Author: William Hubbs
Date: Fri Aug 29 19:16:10 2008 -0500
put back the select code
This needed to be put back to keep espeakup from using 100% of the cpu.
commit 5005b9ddde90aeab3948f9123491463d0e319528
Author: William Hubbs
Date: Sun Aug 17 18:32:05 2008 -0500
removed code that uses select
I was using the wrong type for the return value for read().
commit 3e7e5be2b78bdc1dbaa400d3b8e35ac66eab3cbd
Author: William Hubbs
Date: Sun Aug 17 00:49:46 2008 -0500
fixed bug with volume setting
Now the volume setting should be announced again.
commit f973c9ec3fa92560279acede8386beeaa5f6835b
Author: William Hubbs
Date: Sun Aug 17 00:47:08 2008 -0500
cleaned up prototypes
This commit gets rid of extra spaces in some function prototypes.
commit 498ce65db7d789b9639b96240555e48ab3a910b6
Author: William Hubbs
Date: Sun Aug 17 00:44:06 2008 -0500
cleaned up process_command
commit aac77a3cf1edd6b503bcaada06a575ac06efa6f7
Author: William Hubbs
Date: Sun Aug 17 00:20:50 2008 -0500
ignore object files
commit de8d4d9dc3bb7afd51eef89c0c7c2fb6d630b7a7
Author: William Hubbs
Date: Sat Aug 16 23:29:11 2008 -0500
fixed an include for gcc 4.3
commit b34e397717bae998bd2280a0774a04cd37ea1791
Author: William Hubbs
Date: Sat Aug 16 20:09:03 2008 -0500
clear the queue when we catch a signal
commit 4c30dac5e16c84d92f12aa06c3cf5279c726d8db
Author: William Hubbs
Date: Sat Aug 16 20:07:41 2008 -0500
added prototypes for queue functions
commit 2bf3b17ffcbb3705afc23957e77fba2dc7abbda9
Author: William Hubbs
Date: Sat Aug 16 20:05:19 2008 -0500
removed debug flag from cflags
commit 655894ee2a240036e966a5854fc71bb788aebe25
Author: William Hubbs
Date: Sat Aug 16 19:48:40 2008 -0500
added queueing support
I have added queueing support so that when we read from the softsynth we
can put the text and commands we have read into a queue. This will
allow us to retry calling espeak_synth() if we fill espeak's internal
buffer.
commit 86e93edeb09774d3689cca7f9fe96aa484f3bd6d
Author: William Hubbs
Date: Fri Aug 15 22:34:49 2008 -0500
removed softsynth code from main module
commit 261c6db032a0c4654c0b77055701223bee055dcb
Author: William Hubbs
Date: Fri Aug 15 09:14:18 2008 -0500
Added ToDo list
commit 029dd03251d24dc5c0a1b0e5a16706c0ca73180d
Author: William Hubbs
Date: Fri Aug 15 00:11:48 2008 -0500
modularize the code
This commit just re-arranges the source so that it is easier to work with.
commit 882e9c20a547707c2d63a70414de951c50e5d4db
Author: William Hubbs
Date: Tue Aug 12 08:10:56 2008 -0500
clean up the main function
This commit cleans up the main function and moves command line processing
to a separate function.
commit 4d2f76d6e111bb45cdf336f4be8140bcab3d51b6
Author: William Hubbs
Date: Sun Aug 10 12:59:27 2008 -0500
removed makedist
The functionality to create a tarball has been moved into the makefile.
Now it is possible to create a tarball by doing:
make tarball - creates a tarball of the llast tagged version.
make TAG=gittag tarball creates a tarball based on the tag that is given to it.
commit 1802877912be8e4b68541ed07d738841947463fd
Author: William Hubbs
Date: Sat Aug 9 17:42:29 2008 -0500
Removed init scripts.
It will be best to let packagers write init scripts for their distributions,
so I am removing them from this repository.
commit 3d83e0f6d152035890d7dbecb5961ee79234d476
Author: William Hubbs
Date: Mon Aug 4 20:24:01 2008 -0500
updated readme
I added an acknowledgements section.
commit b76fada0b61873bb5228246e2585fea3ca690aba
Author: William Hubbs
Date: Sun Aug 3 13:48:13 2008 -0500
fixed makefile
The reference to $(PROGRAM) should have been $<.
This is fixed.
commit c2c1d429db31693a60b8e93479a4d4fe5d31588a
Author: William Hubbs
Date: Sun Aug 3 12:13:17 2008 -0500
added redhat init script, thanks to William Acker.
commit c7bece776d13a1c5ac1a52967ffb5cd1b3ed9a9c
Author: William Hubbs
Date: Sun Aug 3 10:35:31 2008 -0500
fixed makefile
There was a bug in the makefile which was not installing the binary correctly.
This is now fixed.
commit 22ea5c4d1d5db2d4d24e5a89437fac0d6940edf7
Author: William Hubbs
Date: Sat Aug 2 17:25:17 2008 -0500
updated makedist
The makedist script now excludes itself and .gitignore when creating a tarball.
commit 9402716c32c124fff4614b1555f7219f0bbe7135
Author: William Hubbs
Date: Sat Aug 2 16:30:43 2008 -0500
cleaned up command line option processing
commit 05b115abbb8aa1d14b0f1c38c1212918fc9d8c24
Author: William Hubbs
Date: Sat Aug 2 11:54:11 2008 -0500
fixed typos in makedist script.
commit 16beed096923abea8a7768d1ee6224419faabd0b
Author: William Hubbs
Date: Sat Aug 2 11:47:29 2008 -0500
added a script to make tarball releases.
commit 6ecc3182dab397d7b197e18d7bf78ca8c1316f71
Author: William Hubbs
Date: Fri Aug 1 22:12:57 2008 -0500
added a version command line option and variable.
commit 96871c66201b77fddf5b80106b8f136fe825df87
Author: William Hubbs
Date: Fri Aug 1 22:11:53 2008 -0500
added destdir and prefix to the makefile for packaging.
commit c7e0e28ad1102c395958c3baab70b4a8d20203bc
Author: William Hubbs
Date: Fri Aug 1 21:46:54 2008 -0500
added gpl
commit 02c88e949a9e44e16fa7ad6c289f3c476e0becb2
Author: William Hubbs
Date: Fri Aug 1 20:35:55 2008 -0500
adjusted multipliers
I adjusted the pitch and volume multipliers.
This should allow us to come closer to the maximum espeak settings.
commit d7de943a3a1b748e2cb27f42af483339de8aa444
Author: William Hubbs
Date: Fri Aug 1 19:51:29 2008 -0500
added frequency support
This patch, also from Kirk Reiser, adds frequency support.
commit cddead8aa951e0ad68ba241456a8e5f36c6fb2f5
Author: William Hubbs
Date: Fri Aug 1 09:27:51 2008 -0500
pid file support
This commit adds support for a pid file so that we can be stopped and
started by init systems.
commit b51cf9d774cc5a2abd13480238b951e20680ec24
Author: William Hubbs
Date: Thu Jul 31 20:32:51 2008 -0500
Added a signal handler
This commit adds a signal handler so that espeakup will terminate cleanly.
commit 61aac5ecb58ac49fc9060d19dde2dbda996e8e9f
Author: William Hubbs
Date: Thu Jul 31 08:47:00 2008 -0500
moved some variables
This commit removes the softsynth file descriptor and the debug flag
from the synth structure. These will need to be accessed from a signal
handler and there is no way to pass the structure to it.
Also, the process_data function now works with local variables and assigns
them to the synth structure, avoiding allocating a buffer with malloc/free.
commit eb5cb3d36d35887907e13aeee0cad8fcc1b73baa
Author: William Hubbs
Date: Thu Jul 31 08:24:57 2008 -0500
fixed volume
I applied another patch from Kirk Reiser which fixes the volume setting.
Thanks to Kirk for the patch.
commit 7604cac68c53dd3c01cfc0e131e2a7f985b40ff7
Author: William Hubbs
Date: Wed Jul 30 08:51:23 2008 -0500
fixed the garbage characters bug
This fixes the bug that was causing garbage characters to be spoken. Also
it sets the initial voice to "default".
commit b745e0c48b614143fb4df04ba878af29f4ece587
Author: William Hubbs
Date: Tue Jul 29 22:58:41 2008 -0500
more error checking
I moved the read call out of process_data and into the main loop.
Also, error checking was added for select() and read().
commit c3b0e8d0da9efdf9e719ba3fbe599640a5db7dce
Author: William Hubbs
Date: Tue Jul 29 20:00:04 2008 -0500
code cleanup
This patch adds the length of the buffer to the synth structure and
clears the buffer before we use it.
Thanks to Kirk Reiser for the patch.
commit c4839ac78b967b4677531afe7568156c907e6bda
Author: William Hubbs
Date: Mon Jul 28 08:58:32 2008 -0500
added maxBufferSize constant
commit 754358f1731e58990b4c4131d4b900a5d2a5049a
Author: William Hubbs
Date: Mon Jul 28 08:39:19 2008 -0500
added cli option support
This commit adds support for command line options and also adds a debug option.
commit 572f33337811973091f44e54e6b4fcb13ae689d9
Author: William Hubbs
Date: Mon Jul 28 07:20:46 2008 -0500
added volume support
I added support for setting the volume.
commit 4e3bbdb0b02eb1f12c087909e6437a31a9c60d7b
Author: William Hubbs
Date: Mon Jul 28 01:23:43 2008 -0500
initial import