PhantomSDR Support Forum

General Category => PhantomSDR Software => Topic started by: Phil - NY4Q on Nov 26, 2024, 02:57 PM

Title: Improve the FM audio
Post by: Phil - NY4Q on Nov 26, 2024, 02:57 PM
frontend/src/audio.js

      case 'FM':
        this.bassBoost.gain.value = 50
        this.bandpass.frequency.value = 2200
        this.bandpass.Q.value = 0.6
        this.bandpass.gain.value = 3
        this.highPass.frequency.value = this.ctcss ? 300 : 30
        this.presenceBoost.gain.value = 4
        this.setLowpass(4800)
        break

npm install
npm audit fix
npm run build

Title: Re: Improve the FM audio
Post by: Emmanuel SV1BTL on Nov 26, 2024, 04:33 PM
Quote from: Phil - NY4Q on Nov 26, 2024, 02:57 PMfrontend/src/audio.js

      case 'FM':
        this.bassBoost.gain.value = 50
        this.bandpass.frequency.value = 2200
        this.bandpass.Q.value = 0.6
        this.bandpass.gain.value = 3
        this.highPass.frequency.value = this.ctcss ? 300 : 30
        this.presenceBoost.gain.value = 4
        this.setLowpass(4800)
        break

npm install
npm audit fix
npm run build



How to solve this after running npm to compile?

Quotefile:///home/sv1btl/PhantomSDR-Plus/frontend/node_modules/vite/bin/vite.js:7
    await import('source-map-support').then((r) => r.default.install())
    ^^^^^

SyntaxError: Unexpected reserved word
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)
Title: Re: Improve the FM audio
Post by: Phil - NY4Q on Nov 26, 2024, 05:28 PM
I believe I ran through these steps and fixed that error. I stopped at the point of checking the version of node.

https://linuxize.com/post/how-to-install-node-js-on-ubuntu-20-04/#installing-nodejs-and-npm-using-nvm

I will add - while this improved the pinched audio I was hearing on VHF-FM, I still do not like what I'm hearing as compared to the same SDR (in my case an RSP1a) and SDR Console.
Title: Re: Improve the FM audio
Post by: Emmanuel SV1BTL on Nov 27, 2024, 07:47 AM
Quote from: Phil - NY4Q on Nov 26, 2024, 05:28 PMI believe I ran through these steps and fixed that error. I stopped at the point of checking the version of node.

https://linuxize.com/post/how-to-install-node-js-on-ubuntu-20-04/#installing-nodejs-and-npm-using-nvm

I will add - while this improved the pinched audio I was hearing on VHF-FM, I still do not like what I'm hearing as compared to the same SDR (in my case an RSP1a) and SDR Console.

Followed all the steps - Success!
After recompile, FM mode is much better now!

Thanks!
Title: Re: Improve the FM audio
Post by: Phil - NY4Q on Nov 27, 2024, 09:50 PM
I landed on Bas' SDR today and found some stations using FM on 11 meters and that FM sounded great. So why does VHF/UHF FM sound so pinched up and also have so much hissing involved?

Title: Re: Improve the FM audio
Post by: Emmanuel SV1BTL on Nov 28, 2024, 12:04 PM
Quote from: Phil - NY4Q on Nov 27, 2024, 09:50 PMI landed on Bas' SDR today and found some stations using FM on 11 meters and that FM sounded great. So why does VHF/UHF FM sound so pinched up and also have so much hissing involved?



I don't know if BAS has made the modification you've recommended, but in my case, FM stations on 11 meters sound really better.
Title: Re: Improve the FM audio
Post by: Bas ON5HB on Nov 28, 2024, 05:56 PM
I did not modify the FM-code.

Beware, that Soapy isn't as good as the RX888MK2 direct sampling-injection.

Soapy does have some strange things AND does convert if needed.

When you are able to avoid Soapy, you better do so.

When it comes to the RSP1A and older devices, you can pick between the 2.13 and 3.xx API, I really suggest you use the 2.13 API and use the 2.13 plugin, it's far better. Also more stable.