Error while trying to send opus encoded audio to a server using gstreamer
I am using a Kaldi-Gstreamer-Server library for live speech recognition application. The library uses onlinegmmdecodefaster gstreamer element (which is included with the kaldi library) along with other elements (decodbin, audioconvert...) to accept audio and transcribe it to text . The library requires when sending request to the server, the content-type request parameter be specified using GStreamer 1.0 caps format and encoded to the request Url.
When sending raw audio to the server everything works fine and I get transcription text from the server. However, for low latency, I am trying to encode the audio using opus encoder and send to the server. I set the content-type request parameter to the caps format of the opusdec element pad as this: