NIM Tools API  5.5.0
nim_audio.h
Go to the documentation of this file.
1 
8 #ifndef _NIM_AUDIO_MODULE_SDK_H_
9 #define _NIM_AUDIO_MODULE_SDK_H_
10 
11 #include "include/nim_audio_def.h"
12 #include "nim_sdk_dll.h"
13 
14 #ifdef __cplusplus
15 extern"C"
16 {
17 #endif
18 
24 NIM_SDK_DLL_API bool nim_audio_init_module(const wchar_t* user_data_parent_path);
25 
30 NIM_SDK_DLL_API bool nim_audio_uninit_module();
31 
40 NIM_SDK_DLL_API bool nim_audio_play_audio(const wchar_t* file_path, const char* call_id, const char* res_id, int audio_format);
41 
51 NIM_SDK_DLL_API bool nim_audio_play_audio_ex(const wchar_t* file_path, const char* call_id, const char* res_id, int audio_format,int seek);
52 
57 NIM_SDK_DLL_API bool nim_audio_stop_play_audio();
58 
64 NIM_SDK_DLL_API bool nim_audio_reg_start_play_cb(nim_rescode_id_cb cb);
65 
71 NIM_SDK_DLL_API bool nim_audio_reg_stop_play_cb(nim_rescode_id_cb cb);
72 
73 
79 NIM_SDK_DLL_API bool nim_audio_reg_start_capture_cb(nim_rescode_cb cb);
80 
86 NIM_SDK_DLL_API bool nim_audio_reg_stop_capture_cb(nim_stop_capture_cb cb);
87 
93 NIM_SDK_DLL_API bool nim_audio_reg_cancel_audio_cb(nim_rescode_cb cb);
94 
104 NIM_SDK_DLL_API bool nim_audio_start_capture(const char* call_id, const char* res_id, int audio_format = 0, int volume = 180, const wchar_t* capture_device = nullptr);
105 
110 NIM_SDK_DLL_API bool nim_audio_stop_capture();
111 
116 NIM_SDK_DLL_API bool nim_audio_cancel_audio(const wchar_t* file_path);
117 
124 
129 NIM_SDK_DLL_API bool nim_audio_enum_capture_device();
130 
131 
132 #ifdef __cplusplus
133 };
134 #endif //__cplusplus
135 #endif //_NIM_AUDIO_MODULE_SDK_H_
NIM_SDK_DLL_API bool nim_audio_stop_play_audio()
NIM_SDK_DLL_API bool nim_audio_init_module(const wchar_t *user_data_parent_path)
NIM_SDK_DLL_API bool nim_audio_reg_start_play_cb(nim_rescode_id_cb cb)
NIM_SDK_DLL_API bool nim_audio_enum_capture_device()
NIM_SDK_DLL_API bool nim_audio_reg_stop_capture_cb(nim_stop_capture_cb cb)
void(* nim_stop_capture_cb)(int rescode, const char *call_id, const char *res_id, const char *file_path, const char *file_ext, long file_size, int audio_duration)
Definition: nim_audio_def.h:62
NIM_SDK_DLL_API bool nim_audio_uninit_module()
NIM_SDK_DLL_API bool nim_audio_cancel_audio(const wchar_t *file_path)
NIM_SDK_DLL_API bool nim_audio_reg_enum_capture_device_cb(nim_enum_capture_device_cb cb)
NIM_SDK_DLL_API bool nim_audio_start_capture(const char *call_id, const char *res_id, int audio_format=0, int volume=180, const wchar_t *capture_device=nullptr)
void(* nim_rescode_id_cb)(int rescode, const char *file_path, const char *call_id, const char *res_id)
Definition: nim_audio_def.h:49
NIM_SDK_DLL_API bool nim_audio_reg_stop_play_cb(nim_rescode_id_cb cb)
NIM_SDK_DLL_API bool nim_audio_reg_start_capture_cb(nim_rescode_cb cb)
NIM_SDK_DLL_API bool nim_audio_play_audio(const wchar_t *file_path, const char *call_id, const char *res_id, int audio_format)
NIM_SDK_DLL_API bool nim_audio_play_audio_ex(const wchar_t *file_path, const char *call_id, const char *res_id, int audio_format, int seek)
void(* nim_rescode_cb)(int)
Definition: nim_audio_def.h:40
void(* nim_enum_capture_device_cb)(int rescode, const wchar_t *device_list)
Definition: nim_audio_def.h:69
NIM_SDK_DLL_API bool nim_audio_reg_cancel_audio_cb(nim_rescode_cb cb)
NIM_SDK_DLL_API bool nim_audio_stop_capture()