Wideband autonomous SDR analysis engine forked from sdr-visual-suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 line
325B

  1. package recorder
  2. import (
  3. "errors"
  4. "sdr-visual-suite/internal/decoder"
  5. )
  6. func DecodeOnDemand(cmd string, iqPath string, sampleRate int, audioPath string) (decoder.Result, error) {
  7. if cmd == "" {
  8. return decoder.Result{}, errors.New("decoder command empty")
  9. }
  10. return decoder.Run(cmd, iqPath, sampleRate, audioPath)
  11. }