No sound from remote host

Forum / NoMachine for Raspberry Pi / No sound from remote host

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28407
    mlavespere
    Participant

    I’m running NoMachine 6.11.2 server on a Pi 3 (Buster 10.4) and can’t get audio on my remotes (Ubuntu 20.04 and MacOS 10.15.5). The two screen captures show what seems to be the problem. In screen1.png you can see that my active audio source is “PCM2901 Audio Codec Analog Stereo”. But in screen2.png I am unable to select that source. Only “Monitor of PCM2901 Audio Codec Analog Stereo” can be selected.

    When using the Professional version of [removed] I am able to select to “PCM2901 Audio Codec Analog Stereo” and audio works fine on my remotes.

    Any help would be appreciated.

    #28453
    witek
    Participant

    Hi,

    Do you want to transmit audio stream from the input device “PCM2901 Audio Codec Analog Stereo” to the client side (Ubuntu and MacOS)?

    NoMachine uses default sink (output device) on the server side (Linux), then reads audio stream using monitor of this sink and transmits data to the other side. You cannot change this monitor when NoMachine start to record audio. That’s why you are not able to select source other than “Monitor of PCM2901 Audio Codec Analog Stereo” in the Recording tab of pavucontrol.

    What is your default sink (output device) when the NoMachine session is running? You can check this in the pavucontrol or by using command in terminal:

    pactl info | grep Default

    #28458
    mlavespere
    Participant

    Yes, I want to stream PCM2901 to my NoMachine clients. Here’s the output from pacts:

    pi@raspberrypi:~ $ pactl info | grep Default

    Default Sample Specification: s16le 2ch 44100Hz

    Default Channel Map: front-left,front-right

    Default Sink: alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo

    Default Source: alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo

    Those USB devices are the audio in and out of the device I want to listen to remotely. Thanks for the help.

     

    #28507
    witek
    Participant

    In this case you can try to use PulseAudio loopback module which will redirect audio stream from your input device to the default output device. Please run the following command on the server and then verify audio on the client side:

    pactl load-module module-loopback source=alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo

    This loaded loopback will be also visible in pavucontrol (Playback and Recording tab).

Viewing 4 posts - 1 through 4 (of 4 total)

This topic was marked as solved, you can't post.