|
NVIDIA DeepStream SDK API Reference
|
6.4 Release
|
Go to the documentation of this file.
24 #ifndef __DEEPSTREAM_TTS_APP_H_
25 #define __DEEPSTREAM_TTS_APP_H_
28 #include <gst/audio/audio.h>
34 #define CHECK_PTR(ptr) \
40 #define MAX_FILENAME_LENGTH (256)
41 #define MUX_AUDIO_VIDEO_OUT
44 #define LINK_REQUEST_PAD_STATIC_PAD(src, srcpadname, sink, sinkpadname) \
46 GstPad *srcpad = gst_element_request_pad_simple (src, srcpadname); \
48 g_printerr ("%s source pad %s request failed.\n", #src, #srcpadname); \
51 GstPad *sinkpad = gst_element_get_static_pad (sink, sinkpadname); \
53 g_printerr ("%s sink pad %s request failed.\n", #sink, #sinkpadname); \
57 if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK) { \
58 g_printerr ("Failed to link %s to %s\n", #src, #sink); \
61 gst_object_unref (srcpad); \
62 gst_object_unref (sinkpad); \
66 #define LINK_STATIC_PAD_REQUEST_PAD(src, srcpadname, sink, sinkpadname) \
68 GstPad *srcpad = gst_element_get_static_pad (src, srcpadname); \
70 g_printerr ("%s source pad %s request failed.\n", #src, #srcpadname); \
73 GstPad *sinkpad = gst_element_request_pad_simple (sink, sinkpadname); \
75 g_printerr ("%s sink pad %s request failed.\n", #sink, #sinkpadname); \
79 if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK) { \
80 g_printerr ("Failed to link %s to %s\n", #src, #sink); \
83 gst_object_unref (srcpad); \
84 gst_object_unref (sinkpad); \
87 #define ATTACH_STATIC_PAD_PROBE(element, padname, probe_type, probe, dataptr) \
89 GstPad *pad = gst_element_get_static_pad (element, padname); \
91 g_printerr ("Get pad failed for %s %s. Exiting.\n",#element, padname); \
94 gst_pad_add_probe (pad, probe_type, probe, dataptr, NULL); \
95 gst_object_unref (pad); \
130 GstElement **p_proxy_audio_sink);
GstElement * input_downmixer
GstElement * asr_pipeline
REST server application context.
GstElement ** proxy_audio_sinks
gboolean parse_config_file(AppCtx *appctx, gchar *config_file)
const char * playback_output_file_name
int create_pipeline(AppCtx *appctx, int stream_num, StreamCtx *sctx, GstElement **p_proxy_audio_sink)
G_BEGIN_DECLS guint get_num_sources_yaml(gchar *cfg_file_path)
gboolean parse_config_file_yaml(AppCtx *appctx, gchar *config_file)
guint get_num_sources(gchar *cfg_file_path)
int destroy_pipeline(StreamCtx *sctx)
GstElement ** proxy_audio_sources
int start_pipeline(int stream_num, StreamCtx *sctx)
int create_renderer_pipeline(AppCtx *appctx)
NvDsAudioConfig audio_config
struct __StreamCtx StreamCtx
GstElement * renderer_pipeline