speechd-discuss
[Top][All Lists]
Advanced

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

Question with $PLAY_COMMAND


From: Chris Brannon
Subject: Question with $PLAY_COMMAND
Date: Thu, 04 Mar 2010 08:31:48 -0600

Steve Holmes wrote:
> My question here is "Where does the value of $PLAY_COMMAND get set and
> how for each modules?"

It's set in src/modules/generic.c.
Basically, the code tries to select the appropriate play command
for your chosen audio output method.
Here it is, at line 389:

                if (!strcmp(audio_settings.audio_output_method, "oss")){
                  play_command = strdup("play");
                }else if (!strcmp(audio_settings.audio_output_method, "alsa")){
                  play_command = strdup("aplay");
                }else if (!strcmp(audio_settings.audio_output_method, "pulse")){
                  play_command = strdup("paplay");
                }else{
                  assert("Unknown audio output method requested");
                }

Later, at line 403,  $PLAY_COMMAND is substituted with the value
selected earlier:
                e_string = strdup(GenericExecuteSynth);

                e_string = string_replace(e_string, "$PLAY_COMMAND", 
play_command);

At first glance, there's no play command assigned to the libao backend,
but I don't believe this is the problem.

Do your logs shed any light on the situation?
You might have a swift-generic.log that will tell you something.

-- Chris



reply via email to

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