I tried a workaround with the same result:
jackd -d alsa --device hw:0,0 --capture -n MyJackInput
odr-audioenc -j MyJackInput -r 48000 -c 2 -o "tcp://localhost:9003“ -l -b 192
Also, I tried recording audio to a wav with "gnome recorder" this also worked. So the audio interface works.
gst-launch-1.0 alsasrc device=hw:1,0 ! audioconvert ! audioresample ! lamemp3enc target=1 bitrate=192 cbr=true ! tcpserversink host=localhost port=9002
odr-audioenc -v "http://localhost:9002“ -r 48000 -c 2 -o "tcp://localhost:9003" -l -b 192
Also, I have tried another audio interface. Also this didn't work.
My System: Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
odr-audioenc -d hw:0,0 -r 48000 -c 2 -o "tcp://localhost:9003“ -l -b 192
and
odr-audioenc --device=default -r 48000 -c 2 -o "tcp://localhost:9003“ -l -b 192
Both led to a hanging prompt, no log at all, same as before.
odr-audioenc -d plughw:1,0 -r 48000 -c 2 -o "tcp://localhost:9001" -l -b 128
odr-audioenc -d hw:2,0 -r 48000 -c 2 -o "tcp://localhost:9001" -l -b 128
Welcome to ODR-AudioEnc v3.3.1, compiled at May 7 2023, 12:44:47
2023-05-07Z15:51:48 Initialising default TAI Bulletin URLs
2023-05-07Z15:51:48 TAI Bulletin URL: 'https://www.ietf.org/timezones/data/leap-seconds.list'
2023-05-07Z15:51:48 TAI Bulletin URL: 'https://raw.githubusercontent.com/eggert/tz/master/leap-seconds.list'
PAD disabled because neither PAD length nor PAD identifier given
Using 16 subchannels. AAC type: AAC-LC. channels=2, sample_rate=48000
AAC bitrate set to: 128000
Bandwidth is 15500
DAB+ Encoding: framelen=960 (3840B)
Initialising ALSA...
Initialising input triggered exception: cannot set sample format (Invalid argument)
I have tried to set the sample format of the audio interface in asound.conf to s16le and such stuff, but there was no change.
Only above solution worked because with plughw alsa does the converting.