Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    28

    LMS + waveinput plugin + Sqeezelite on a RaspberryPi

    Here is my setup :
    A first rasbperryPi in my living room. It acts as the server (running LMS) and as a player (with Squeezelite). It uses a Wolfson audio card.
    A second raspberryPi in the kitchen, running only Squeezelite.

    On both raspberryPi, Squeezelite is launched with this command:
    Code:
    squeezelite-armv6hf -o sysdefault:CARD=sndrpiwsp  -a 500:10:24:0 -n Wolfson -s 192.168.0.10 -z
    And the URL for waveinput is
    Code:
    wavin:sysdefault
    This setup is working fine when listening to web stream or local audio files.

    Then, I tried the plugin Waveinput. My goal is to be able to stream an analog source on the 2 players. So, I connected my audio source to the lineIn input of the wolsfon audio card and made sure that it was working fine :
    Code:
    arecord -f cd -t raw | aplay -t raw -f cd
    This command acquires the audio from the LineIn and outputs it on the SPDIF output of the audio card. Perfect!

    But waveinput didn't work : the stream seems to start for 5sec and then stops. I found out that it is working only if Squeezelite is not running on the 'server' (the raspberrypi that runs LMS). If squeezelite is not running on the server, LMS is able to record the audio from the input and transmit it to the player in my kitchen.

    Is there any conflict between LMS/Waveinput and Squeezelite because they are both trying to access to the audio card?

    Any ideas?

    Thanks!

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,846
    If it "plays" for 5 secs and then stops then it means the "arecord" command line started by LMS has failed probably permissions.

    There are weird issues about recording from the wolfson card especially at rate hoigher than 44.1Khz. Another user has been trying to get a workign setup.
    I think one issue is that you should may need to run the Wolfson record from Linein script before starting arecord to make sure h/w is enabled (i.e. the custom-convert.conf file will need to be changed to call a shell script rather than just arecord)

    I'll look later to find links to the long post from the other user or you could use search for Waveinput and Wolfson

  3. #3
    Junior Member
    Join Date
    Jan 2014
    Posts
    28
    Thanks for your answer, bpa.

    I had to add the user squeezeboxcenter to the group "audio". Before that, nothing worked. Now, it can acquire and send the sound to another player, but not acquire and play to a player running on the same machine. I don't know if this issue is related to LMS, Waveinput, Alsa or the Wolfson card...

    I did some research and found this thread. The OP is trying to achieve the same kind of thing as me and managed to have a working solution by creating a virtual sound card. I'll have a look at this.

    I don't know which sampling rate LMS is using, but, as I said, I tried many arecord/aplay commands which were working : recording sound from lineIn to WAV (with arecord), playing WAV files to SPDIF output (with aplay), and even both at the same time (LineIn -> arecord | aplay -> SPDIF). So, it seems that it is possible to record and play at the same time... I don't know why it is not working with LMS/Waveinput.

    Anyway, if you find some other information, they will be welcomed

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    18,846
    Quote Originally Posted by JF002 View Post
    ThThe OP is trying to achieve the same kind of thing as me and managed to have a working solution by creating a virtual sound card. I'll have a look at this.
    IIRC the virtual sound card was an unnecessary dead end - the user really didn't understand what they were doing initially and didn't say exactly what they wanted to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •