NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_audio 命名空间参考

NIM提供的语音播放工具 更多...

class  Audio
 NIM 提供的语音录制和播放接口 更多...
 

类型定义

typedef bool(* nim_audio_init_module) (const wchar_t *user_data_parent_path)
 
typedef bool(* nim_audio_uninit_module) ()
 
typedef bool(* nim_audio_play_audio) (const wchar_t *file_path, const char *call_id, const char *res_id, int audio_format)
 
typedef bool(* nim_audio_play_audio_ex) (const wchar_t *file_path, const char *call_id, const char *res_id, int audio_format, int seek)
 
typedef bool(* nim_audio_stop_play_audio) ()
 
typedef bool(* nim_audio_start_capture) (const char *call_id, const char *res_id, int audio_format, int volume, const wchar_t *capture_device)
 
typedef bool(* nim_audio_stop_capture) ()
 
typedef bool(* nim_audio_cancel_audio) (const wchar_t *file_path)
 
typedef bool(* nim_audio_enum_capture_device) ()
 
typedef bool(* nim_audio_reg_start_play_cb) (nim_rescode_id_cb cb)
 
typedef bool(* nim_audio_reg_stop_play_cb) (nim_rescode_id_cb cb)
 
typedef bool(* nim_audio_reg_start_capture_cb) (nim_rescode_cb cb)
 
typedef bool(* nim_audio_reg_stop_capture_cb) (nim_stop_capture_cb cb)
 
typedef bool(* nim_audio_reg_cancel_audio_cb) (nim_rescode_cb cb)
 
typedef bool(* nim_audio_reg_enum_capture_device_cb) (nim_enum_capture_device_cb cb)
 

变量

static const std::wstring kSdkAudioDll = L"nim_audio.dll"
 

详细描述

NIM提供的语音播放工具

类型定义说明

◆ nim_audio_cancel_audio

typedef bool(* nim_audio::nim_audio_cancel_audio) (const wchar_t *file_path)

◆ nim_audio_enum_capture_device

typedef bool(* nim_audio::nim_audio_enum_capture_device) ()

◆ nim_audio_init_module

typedef bool(* nim_audio::nim_audio_init_module) (const wchar_t *user_data_parent_path)

◆ nim_audio_play_audio

typedef bool(* nim_audio::nim_audio_play_audio) (const wchar_t *file_path, const char *call_id, const char *res_id, int audio_format)

◆ nim_audio_play_audio_ex

typedef bool(* nim_audio::nim_audio_play_audio_ex) (const wchar_t *file_path, const char *call_id, const char *res_id, int audio_format, int seek)

◆ nim_audio_reg_cancel_audio_cb

typedef bool(* nim_audio::nim_audio_reg_cancel_audio_cb) (nim_rescode_cb cb)

◆ nim_audio_reg_enum_capture_device_cb

typedef bool(* nim_audio::nim_audio_reg_enum_capture_device_cb) (nim_enum_capture_device_cb cb)

◆ nim_audio_reg_start_capture_cb

typedef bool(* nim_audio::nim_audio_reg_start_capture_cb) (nim_rescode_cb cb)

◆ nim_audio_reg_start_play_cb

typedef bool(* nim_audio::nim_audio_reg_start_play_cb) (nim_rescode_id_cb cb)

◆ nim_audio_reg_stop_capture_cb

typedef bool(* nim_audio::nim_audio_reg_stop_capture_cb) (nim_stop_capture_cb cb)

◆ nim_audio_reg_stop_play_cb

typedef bool(* nim_audio::nim_audio_reg_stop_play_cb) (nim_rescode_id_cb cb)

◆ nim_audio_start_capture

typedef bool(* nim_audio::nim_audio_start_capture) (const char *call_id, const char *res_id, int audio_format, int volume, const wchar_t *capture_device)

◆ nim_audio_stop_capture

typedef bool(* nim_audio::nim_audio_stop_capture) ()

◆ nim_audio_stop_play_audio

typedef bool(* nim_audio::nim_audio_stop_play_audio) ()

◆ nim_audio_uninit_module

typedef bool(* nim_audio::nim_audio_uninit_module) ()

变量说明

◆ kSdkAudioDll

const std::wstring nim_audio::kSdkAudioDll = L"nim_audio.dll"
static