mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
tie slider to rnnoise probability threshold
This commit is contained in:
1 parent
60a8c86606
commit
d208c64be1
3 files changed
+7
No files matched your search
@@ -579,6 +579,10 @@ double AudioManager::GetRNNProbThreshold() const {
|
||||
return m_prob_threshold;
|
||||
}
|
||||
|
||||
void AudioManager::SetRNNProbThreshold(double value) {
|
||||
m_prob_threshold = value;
|
||||
}
|
||||
|
||||
AudioManager::type_signal_opus_packet AudioManager::signal_opus_packet() {
|
||||
return m_signal_opus_packet;
|
||||
}
|
||||
|
||||
@@ -81,6 +81,7 @@ public:
|
||||
|
||||
float GetCurrentVADProbability() const;
|
||||
double GetRNNProbThreshold() const;
|
||||
void SetRNNProbThreshold(double value);
|
||||
|
||||
private:
|
||||
void OnCapturedPCM(const int16_t *pcm, ma_uint32 frames);
|
||||
|
||||
@@ -129,6 +129,8 @@ VoiceWindow::VoiceWindow(Snowflake channel_id)
|
||||
break;
|
||||
#ifdef WITH_RNNOISE
|
||||
case AudioManager::VADMethod::RNNoise:
|
||||
audio.SetRNNProbThreshold(val);
|
||||
m_vad_value.SetTick(val);
|
||||
break;
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user