* Speakup/Festival Config Question
@ Doug
` Owen Patrick Smith
` Michael Curran
0 siblings, 2 replies; 8+ messages in thread
From: Doug @ UTC (permalink / raw)
To: speakup
Owen,
I am having a problem in the final steps of getting
your speakup mods working with festival. The patches
were applied with no errors and the kernel compiled
just fine. I created the usrdev device:
ls -l /dev/usrdev
crwxrwxrwx 1 root root 252, 0 /dev/usrdev
The major device number is 252, which is what is
hardcoded in speakup_usrdev.h
But then I boot I get these messages:
Speakup usrdev: Registered as char device major #0
Speakup usrdev: Minor number is 0
Speakup v-1.00 CVS: initialized
and later I get the message
speakup: initialized device: /dev/synth, node (MAJOR 10, MINOR 25)
Note that initially the usrdev is listed as major 0 minor 0.
Do you have any idea what might be wrong here?
These are my kernel config options:
CONFIG_SPEAKUP=y
CONFIG_SPEAKUP_USRDEV=y
CONFIG_SPEAKUP_DEFAULT="usrdev"
CONFIG_SPEAKUP_KEYMAP=y
Another issue ... can you please tell me the right commands
to start festival as server and start the middleware program?
If I run festival I get an interactive session. How do I
make it run as server?
If I start festival as usual I get the interactive session
and festival works. I can do (SayText "festival works")
and it speaks fine. If I open another tty and then start
the middleware program I get this message:
Festival server: localhost, on port: 1214 with mode: fundamental
festival_client: connect to server failed
failed to open Festival: connection refused
Speech Error!
Unix sockets and TCP/IP is installed, and I can ping
localhost, in case that matters ...
Any ideas? I am so close ... but so far ...
Why would the usrdev be major #0?
-- Doug
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Speakup/Festival Config Question
Speakup/Festival Config Question Doug
@ ` Owen Patrick Smith
` Doug
` Michael Curran
1 sibling, 1 reply; 8+ messages in thread
From: Owen Patrick Smith @ UTC (permalink / raw)
To: speakup
The problem is a very simple one. I messed up the ? : statement in the .c
file and reversed the correct order of the argumets. The statement was
put in because the register_chrdev() function returns 0 on success, a
negative number on failure, and the major number recieved if dynamic
allocation was requested. Since we wanted to be able to support both
static and dynamic major number allocation we check to see if we are
statically or dynamically allocating the major number and then printk the
number of the return value of the register_chrdev() function as
appropriate. That was the theory anyway, as it happens I messed up the
order of the statement so it's printk'ing the return value when it
shouldn't be so you see zero in all cases, dynamic or static. This will
be fixed in the next major release, don't worry the only problem there is
that the printk is incorrect, not exactly a major bug.
As for running festival as a server there should be a shell script to do
so in /path/to/festival/src/scripts/festival_server.sh so if you had
Festival installed in /usr/local/src/ the path would be:
/usr/local/src/festival/festival/src/scripts/festival_server.sh
which you just run in the background (via & or whatever method you choose)
and that sets up a sane default configuration that allows localhost to
connect but not anyone else. festival --server should also work but you
would have to pass it a number of other configuration options so its
probably best to just use the script. Just running festival will not work
as it does not start listening on the right port unless specifically told
to.
HtH
Owen
On Thu, 10 Apr 2003, Doug wrote:
> Owen,
>
> I am having a problem in the final steps of getting
> your speakup mods working with festival. The patches
> were applied with no errors and the kernel compiled
> just fine. I created the usrdev device:
>
> ls -l /dev/usrdev
> crwxrwxrwx 1 root root 252, 0 /dev/usrdev
>
> The major device number is 252, which is what is
> hardcoded in speakup_usrdev.h
>
> But then I boot I get these messages:
>
> Speakup usrdev: Registered as char device major #0
> Speakup usrdev: Minor number is 0
> Speakup v-1.00 CVS: initialized
>
> and later I get the message
> speakup: initialized device: /dev/synth, node (MAJOR 10, MINOR 25)
>
>
> Note that initially the usrdev is listed as major 0 minor 0.
> Do you have any idea what might be wrong here?
>
> These are my kernel config options:
>
> CONFIG_SPEAKUP=y
> CONFIG_SPEAKUP_USRDEV=y
> CONFIG_SPEAKUP_DEFAULT="usrdev"
> CONFIG_SPEAKUP_KEYMAP=y
>
> Another issue ... can you please tell me the right commands
> to start festival as server and start the middleware program?
> If I run festival I get an interactive session. How do I
> make it run as server?
>
> If I start festival as usual I get the interactive session
> and festival works. I can do (SayText "festival works")
> and it speaks fine. If I open another tty and then start
> the middleware program I get this message:
>
> Festival server: localhost, on port: 1214 with mode: fundamental
> festival_client: connect to server failed
> failed to open Festival: connection refused
> Speech Error!
>
> Unix sockets and TCP/IP is installed, and I can ping
> localhost, in case that matters ...
>
> Any ideas? I am so close ... but so far ...
> Why would the usrdev be major #0?
>
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Speakup/Festival Config Question
` Owen Patrick Smith
@ ` Doug
` Owen Patrick Smith
` Michael Curran
0 siblings, 2 replies; 8+ messages in thread
From: Doug @ UTC (permalink / raw)
To: speakup
Owen,
> I messed up the ? : statement in the .c file <snip>
> don't worry the only problem there is that the printk
> is incorrect, not exactly a major bug.
So it should still work? I thought maybe I screwed something
up, so I deleted everything, grabbed the CVS source again,
and I'm compiling another kernel right now.
> As for running festival as a server there should be a
> shell script to do so ...
Ah yes, I just found a note on festival_server a few
minutes ago, found it here:
http://www.cstr.ed.ac.uk/cgi-bin/lists.cgi?config=festival_faq&entry=arunning_festival
A bit strange that this is not mentioned in the INSTALL
file for festival ...
Thanks! Hopefully this will be speaking soon.
The compile is slow, but this is 4x6 inch CPU board!
The cost of this board is not much more that a synth.
It may not be any bigger than some of them too :)
-- Doug
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Speakup/Festival Config Question
` Doug
@ ` Owen Patrick Smith
` Doug
` Michael Curran
1 sibling, 1 reply; 8+ messages in thread
From: Owen Patrick Smith @ UTC (permalink / raw)
To: speakup
On Thu, 10 Apr 2003, Doug wrote:
> Owen,
>
> > I messed up the ? : statement in the .c file <snip>
> > don't worry the only problem there is that the printk
> > is incorrect, not exactly a major bug.
>
> So it should still work? I thought maybe I screwed something
> up, so I deleted everything, grabbed the CVS source again,
> and I'm compiling another kernel right now.
>
It should still work, the mistake was mine. Let us know how it turns out.
Owen
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Speakup/Festival Config Question
` Owen Patrick Smith
@ ` Doug
0 siblings, 0 replies; 8+ messages in thread
From: Doug @ UTC (permalink / raw)
To: speakup
Owen,
> Let us know how it turns out.
It works! This is oh so cool ...
I don't know what I am doing yet because I don't
know the keys, I will have to play around with this.
I have it running on a 200Mhz Geode MediaGX board.
The audio is part of the MediaGX companion chip.
The board has PC/104, so I have a dual PCMCIA
module plugged in (wireless and modems). It has
128MB RAM and a laptop hard drive.
I may be having buffer or speed problems, because
some of it sounded pretty choppy. Then again like
I said I don't know what I am doing yet in control
of speakup.
Do you think that 200Mhz is enough for festival?
I need to read the docs for festival in more detail,
maybe I need to tweak things.
I will try it out a bit more.
It's bigger than a PDA, but then it has full x86
and MMX compatibility and lots of storage plus
the dual pcmcia, compact flash socket, VGA and TV
(NTSC) output, 16-bit stereo audio, dual USB, and
dual serial, and parallel port.
This is an old board that I have used for a long
time, I'm going to work on another one that will
be 667Mhz 512k RAM, 20GB HDD, etc. They run off
5V and I use a DC/DC converter to run off li-ion
batteries or AC/DC adapter.
-- Doug
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Speakup/Festival Config Question
` Doug
` Owen Patrick Smith
@ ` Michael Curran
1 sibling, 0 replies; 8+ messages in thread
From: Michael Curran @ UTC (permalink / raw)
To: speakup
Is having festival in server mode basically just:
festival --server &
?
Because if it is, there still seems to be something very strange with
middleware. Perhaps I have the wrong version of festival?
But as I've said, it no errors, logs on to festival fine, but it just
exits if I press a key (if speakup tries to speak).
I'm running the testing debian festival package (what ever that version
is, sorry am at uni).
I'm sure this speakup mod will be really cool when we finally get it
going :)
Mick
On Thu, Apr 10, 2003 at 09:27:07PM +0200, Doug wrote:
> Owen,
>
> > I messed up the ? : statement in the .c file <snip>
> > don't worry the only problem there is that the printk
> > is incorrect, not exactly a major bug.
>
> So it should still work? I thought maybe I screwed something
> up, so I deleted everything, grabbed the CVS source again,
> and I'm compiling another kernel right now.
>
> > As for running festival as a server there should be a
> > shell script to do so ...
>
> Ah yes, I just found a note on festival_server a few
> minutes ago, found it here:
>
> http://www.cstr.ed.ac.uk/cgi-bin/lists.cgi?config=festival_faq&entry=arunning_festival
>
> A bit strange that this is not mentioned in the INSTALL
> file for festival ...
>
> Thanks! Hopefully this will be speaking soon.
> The compile is slow, but this is 4x6 inch CPU board!
> The cost of this board is not much more that a synth.
> It may not be any bigger than some of them too :)
>
> -- Doug
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Speakup/Festival Config Question
Speakup/Festival Config Question Doug
` Owen Patrick Smith
@ ` Michael Curran
` Michael Curran
1 sibling, 1 reply; 8+ messages in thread
From: Michael Curran @ UTC (permalink / raw)
To: speakup
I get exactly the same
On Thu, Apr 10, 2003 at 04:23:45PM +0200, Doug wrote:
> Owen,
>
> I am having a problem in the final steps of getting
> your speakup mods working with festival. The patches
> were applied with no errors and the kernel compiled
> just fine. I created the usrdev device:
>
> ls -l /dev/usrdev
> crwxrwxrwx 1 root root 252, 0 /dev/usrdev
>
> The major device number is 252, which is what is
> hardcoded in speakup_usrdev.h
>
> But then I boot I get these messages:
>
> Speakup usrdev: Registered as char device major #0
> Speakup usrdev: Minor number is 0
> Speakup v-1.00 CVS: initialized
>
> and later I get the message
> speakup: initialized device: /dev/synth, node (MAJOR 10, MINOR 25)
>
>
> Note that initially the usrdev is listed as major 0 minor 0.
> Do you have any idea what might be wrong here?
>
> These are my kernel config options:
>
> CONFIG_SPEAKUP=y
> CONFIG_SPEAKUP_USRDEV=y
> CONFIG_SPEAKUP_DEFAULT="usrdev"
> CONFIG_SPEAKUP_KEYMAP=y
>
> Another issue ... can you please tell me the right commands
> to start festival as server and start the middleware program?
> If I run festival I get an interactive session. How do I
> make it run as server?
>
> If I start festival as usual I get the interactive session
> and festival works. I can do (SayText "festival works")
> and it speaks fine. If I open another tty and then start
> the middleware program I get this message:
>
> Festival server: localhost, on port: 1214 with mode: fundamental
> festival_client: connect to server failed
> failed to open Festival: connection refused
> Speech Error!
>
> Unix sockets and TCP/IP is installed, and I can ping
> localhost, in case that matters ...
>
> Any ideas? I am so close ... but so far ...
> Why would the usrdev be major #0?
>
> -- Doug
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
Michael D. Curran
www: http://redgum.bendigo.latrobe.edu.au/~mdcurran/
msn: mick@jantrid.net
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Speakup/Festival Config Question
` Michael Curran
@ ` Michael Curran
0 siblings, 0 replies; 8+ messages in thread
From: Michael Curran @ UTC (permalink / raw)
To: speakup
Sorry, ignore my last email
On Fri, Apr 11, 2003 at 09:42:16AM +1000, Michael Curran wrote:
> I get exactly the same
>
> On Thu, Apr 10, 2003 at 04:23:45PM +0200, Doug wrote:
> > Owen,
> >
> > I am having a problem in the final steps of getting
> > your speakup mods working with festival. The patches
> > were applied with no errors and the kernel compiled
> > just fine. I created the usrdev device:
> >
> > ls -l /dev/usrdev
> > crwxrwxrwx 1 root root 252, 0 /dev/usrdev
> >
> > The major device number is 252, which is what is
> > hardcoded in speakup_usrdev.h
> >
> > But then I boot I get these messages:
> >
> > Speakup usrdev: Registered as char device major #0
> > Speakup usrdev: Minor number is 0
> > Speakup v-1.00 CVS: initialized
> >
> > and later I get the message
> > speakup: initialized device: /dev/synth, node (MAJOR 10, MINOR 25)
> >
> >
> > Note that initially the usrdev is listed as major 0 minor 0.
> > Do you have any idea what might be wrong here?
> >
> > These are my kernel config options:
> >
> > CONFIG_SPEAKUP=y
> > CONFIG_SPEAKUP_USRDEV=y
> > CONFIG_SPEAKUP_DEFAULT="usrdev"
> > CONFIG_SPEAKUP_KEYMAP=y
> >
> > Another issue ... can you please tell me the right commands
> > to start festival as server and start the middleware program?
> > If I run festival I get an interactive session. How do I
> > make it run as server?
> >
> > If I start festival as usual I get the interactive session
> > and festival works. I can do (SayText "festival works")
> > and it speaks fine. If I open another tty and then start
> > the middleware program I get this message:
> >
> > Festival server: localhost, on port: 1214 with mode: fundamental
> > festival_client: connect to server failed
> > failed to open Festival: connection refused
> > Speech Error!
> >
> > Unix sockets and TCP/IP is installed, and I can ping
> > localhost, in case that matters ...
> >
> > Any ideas? I am so close ... but so far ...
> > Why would the usrdev be major #0?
> >
> > -- Doug
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> --
> Michael D. Curran
> www: http://redgum.bendigo.latrobe.edu.au/~mdcurran/
> msn: mick@jantrid.net
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
Michael D. Curran
www: http://redgum.bendigo.latrobe.edu.au/~mdcurran/
msn: mick@jantrid.net
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
Speakup/Festival Config Question Doug
` Owen Patrick Smith
` Doug
` Owen Patrick Smith
` Doug
` Michael Curran
` Michael Curran
` Michael Curran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).