speechd-discuss
[Top][All Lists]
Advanced

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

[PATCH] Add a socket audio plugin


From: Trevor Saunders
Subject: [PATCH] Add a socket audio plugin
Date: Tue, 7 Dec 2010 02:22:28 -0500

On Mon, Dec 06, 2010 at 10:30:13PM +0100, Tomas Cerha wrote:
> Dne 6.12.2010 20:07, Andrei Kholodnyi napsal(a):
> >A client API for it, e.g. an extension of the libspeechd API which
> >allows to retrieve AudioTrack
> 
> Is that even possible with the plugin?  The audio plugin is
> configured for the server and the client has no chance to manipulate
> it.  As I understood this patch, the usage for it might be
> re-routing the audio output to a different audio subsystem or
> application.  But this applies to all audio produced by Speech
> Dispatcher from its startup to its shutdown.

yes, that would be one application, but it would also be possible to use
this plugin for audio retrival.  All we have to do is when a client
requests that the audio be returned to it in file /some/place/for/audio
then we reconfigure the modules audio plugin with the AUDIO command to
the plugin so that it sends audio to that file, and then when that chunk
of text is done we reconfigure audio for that module back to the
default.

> To retrieve audio for a given piece of text, we would need to extend
> the client protocol and in the server, the output from a module
> would be sent back to the client instead of being sent to the audio
> subsystem (so any audio plugins would be bypassed completely).

 yes, we need to extend the client api, and I'm not sure how best to do
 that yet.

 This plugin does make our part of audio retrieval pretty easy though,
 because all we do is reconfigure the module's audio settings before and
 after the message where audio is being retrieved.

> Or am I missing something?

hopefully this makes it clearer how this plugin allows for pretty easy
and clean audio retrieval.

Trev

> 
> Regards, Tomas
> 
> _______________________________________________
> Speechd mailing list
> Speechd at lists.freebsoft.org
> http://lists.freebsoft.org/mailman/listinfo/speechd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: 
<http://lists.freebsoft.org/pipermail/speechd/attachments/20101207/6314213b/attachment.pgp>


reply via email to

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