Convertion of GstBuffer to PCM audio data

Sagar pilkhwal.sagar at gmail.com
Fri Mar 25 13:53:23 UTC 2016


I am trying to create voice buffer when user is talking and I intend to send
this voice buffer raw audio to a web service, so when ever there is a voice
activity I append the buffers and when there is silence I intend to send to
a webservice.

I looked into gst_memory_map(), based on it I was trying to append GstBuffer
obejcts but its failing somehow after appending 2 times. there might be an
issue in append or setting voice_buf


This is my code snippet:
...
GstBuffer *voice_buf;
...
if(voicedetected)
{
if (incoming_buf) {
      voice_buf = gst_buffer_append (voice_buf, incoming_buf);
    } else {
      voice_buf = incoming_buf;
}

}
else{
...
voice_buf=NULL;
...
}
...


but I am getting assertion failed message in kurento server error logs file.
GST_IS_BUFFER failed.


is there anything wrong which you think I am doing ? 



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Convertion-of-GstBuffer-to-PCM-audio-data-tp4676543p4676557.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list