Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client does not adjust samplerate for high rate servers #3

Open
AB9IL opened this issue Mar 7, 2023 · 1 comment
Open

Client does not adjust samplerate for high rate servers #3

AB9IL opened this issue Mar 7, 2023 · 1 comment

Comments

@AB9IL
Copy link
Contributor

AB9IL commented Mar 7, 2023

I'm not completely sure how to fix it, but directKiwi continues to run at 12000 samples / sec when connecting to servers running at 20250 samples / sec. It probably needs to pull status data from the server and use the reported sample rate.

For example, connect to the KiwiSDR at k3fef.com. Audio sounds like a "slow record" because of the rate mismatch.

@llinkz
Copy link
Owner

llinkz commented Mar 8, 2023

The connection to 20kHz KiwiSDR was not implemented in the code
A quick fix is to use the resample feature of kiwirecorder.py

line
296 client_type.replace(' ', ''), '-q', '-a',
296 client_type.replace(' ', '
'), '-q', '-a', '-r', '12000',

...but it will also resample the 12kHz KiwiSDR ones and may introduce some audio lag

We can put a condition when "20 kHz" is present in the KiwiSDR "sdr_hw" field then use that "-r 12000" else do not resample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants