Something
public python v1 · immutableGlobals.SAMPLE_RATES = [8000, 11025, 22050, 38000, 44100, 48000, 96000, 192000]min_sample_rate, max_sample_rate = AlsaDevices.GetRecordingSampleRate()for rate in Globals.SAMPLE_RATES: if rate >= min_sample_rate and rate <= max_sample_rate: self.samplingRate.append_text(str(rate))