nonoo / kappanhang

Remotely open audio channels and a serial port to an Icom RS-BA1 server (for ex. Icom IC-705 transceiver).
Other
152 stars 28 forks source link

controlstream@299: audio/Failure: Module initialization failed #4

Closed dbc closed 3 years ago

dbc commented 3 years ago

Super excited to discover this project yesterday! I've been wanting to learn go, and this seems like a good place to dig in.

When I cloned and built kappanhang, on my system I get:

dave@roslap2:~/Documents/repos/contrib/kappanhang$ go run ./
2020-12-06T15:55:50.253-0800    info    main: kappanhang (devel) by Norbert Varga HA2NON and Akos Marton ES1AKOS   https://github.com/nonoo/kappanhang
2020-12-06T15:55:50.253-0800    info    streamcommon: control/connecting to IC-705:50001
2020-12-06T15:55:50.626-0800    info    controlstream: got serial and audio request success, device name: IC-705
2020-12-06T15:55:50.629-0800    info    streamcommon: serial/connecting to IC-705:50002
2020-12-06T15:55:50.651-0800    info    serialtcpsrv: exposing serial port on tcp port 4531
2020-12-06T15:55:50.686-0800    info    serialstream: stream started
2020-12-06T15:55:50.686-0800    info    streamcommon: audio/connecting to IC-705:50003
2020-12-06T15:55:50.779-0800    error   controlstream@299: audio/Failure: Module initialization failed
2020-12-06T15:55:50.729-0800   S0    14.019430 CW txpwr 100%
2020-12-06T15:55:51.279-0800    info    streamcommon: control/disconnecting
2020-12-06T15:55:51.279-0800    info    streamcommon: serial/disconnecting
2020-12-06T15:55:51.280-0800    info    main: waiting 1 seconds...

So... it looks like my configuration is close to correct, but somehow the audio stream is not starting up. Any clues for me? 73, Dave N6NZ

nonoo commented 3 years ago

Make sure pulseaudio is available for your Linux user. Check if pactl and pacmd commands are available. Make sure module-pipe-sink and module-pipe-source are installed and available.

dbc commented 3 years ago

pactl, pacmd, yes. modules needed to be added. module-pipe-sink fails to initialize -- looking at /var/log/syslog is appears that module-pipe-sink can not parse the requested options. I am trying this on a very old (Ubuntu 16.04) system for... reasons... so I suspect that my install of pulse-audio is simply too old. I will try on a more recent system.