Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
NGIAgoraExtensionAINoiseSuppressor.h
1
2 //Agora SDK
3
4 //Copyright (c) 2021 Agora.io. All rights reserved.
5
6#pragma once // NOLINT(build/header_guard)
7
8#include "AgoraRefPtr.h"
9
10namespace agora {
11namespace rtc {
12
13 class AINoiseSuppressorExtension : public RefCountInterface {
14public:
15 virtual ~AINoiseSuppressorExtension() {};
16 virtual int Init(const char* weight_raw_buffer, size_t raw_buffer_bytes) = 0;
17 virtual int ProcessDenoiseFrame(float* input, float* output, int stage) = 0;
18 virtual int ClearHiddenState(bool clear_hidden, int clear_lpsbuffer_nframe) = 0;
19 virtual const char* GetLibVersion(int mode = 0) = 0;
20};
21
22 class AINoiseSuppressorControllerExtension : public RefCountInterface {
23 public:
24 virtual ~AINoiseSuppressorControllerExtension() {};
25 virtual bool LoadWeightResource(std::shared_ptr<void> &weight, int& size) = 0;
26};
27
28} // namespace rtc
29} // namespace agora
agora::RefCountInterface
Definition AgoraRefPtr.h:31
agora::rtc::AINoiseSuppressorControllerExtension
Definition NGIAgoraExtensionAINoiseSuppressor.h:22
agora::rtc::AINoiseSuppressorControllerExtension::~AINoiseSuppressorControllerExtension
virtual ~AINoiseSuppressorControllerExtension()
Definition NGIAgoraExtensionAINoiseSuppressor.h:24
agora::rtc::AINoiseSuppressorControllerExtension::LoadWeightResource
virtual bool LoadWeightResource(std::shared_ptr< void > &weight, int &size)=0
agora::rtc::AINoiseSuppressorExtension
Definition NGIAgoraExtensionAINoiseSuppressor.h:13
agora::rtc::AINoiseSuppressorExtension::~AINoiseSuppressorExtension
virtual ~AINoiseSuppressorExtension()
Definition NGIAgoraExtensionAINoiseSuppressor.h:15
agora::rtc::AINoiseSuppressorExtension::Init
virtual int Init(const char *weight_raw_buffer, size_t raw_buffer_bytes)=0
agora::rtc::AINoiseSuppressorExtension::GetLibVersion
virtual const char * GetLibVersion(int mode=0)=0
agora::rtc::AINoiseSuppressorExtension::ProcessDenoiseFrame
virtual int ProcessDenoiseFrame(float *input, float *output, int stage)=0
agora::rtc::AINoiseSuppressorExtension::ClearHiddenState
virtual int ClearHiddenState(bool clear_hidden, int clear_lpsbuffer_nframe)=0
agora::rtc
Definition AgoraExtensions.h:5
agora
Definition AgoraAtomicOps.h:21