Agora Java API Reference for Android

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
10 namespace agora {
11 namespace rtc {
12
13 class AINoiseSuppressorExtension : public RefCountInterface {
14 public:
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::rtc::AINoiseSuppressorExtension
Definition: NGIAgoraExtensionAINoiseSuppressor.h:13
agora::RefCountInterface
Definition: AgoraRefPtr.h:31
agora::rtc::AINoiseSuppressorControllerExtension
Definition: NGIAgoraExtensionAINoiseSuppressor.h:22