speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WIP audio in server


From: Luke Yelavich
Subject: WIP audio in server
Date: Fri, 31 Jul 2015 10:40:04 +1000

On Fri, Jul 31, 2015 at 07:27:27AM AEST, Jeremy Whiting wrote:
> Hey all,
> 
> I'm implementing moving audio from the modules to the server (and
> modules will send audio data to the server on a unix socket). I've got
> the socket creation, and seem to have the ability to connect to the
> socket in the modules but it's hanging here when I try to run spd-say
> hello. Also I'm getting this in my speech-dispatcher.log as if it's
> trying to open a second audio connection from sd_espeak for some
> reason when it hangs (and no log output after this):
> 
> [Thu Jul 30 15:03:15 2015 : 829380] speechd:     Adding audio
> connection on socket 4
> [Thu Jul 30 15:03:29 2015 : 105629] speechd:    Adding module on fd 28
> [Thu Jul 30 15:03:29 2015 : 105654] speechd:     Adding audio
> connection on socket 4
> 
> I'm probably doing something obviously wrong, but can't seem to see
> what at the moment though I've been beating my head against it for a
> while and debugging. Can you see anything obvious in my changes?

Well, I wonder if what you have in speechd_audio_connection_new is correct. You 
make reference to module sockets and the server socket where clients connect, 
and not the audio socket.

I didn't do a good job here in making sure variables were clearly renamed, so I 
think this needs improvement, but maybe the attached diff shows what you meant 
to do in this method, a case of cut and paste, and then forget perhaps? Note, 
untested, made sure the server could build at least. In doing so, I also 
noticed another change needed to make things build properly, also included in 
the diff.

Luke



reply via email to

[Prev in Thread] Current Thread [Next in Thread]