BatchDrake / suscan

Channel scanner based on sigutils library
GNU General Public License v3.0
122 stars 29 forks source link

SigDigger appimage audio clipping at 32,000 up #18

Closed 2WR3505 closed 4 years ago

2WR3505 commented 4 years ago

Wavin drake, i was testing this on my skywave linux install, and the audio gets choppy at 32,000 and up. is there any thing i can do to fix this by tweakin settings in the program?

BatchDrake commented 4 years ago

I suspect what is going on. Can you provide details on signal source, audio cutoff frequency, and modulation?

El lun., 19 ago. 2019 4:57, 2WR3505 notifications@github.com escribió:

Wavin drake, i was testing this on my skywave linux install, and the audio gets choppy at 32,000 and up. is there any thing i can do to fix this by tweakin settings in the program?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BatchDrake/SigDigger/issues/8?email_source=notifications&email_token=AAEVET5EE2XOHAOFQZDSB4TQFID2HA5CNFSM4IMVUPUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HF37LMA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEVET5UYPUP2J4ZVG5GMVDQFID2HANCNFSM4IMVUPUA .

2WR3505 commented 4 years ago

signal source is truckers on 11 meters AM, cutoff is 22,050 KHz. i noticed it stops clipping after awhile.

the audio remains horrible though

BatchDrake commented 4 years ago

Sure, but I mean, what SDR device are you using? What is the capture sample rate?

the audio remains horrible though

Most (if not all) AM stations transmit at a cutoff frequency of 4 kHz. At bigger cutoff frequencies (i.e. 22 kHz like in your case) you start to get out-of-band noise coming from nearby stations. Have you tried to adjust it?

Also, I fixed an issue related to sample rate yesterday (some SDR devices will silently capture at a different rate if you specify an unsupported rate), but I haven't merged to master yet. This problem caused a lot of trouble regarding audio preview, and can be potentially related to this issue. I'll update you once it's done.

PS: there is a problem regarding audio filter stability at very low frequencies (i.e. below 3 kHz). But in that case the only thing you'd hear is a popping sound. I guess that's not your case, right?

2WR3505 commented 4 years ago

your thinking of the bandwidth of the transmission, which is actually 6 KHz. i have the sample rate the same as i use on GQRX. 22 KHz is related to audio quality. i got the audio quality cutoff as high as it can go, and that doesnt seem to fix it.

i have it set to 6 KHz wide for standard AM bandwidth.

yea, i'll try 0.5.0 of the alpha app image and see if that changes anything.

and yea, thats not my case, lol. i'll have to roll a quick video gate using my kraco mayday 2 :)

BatchDrake commented 4 years ago

The audio preview is a little counterintuitive (this is totally my fault) and perhaps it's time to rethink the whole thing entirely. Roughly speaking, there are two filters working here:

Playing with it for a bit, I've realized that making the channel filter narrower (but keeping it at least 6 kHz wide) distorts the signal somehow. Could you try different combinations of the following?

If you don't get any improvements, please try to record some seconds of the audio output to a file (using Audacity, for instance) and send it back to me.

2WR3505 commented 4 years ago

ah, ok, good info :)

I'll try those 2 tips there, but here's a current videogate of where i am at right now :)

https://www.youtube.com/watch?v=f4u7m4hUF68&feature=youtu.be

BatchDrake commented 4 years ago

This was extremely helpful. Yes, there are two different issues going on here:

Since these are two different audio inspector issues in Suscan, I'm moving this issue to Suscan's project page. I hope to have it fixed before the week ends.

2WR3505 commented 4 years ago

ah yea, that helped alot, takin the audio volume to 6% cleaned it up alot. i can actually hear and understand myself and the other guys talking now, lol.

i didnt even need to mess with the frequency bandwidth :)

edit: using the rtl sdr btw, noticed in the earlier comment you asked what sdr i was using

BatchDrake commented 4 years ago

@2WR3505 I think I fixed the main issue here, but now I'm dealing with a new one related to this. I also detail a workaround in the mean time: https://github.com/BatchDrake/suscan/issues/20

I'm building an AppImage with some bugfixes, including this.

BatchDrake commented 4 years ago

You can download the new AppImage now in https://github.com/BatchDrake/SigDigger/releases/tag/0.0.6-alpha