mirror of
https://github.com/celisej567/abaddon.git
synced 2026-01-04 10:10:03 +03:00
tie slider to rnnoise probability threshold
This commit is contained in:
@@ -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