Unreal Engine SDK V5.4.128
载入中...
搜索中...
未找到
INertcVoiceEngine.h
浏览该文件的文档.
1
8#pragma once
9
10#include "NertcBase.h"
11#include "NertcBaseTypes.h"
12#include "NertcEngineDefines.h"
13#include "NertcErrorCode.h"
14#include "NertcWarnCode.h"
17
22namespace nertc
23{
24
34 {
35 public:
36 virtual ~IRtcVoiceEngine() {}
45 virtual void setEvent(IRtcVoiceEngineEventHandler* handler) = 0;
59 virtual int applyAuth(uid_t uid, const char* token, int size) = 0;
71 virtual int setMaxMessageLength(int msTime) = 0;
83 virtual int startRecording(const char* file_path) = 0;
94 virtual int stopRecording() = 0;
105 virtual int pauseRecording() = 0;
116 virtual int resumeRecording() = 0;
127 virtual int cancelRecording() = 0;
139 virtual int uploadRecordedFile(const char* file_path) = 0;
152 virtual int downloadRecordedFile(const char* file_id, const char* file_path) = 0;
164 virtual int playRecordedFile(const char* file_path) = 0;
175 virtual int stopPlayFile() = 0;
189 virtual int speechToText(const char* file_id) = 0;
201 virtual int getFileSize(const char* file_path) = 0;
213 virtual int getVoiceFileDuration(const char* file_path) = 0;
225 virtual int setMicVolume(int volume) = 0;
236 virtual int getMicVolume() = 0;
248 virtual int setSpeakerVolume(int volume) = 0;
259 virtual int getSpeakerVolume() = 0;
260 };
261} //namespace nertc
The definition of error codes of NERtc SDK.
定义 INertcVoiceEngineEventHandler.h:34
定义 INertcVoiceEngine.h:34
virtual int setMicVolume(int volume)=0
virtual int uploadRecordedFile(const char *file_path)=0
virtual int setMaxMessageLength(int msTime)=0
virtual int downloadRecordedFile(const char *file_id, const char *file_path)=0
virtual int getVoiceFileDuration(const char *file_path)=0
virtual int setSpeakerVolume(int volume)=0
virtual int startRecording(const char *file_path)=0
virtual int getMicVolume()=0
virtual int playRecordedFile(const char *file_path)=0
virtual int pauseRecording()=0
virtual void setEvent(IRtcVoiceEngineEventHandler *handler)=0
virtual int stopPlayFile()=0
virtual int stopRecording()=0
virtual int speechToText(const char *file_id)=0
virtual int applyAuth(uid_t uid, const char *token, int size)=0
virtual int resumeRecording()=0
virtual int getSpeakerVolume()=0
virtual int getFileSize(const char *file_path)=0
virtual ~IRtcVoiceEngine()
定义 INertcVoiceEngine.h:36
virtual int cancelRecording()=0
namespace nertc
定义 INertcAudioDeviceManager.h:11
uint64_t uid_t
定义 NertcEngineDefines.h:138