Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.advocacy > #17916
| From | owl <owl@rooftop.invalid> |
|---|---|
| Newsgroups | comp.os.linux.advocacy |
| Subject | Re: Linux is power squared |
| Date | 2011-04-23 21:08 +0000 |
| Organization | ok by me, so long as it doesn't get out of hand |
| Message-ID | <79awera.nb9ouaw4@rooftop.invalid> (permalink) |
| References | (3 earlier) <iot301$7v2$1@dont-email.me> <slrnir47tb.9d.jedi@nomad.mishnet> <iotcej$k61$1@dont-email.me> <n89ahwer.h94thr@rooftop.invalid> <iouous$f0q$1@dont-email.me> |
Ezekiel <Me@not-there.com> wrote:
> >
> >
> >"owl" wrote in message news:n89ahwer.h94thr@rooftop.invalid...
> >
> >Every one of those languages has a system() function from which you can
> >call espeak.
> >
> Calling system() may work fine for a trivial example like 'speak a text
> file' but it doesn't scale as well as an object-oriented interface for more
> complex tasks.
> Example - Manipulating XML files. Using an object model lets me use any
> built-in system service like handling XML files in anything from a language
> like C/C++ to scripts to directly within apps like Excel or MS-Access. So
> if all you need to do is "espeak <filename>" then either one will work just
> as well. But if you need to iterate over all of the nodes in an XML document
> and process them based on the document contents then I don't see a
> reasonable way to do this by just calling system() and running some app.
> There just isn't enough control and interaction between the two ends to make
> this work.
I don't how well espeak works with XML, but from its manpage:
-m Indicates that the text contains SSML (Speech Synthesis Markup
Language) tags or other XML tags. Those SSML tags which are sup???
ported 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.
> >
> >What's wrong with espeak for this? Seriously, text to speech is of limited
> >use anyway, so I struggle to imagine a case that would be any better served
> >by direct calls to a specialized API.
> >
> For something trivial like espeak <filename> it doesn't matter. But as the
> tasks become increasing more complex like parsing XML then it's much easier
> with an object model vs. calling system().
> For example - let's say that you're speaking a long file ( espeak <big-file>
> or obj.Speak(<big-file>, SVSFIsFilename); ) that's several minutes long.
> Part-way through this a higher-priority even happens and you need to pause
> the speaking and say something else ("Reactor is overheating" or "Possible
> intruder at front door"). Using the object model it's trivial:
> obj.Pause();
> # Do something else
> obj.Resume();
> If espeak was started via system() then doing these sorts of things isn't
> always easy or even possible to do.
Not difficult. You get espeak's PID (with ps and grep) and send it
a SIGTSTP or SIGSTOP, followed later with a SIGCONT.
kill -20 <pid_of_espeak>
(deal with overheating reactor)
kill -18 <pid_of_espeak>
Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Linux is power squared 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-22 23:35 +0100
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-22 16:57 -0600
Re: Linux is power squared "Ezekiel" <Me@Not-there.com> - 2011-04-22 19:17 -0400
Re: Linux is power squared "Ezekiel" <Me@Not-there.com> - 2011-04-22 19:29 -0400
Re: Linux is power squared 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-23 01:04 +0100
Re: Linux is power squared "Ezekiel" <Me@Not-there.com> - 2011-04-22 20:12 -0400
Re: Linux is power squared Big Steel <Steel9901x22@9901x22Steel.com> - 2011-04-22 20:14 -0400
Re: Linux is power squared RonB <ronb02NOSPAM@gmail.com> - 2011-04-23 00:25 +0000
Re: Linux is power squared 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-23 01:36 +0100
Re: Linux is power squared RonB <ronb02NOSPAM@gmail.com> - 2011-04-23 00:57 +0000
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 10:13 -0400
Re: Linux is power squared TomB <tommy.bongaerts@gmail.com> - 2011-04-23 16:35 +0200
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-23 10:22 -0500
Re: Linux is power squared Gregory Shearman <ZekeGregory@netscape.net> - 2011-04-24 05:36 +0000
Re: Linux is power squared TomB <tommy.bongaerts@gmail.com> - 2011-04-25 12:01 +0000
Re: Linux is power squared Gregory Shearman <ZekeGregory@netscape.net> - 2011-04-25 21:45 +0000
Re: Linux is power squared RonB <ronb02NOSPAM@gmail.com> - 2011-04-23 16:33 +0000
Re: Linux is power squared 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-23 01:28 +0100
Re: Linux is power squared "Ezekiel" <Me@Not-there.com> - 2011-04-22 20:46 -0400
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-22 21:24 -0400
Re: Linux is power squared TomB <tommy.bongaerts@gmail.com> - 2011-04-23 09:55 +0200
Re: Linux is power squared "Ezekiel" <Me@Not-there.com> - 2011-04-23 09:07 -0400
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 10:15 -0400
Re: Linux is power squared TomB <tommy.bongaerts@gmail.com> - 2011-04-23 16:24 +0200
Re: Linux is power squared 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-23 16:16 +0100
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-23 11:32 -0400
Re: Linux is power squared chrisv <chrisv@nospam.invalid> - 2011-04-25 07:42 -0500
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-22 19:39 -0500
Re: Linux is power squared "Ezekiel" <zeke@nosuchmail.com> - 2011-04-22 22:10 -0400
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-23 00:34 -0500
Re: Linux is power squared owl <owl@rooftop.invalid> - 2011-04-23 06:51 +0000
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-23 01:01 -0600
Re: Linux is power squared owl <owl@rooftop.invalid> - 2011-04-23 07:14 +0000
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-23 01:35 -0600
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-23 01:38 -0600
Re: Linux is power squared owl <owl@rooftop.invalid> - 2011-04-23 09:19 +0000
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 10:24 -0400
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-23 10:47 -0600
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-23 19:46 +0200
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 18:20 -0400
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-23 22:20 -0400
Re: Linux is power squared "Ezekiel" <zeke@nosuchmail.com> - 2011-04-24 08:28 -0400
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-24 14:18 -0400
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-25 14:13 +0200
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-24 13:41 -0500
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-24 14:16 -0600
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-24 16:26 -0400
Re: Linux is power squared owl <owl@rooftop.invalid> - 2011-04-25 07:49 +0000
Re: Linux is power squared Gregory Shearman <ZekeGregory@netscape.net> - 2011-04-25 21:43 +0000
Re: Linux is power squared Bob Hauck <postmaster@avalanche.org> - 2011-04-25 20:08 -0400
Re: Linux is power squared Homer <usenet@slated.org> - 2011-04-26 04:28 +0100
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-26 06:02 +0200
Re: Linux is power squared owl <owl@rooftop.invalid> - 2011-04-26 22:31 +0000
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-26 10:46 -0500
Re: Linux is power squared "Ezekiel" <Me@Not-there.com> - 2011-04-23 10:50 -0400
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-23 17:19 +0200
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-23 10:18 -0500
Re: Linux is power squared "Ezekiel" <zeke@nosuchmail.com> - 2011-04-23 12:49 -0400
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-23 12:54 -0400
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-23 20:00 +0200
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-24 13:30 -0500
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-25 14:44 +0200
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-26 10:53 -0500
Re: Linux is power squared Bob Hauck <postmaster@avalanche.org> - 2011-04-23 18:32 -0400
Re: Linux is power squared 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-24 00:33 +0100
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-24 13:29 -0500
Re: Linux is power squared "Ezekiel" <zeke@nosuchmail.com> - 2011-04-24 19:01 -0400
Re: Linux is power squared Big Steel <Steel9901x22@9901x22Steel.com> - 2011-04-24 19:35 -0400
Re: Linux is power squared "Ezekiel" <zeke@nosuchmail.com> - 2011-04-24 19:57 -0400
Re: Linux is power squared Big Steel <Steel9901x22@9901x22Steel.com> - 2011-04-24 20:08 -0400
Re: Linux is power squared "Ezekiel" <zeke@nosuchmail.com> - 2011-04-24 20:15 -0400
Re: Linux is power squared Big Steel <Steel9901x22@9901x22Steel.com> - 2011-04-24 20:23 -0400
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-25 14:23 +0200
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-25 14:20 +0200
Re: Linux is power squared "Ezekiel" <zeke@nosuchmail.com> - 2011-04-25 10:10 -0400
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-25 16:57 +0200
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-26 10:50 -0500
Re: Linux is power squared "Ezekiel" <zeke@nosuchmail.com> - 2011-04-26 12:34 -0400
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-26 10:48 -0500
Re: Linux is power squared Big Steel <Steel98@steel98.com> - 2011-04-26 12:50 -0400
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 18:29 -0400
Re: Linux is power squared owl <owl@rooftop.invalid> - 2011-04-23 21:08 +0000
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-23 15:14 -0600
Re: Linux is power squared owl <owl@rooftop.invalid> - 2011-04-23 21:26 +0000
Re: Linux is power squared "Ezekiel" <Me@Not-there.com> - 2011-04-23 17:25 -0400
Re: Linux is power squared owl <owl@rooftop.invalid> - 2011-04-24 09:42 +0000
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-23 14:17 +0200
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-23 11:34 -0400
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-23 10:22 -0500
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 18:30 -0400
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-22 21:23 -0400
Re: Linux is power squared stukie <stukieh@gmail.com> - 2011-04-22 23:24 +0000
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 07:22 -0400
Re: Linux is power squared 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-23 14:29 +0100
Re: Linux is power squared owl <owl@rooftop.invalid> - 2011-04-22 23:34 +0000
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-22 19:46 -0500
Re: Linux is power squared DFS <nospam@dfs_.com> - 2011-04-23 03:31 +0000
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-22 23:42 -0400
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-23 00:33 -0500
Re: Linux is power squared Norman Peelman <npeelman@cfl.rr.com> - 2011-04-23 08:33 -0400
Re: Linux is power squared Chris <chrisdhaag@googlemail.com> - 2011-04-23 08:21 +0000
Re: Linux is power squared William Poaster <wp@induh-vidual.net> - 2011-04-23 09:41 +0100
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 07:25 -0400
Re: Linux is power squared TomB <tommy.bongaerts@gmail.com> - 2011-04-23 14:31 +0200
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 10:29 -0400
Re: Linux is power squared DFS <nospam@dfs.com> - 2011-04-23 17:28 -0400
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-23 22:15 -0400
Re: Linux is power squared DFS <nospam@dfs.com> - 2011-04-23 22:50 -0400
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-23 23:16 -0400
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-24 13:44 -0500
Re: Linux is power squared TomB <tommy.bongaerts@gmail.com> - 2011-04-24 22:30 +0200
Re: Linux is power squared William Poaster <wp@induh-vidual.net> - 2011-04-24 23:11 +0100
Re: Linux is power squared Big Steel <Steel9901x22@9901x22Steel.com> - 2011-04-24 18:50 -0400
Re: Linux is power squared TomB <tommy.bongaerts@gmail.com> - 2011-04-25 11:57 +0000
Re: Linux is power squared DFS <nospam@dfs.com> - 2011-04-24 20:16 -0400
Re: Linux is power squared TomB <tommy.bongaerts@gmail.com> - 2011-04-25 11:56 +0000
Re: Linux is power squared DFS <nospam@dfs.com> - 2011-04-25 10:19 -0400
Re: Linux is power squared Snit <usenet@gallopinginsanity.com> - 2011-04-24 14:15 -0700
Re: Linux is power squared DFS <nospam@dfs.com> - 2011-04-24 20:16 -0400
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-24 18:40 -0600
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-26 10:52 -0500
Re: Linux is power squared Homer <usenet@slated.org> - 2011-04-27 02:51 +0100
Re: Linux is power squared stukie <stukieh@gmail.com> - 2011-04-28 22:18 +0000
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-28 19:51 -0500
Re: Linux is power squared stukie <stukieh@gmail.com> - 2011-05-03 20:48 +0000
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-05-04 11:15 -0500
Re: Linux is power squared stukie <stukieh@gmail.com> - 2011-05-04 20:22 +0000
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-05-04 17:30 -0500
Re: Linux is power squared stukie <stukieh@gmail.com> - 2011-05-04 23:19 +0000
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-05-05 13:05 -0500
Re: Linux is power squared stukie <stukieh@gmail.com> - 2011-05-05 21:50 +0000
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-05-06 10:40 -0500
Re: Linux is power squared stukie <stukieh@gmail.com> - 2011-05-06 23:32 +0000
Re: Linux is power squared stukie <stukieh@gmail.com> - 2011-05-06 23:31 +0000
Re: Linux is power squared RonB <ronb02NOSPAM@gmail.com> - 2011-05-07 00:23 +0000
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-05-09 13:18 -0500
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-25 14:14 +0200
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-26 10:52 -0500
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-24 10:42 +0200
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-24 04:58 -0400
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-24 11:14 +0200
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-24 13:44 -0500
Re: Linux is power squared chrisv <chrisv@nospam.invalid> - 2011-04-25 07:51 -0500
Re: Linux is power squared "caged steel" <CS@nosuchmail.com> - 2011-04-25 09:27 -0400
Re: Linux is power squared Snit <usenet@gallopinginsanity.com> - 2011-04-23 09:15 -0700
Re: Linux is power squared 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-23 14:19 +0100
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 10:37 -0400
Re: Linux is power squared DFS <nospam@dfs.com> - 2011-04-23 17:27 -0400
Re: Linux is power squared 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-23 01:01 +0100
Re: 7 is power less DFS <nospam@dfs.com> - 2011-04-22 20:30 -0400
Re: 7 is power less flatfish+++ <flatfish@marianatrench.com> - 2011-04-22 21:28 -0400
Re: 7 is power less 7 <email_at_www_at_enemygadgets_dot_com@enemygadgets.com> - 2011-04-23 14:54 +0100
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-22 18:55 -0600
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-22 19:36 -0500
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-23 00:27 -0600
Re: Linux is power squared Chris Ahlstrom <ahlstromc@xzoozy.com> - 2011-04-23 10:20 -0400
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-23 10:13 -0500
Re: Linux is power squared "Ezekiel" <zeke@nosuchmail.com> - 2011-04-23 12:54 -0400
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-23 12:57 -0400
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-23 11:05 -0600
Re: Linux is power squared Hadron<hadronquark@gmail.com> - 2011-04-23 20:05 +0200
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-23 14:12 -0400
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-24 13:34 -0500
Re: Linux is power squared Tom Shelton <tom_shelton@comcast.invalid> - 2011-04-23 10:55 -0600
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-23 13:03 -0400
Re: Linux is power squared DFS <nospam@dfs.com> - 2011-04-23 17:49 -0400
Re: Linux is power squared JEDIDIAH <jedi@nomad.mishnet> - 2011-04-24 13:39 -0500
Re: Linux is power squared flatfish+++ <flatfish@marianatrench.com> - 2011-04-22 21:25 -0400
csiph-web