[maemo-developers] Using available DSP tasks

From: Jean-Christian de Rivaz jc at eclis.ch
Date: Wed Jan 2 02:44:05 EET 2008
Hello Simon and Daniel,

Your help is truly fantastic! I have found the "gst-inspect-0.10 -a" 
command and I have now almost all the informations I need. I have tested 
this command:

gst-launch-0.10 dspg729src dtx=3 ! dspg729sink filesrc 
location=MyDocs/.sound/Here_is_the_story.mp3

Most of the time this command raise a error in gst_dspg729src_start: 
"could not open resource for reading and writing". But sometimes it work 
perfectly well as expected, with as bonus the automatic gain control of 
the voice with silence detection, and all that without loading the main 
CPU. Very nice!

But the following command never work as I expected:

gst-launch-0.10 dspg729src dtx=3 ! filesink location=in filesrc 
location=out ! dspg729sink filesrc 
location=MyDocs/.sound/Here_is_the_story.mp3

The "in" file start recorded only after the "out" file has been played. 
And sometimes the command failed with an error in gst_dspmp3sink_open : 
"Could not open resource for reading and writing", witch is strange for 
the MP3 stream.

Other problem, the G729 stream is only usable for a few seconds if it is 
recorded into a file. I actually don't know if the problem is while 
recording or playing the stream. I suspect that I maybe need to use 
something that look more like stream of packets instead of a file to 
handle the G729 stream.

Best Regards,
--
Jean-Christian

>> P.S. Just to test that the karaoke idea will work I tested MP3 and
>> G7.29 data (I couldn't find any G7.11 data to test) and they play
>> together without troubles:
>>
>> E.g.
>> gst-launch-0.10 filesrc location=20-16000HzExp5sec.mp3 ! dspmp3sink
>> filesrc location=./audio-temp/transfer.g729  ! dspg729sink
>>
>>
> 

More information about the maemo-developers mailing list