[PATCH] Add a socket audio plugin
trev.saunders at gmail.com
Tue Dec 7 08:22:28 CET 2010
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
> 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
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.
> Regards, Tomas
> Speechd mailing list
> Speechd at lists.freebsoft.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: Digital signature
More information about the Speechd