alumae / kaldi-gstreamer-server

Real-time full-duplex speech recognition server, based on the Kaldi toolkit and the GStreamer framwork.
BSD 2-Clause "Simplified" License
1.07k stars 341 forks source link

Error switching between Audio types #243

Open pieteruys opened 3 years ago

pieteruys commented 3 years ago

Hi,

while running a worker and first start decoding a "raw" audio file type, everything works fine. As soon as I change the codec to something like "alaw", it gives me an error on stdout: "Error message: Internal data stream error." In the worker.py logs, the error is as follows: 2020-08-19 10:18:06 - ERROR: decoder2: (gerror=GLib.Error('Internal data stream error.', 'gst-stream-error-quark', 1), debug='gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstAppSrc:appsrc:\nstreaming stopped, reason not-negotiated (-4)')

When I run it thereafter, everything works fine again. This always happens with the first run when changing the type: "audio/x-raw, audio/x-alaw" etc.

Any suggestions to fix this issue?

Thanks