levinite wrote:Are you sure Alsa is installed? If it is you can try to enumerate your audio devices using aplay -L assuming aplay is there
Yes, absolutely. I'm running ALSA and it works. I listen to music through this machine daily. aplay -l returns the usual list of functioning devices.
I poked around a bit since the --serve option works, and tried a few manual JSON-RPC calls with curl.
1.Pianoteq successfully listed my audio devices:
[root@hal ~]# curl -s http://localhost:8081/jsonrpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"getListOfAudioDevices","params":[],"id":1}' \
| jq
{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"devices": [
"Default Audio Device (1)",
"PulseAudio Sound Server",
"Default Audio Device (2)",
"Rate Converter Plugin Using Libav/FFmpeg Library",
"Rate Converter Plugin Using Samplerate Library",
"Rate Converter Plugin Using Speex Resampler",
"JACK Audio Connection Kit",
"Open Sound System",
"Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)",
"Plugin for channel upmix (4,6,8)",
"Plugin for channel downmix (stereo) with a simple spacialization",
"AIRPULSE A300Pro, USB Audio; Front output / input",
"AIRPULSE A300Pro, USB Audio; 2.1 Surround output to Front and Subwoofer speakers",
"AIRPULSE A300Pro, USB Audio; 4.0 Surround output to Front and Rear speakers",
"AIRPULSE A300Pro, USB Audio; 4.1 Surround output to Front, Rear and Subwoofer speakers",
"AIRPULSE A300Pro, USB Audio; 5.0 Surround output to Front, Center and Rear speakers",
"AIRPULSE A300Pro, USB Audio; 5.1 Surround output to Front, Center, Rear and Subwoofer speakers",
"AIRPULSE A300Pro, USB Audio; 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers",
"AIRPULSE A300Pro, USB Audio; IEC958 (S/PDIF) Digital Audio Output",
"AIRPULSE A300Pro; USB Stream Output",
"HDA Intel PCH, ALC294 Analog; Front output / input",
"HDA Intel PCH, ALC294 Analog; 2.1 Surround output to Front and Subwoofer speakers",
"HDA Intel PCH, ALC294 Analog; 4.0 Surround output to Front and Rear speakers",
"HDA Intel PCH, ALC294 Analog; 4.1 Surround output to Front, Rear and Subwoofer speakers",
"HDA Intel PCH, ALC294 Analog; 5.0 Surround output to Front, Center and Rear speakers",
"HDA Intel PCH, ALC294 Analog; 5.1 Surround output to Front, Center, Rear and Subwoofer speakers",
"HDA Intel PCH, ALC294 Analog; 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers",
"HDA Intel PCH, HDMI 0; HDMI Audio Output",
"HDA Intel PCH, HDMI 1; HDMI Audio Output",
"HDA Intel PCH, HDMI 2; HDMI Audio Output",
"HDA Intel PCH; USB Stream Output",
"XFY MIC RC; USB Stream Output",
"Roland Digital Piano; USB Stream Output"
],
"type": "ALSA"
},
{
"devices": [
"Auto-connect ON",
"Auto-connect OFF"
],
"type": "JACK"
}
]
}
2. But asking for the current device returns blanks:
[root@hal ~]# curl -s http://localhost:8081/jsonrpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"getAudioDeviceInfo","params":[],"id":1}' \
| jq
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"audio_output_device_name": "",
"buffer_size": "",
"channels": "",
"device_type": "",
"force_stereo": "0",
"sample_rate": "",
"status": "stopped"
}
}
very strange...
Last edited by wildflower (08-10-2025 22:56)