24 #ifndef __NVDS_SPEECH_CUSTOMLIB_BASE_HPP__
25 #define __NVDS_SPEECH_CUSTOMLIB_BASE_HPP__
27 #include <gst/audio/audio.h>
28 #include <gst/base/gstbasetransform.h>
50 GstPadDirection direction, GstCaps* inCaps,
51 GstCaps* otherCaps)
override;
100 GstStructure* outStr = gst_caps_get_structure(
m_outCaps, 0);
101 if (gst_structure_has_name(outStr,
"audio/x-raw")) {
125 GstPadDirection direction, GstCaps* inCaps, GstCaps* otherCaps)
129 "WARNING: DSCustomLibraryBase detect empty otherCaps, will try "
131 return gst_caps_ref(inCaps);
134 GstCaps* result =
nullptr;
135 if (!gst_caps_is_fixed(otherCaps)) {
136 result = gst_caps_fixate(otherCaps);
139 result = gst_caps_ref(otherCaps);