Stream What You Hear (SWYH) -- an updated alternative to WaveInput for Windows users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moxbox
    Member
    • Sep 2014
    • 46

    Stream What You Hear (SWYH) -- an updated alternative to WaveInput for Windows users

    This thread is for people who are looking for a way to capture the audio stream that Windows sends to the sound card, and direct it to LMS.

    This functionality used to be provided by the WaveInput plugin, and WaveInput may still work for older PCs and versions of Windows (< Win8). But WaveInput relies on an audio software device, "Stereo Mix" that is no longer included in Windows distributions. The WaveInput code is also a bit of an orphan now -- the person who originally coded it up no longer maintains it, and the long-suffering maintainer (@bpa) is not planning to update the code to deal with the OS changes. You can find more details on the WaveInput thread.

    As luck would have it, SWYH is a simple third party option that solves this problem.

    An example of when you might need SWYH or WaveInput would be when you want to redirect the output of an internet streaming service to LMS, so that it can distribute the stream to the player(s) you choose. Note that if there is a dedicated working plugin for the streaming service you're interested in (e.g., Spotify, Soundcloud) then you're probably better off using that. Chances are the dedicated plugin will provide better sound quality and control via the LMS interface. WaveInput, and SWYH, should be considered a last resort. But as streaming services multiply and evolve, sometimes there may not be a dedicated working LMS plugin, and the SWYH option is good all purpose solution to this.

    The instructions below work for me, running Windows 10 on a Lenovo Thinkpad Yoga. I'm more of an end user than a programmer, so if you have trouble getting this to work, I'll be happy to try to troubleshoot, but I can't make any promises. And H/T to @bpa and @kidstypike who helped me get this working on my system.


    Instructions:

    1. Download the current version of SWYH from their website: http://www.streamwhatyouhear.com/download/

    (consider donating to support the software, they provide a link on their home page).


    2. Install the package on your laptop or PC

    I used the default options for the most part. But I did have it create a shortcut on the desktop. Since this is a package that runs in the background, it's a bit easier to launch and troubleshoot with that shortcut.

    The last install screen asks if you want to launch the program -- yes is checked by default, so as long as you don't change that, the program will start up when you finish the install.


    3. Find and open the SWYH program interface

    To interact with SWYH when it's running, you need to find it in your "system tray". Depending on how many programs you have running in the background it will either be visible in the default tray, or you'll need to click the carat to display the rest of the icons to find it. In addition, on my system, the dark color of the SWYH icon makes it almost impossible to see:

    Click image for larger version

Name:	Screenshot (329).png
Views:	1
Size:	24.4 KB
ID:	1577670



    Note that if you right-click the SWYH icon, one of the options is labeled "Stream to". I can see all of my players when I choose this, but you can't just pick your player and have the stream sent to it. You need to set up the connection in LMS.


    4. Right click the SWYH icon and pick the settings option.
    Set the HTTP port to a high number so it doesn't interfere with other defaults (I used 50011).

    Click image for larger version

Name:	Screenshot (340).png
Views:	1
Size:	52.4 KB
ID:	1577671



    5. Right click the SWYH icon and pick "Tools -> HTTP Live Streaming"

    Click image for larger version

Name:	Screenshot (341).png
Views:	1
Size:	46.7 KB
ID:	1577672



    You're going to copy this http address into a new "Favorite" in LMS



    5. Open the LMS web interface, and navigate to edit your "Favorites". Create a new favorite (I call mine SWYH) and copy over the url from the SWYH stream.

    Click image for larger version

Name:	Screenshot (334).png
Views:	1
Size:	26.4 KB
ID:	1577673



    After you save this, you're ready to go. Fire up an audio stream in your browser, navigate to LMS, select the SWYH favorite, and press play!


    A couple of other things to note:

    1. There is a lag in the stream you'll hear on your squeezebox player, so it's a good idea to turn off your PC/laptop speakers (this won't affect the SB player -- you control the volume for that from your LMS UI).

    2. You can control the selection/distribution/volume of this stream with other LMS controllers like Ipeng.
    Last edited by moxbox; 2016-12-11, 05:51.
    LMS 7.9 Win 10 SBV3 duet
    serving vintage Marantz 2230, large Advents and ADS 710.
    funky and wonderful that this new tech can talk to this old stuff
  • moxbox
    Member
    • Sep 2014
    • 46

    #2
    Reserving this spot for future announcements

    Check back later.
    LMS 7.9 Win 10 SBV3 duet
    serving vintage Marantz 2230, large Advents and ADS 710.
    funky and wonderful that this new tech can talk to this old stuff

    Comment

    • garym
      Senior Member
      • May 2008
      • 13540

      #3
      Thanks for posting this. A couple of additional thoughts:

      1. One should "reserve" the IP address of the computer running SWYH. Otherwise the IP addressed used in the LMS SWYH "favorite" could be different each time the computer connects with the local network.

      2. Even if the user doesn't see a player listed in the SWYH settings, it doesn't matter if you try to add a player or search for a player. One can simply leave this blank. The only important point is that the SWYH streaming link is pasted into a favorite in LMS. Then when streaming, LMS will play this to any and all players connected to LMS,
      Home: Pi4B-8GB/pCP8.2.x/4TB USB>LMS 8.5.x>Transporter, Touch, Boom, Radio (all ethernet)
      Cottage: rPi4B-4GB/pCP8.2.x/4TB USB>LMS 8.5.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI)
      Office: Win11(64)>foobar2000
      The Wild: rPi3B+/pCP7.x/4TB USB>LMS 8.1.x>hifiberry Dac+Pro (LMS & Squeezelite)
      Controllers: Material Skin, iPhone14Pro & iPadAir5 (iPeng), or CONTROLLER
      Files: Ripping: dBpoweramp > FLAC; Post-rip: mp3tag, PerfectTunes, TuneFusion; Streaming: Spotify

      Comment

      • d6jg
        Senior Member
        • Feb 2011
        • 8943

        #4
        I'd change the streaming option from MP3 to PCM - the URL remains as is - and yes I'd make the host a static IP by reserving through DHCP.
        Jim



        pCP9.0 / LMS 9.x storage QNAP TS419p (NFS)
        Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
        Office Joggler & Pi3 -> Onkyo CRN775 -> Wharfedale Modus Cubes
        Kitchen WiiM Pro -> Topping MX3 - B&W In Ceiling speakers
        Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
        Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
        Guest Room Joggler > Denon RCFN8 -> Celestions F10s

        Comment

        • moxbox
          Member
          • Sep 2014
          • 46

          #5
          Originally posted by d6jg
          I'd change the streaming option from MP3 to PCM.
          Having just looked up the difference -- the benefit of this would be that the PCM stream is not compressed?
          LMS 7.9 Win 10 SBV3 duet
          serving vintage Marantz 2230, large Advents and ADS 710.
          funky and wonderful that this new tech can talk to this old stuff

          Comment

          • garym
            Senior Member
            • May 2008
            • 13540

            #6
            Originally posted by moxbox
            Having just looked up the difference -- the benefit of this would be that the PCM stream is not compressed?
            Correct. But if wifi connected it will place more demand on the bandwidth.
            Home: Pi4B-8GB/pCP8.2.x/4TB USB>LMS 8.5.x>Transporter, Touch, Boom, Radio (all ethernet)
            Cottage: rPi4B-4GB/pCP8.2.x/4TB USB>LMS 8.5.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI)
            Office: Win11(64)>foobar2000
            The Wild: rPi3B+/pCP7.x/4TB USB>LMS 8.1.x>hifiberry Dac+Pro (LMS & Squeezelite)
            Controllers: Material Skin, iPhone14Pro & iPadAir5 (iPeng), or CONTROLLER
            Files: Ripping: dBpoweramp > FLAC; Post-rip: mp3tag, PerfectTunes, TuneFusion; Streaming: Spotify

            Comment

            • d6jg
              Senior Member
              • Feb 2011
              • 8943

              #7
              Yes. Personally I would always wire a "source" whatever it is.


              Sent from my iPhone using Tapatalk
              Jim



              pCP9.0 / LMS 9.x storage QNAP TS419p (NFS)
              Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
              Office Joggler & Pi3 -> Onkyo CRN775 -> Wharfedale Modus Cubes
              Kitchen WiiM Pro -> Topping MX3 - B&W In Ceiling speakers
              Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
              Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
              Guest Room Joggler > Denon RCFN8 -> Celestions F10s

              Comment

              • castalla
                Senior Member
                • Feb 2008
                • 6568

                #8
                Sort of works .... music streams show strange glitches where music briefly skips (barely noticeable but still evident even to my clapped out ears!)
                ------------------------------------------------------------------------------------

                Comment

                • moxbox
                  Member
                  • Sep 2014
                  • 46

                  #9
                  http stream still named ...mp3 after switching to pcm

                  Originally posted by garym
                  Correct. But if wifi connected it will place more demand on the bandwidth.
                  I figured the http stream would be renamed after I changed the settings from MP3 to PCM/L16. But it has the same name it had before, with the "mp3" at the end `http://192.168.0.11:50011/stream/swyh.mp3`

                  Is this what yours looks like too?
                  LMS 7.9 Win 10 SBV3 duet
                  serving vintage Marantz 2230, large Advents and ADS 710.
                  funky and wonderful that this new tech can talk to this old stuff

                  Comment

                  • castalla
                    Senior Member
                    • Feb 2008
                    • 6568

                    #10
                    Originally posted by moxbox
                    I figured the http stream would be renamed after I changed the settings from MP3 to PCM/L16. But it has the same name it had before, with the "mp3" at the end `http://192.168.0.11:50011/stream/swyh.mp3`

                    Is this what yours looks like too?
                    Yes
                    ------------------------------------------------------------------------------------

                    Comment

                    • moxbox
                      Member
                      • Sep 2014
                      • 46

                      #11
                      Originally posted by castalla
                      Sort of works .... music streams show strange glitches where music briefly skips (barely noticeable but still evident even to my clapped out ears!)
                      I'm not hearing any skips on my setup.
                      LMS 7.9 Win 10 SBV3 duet
                      serving vintage Marantz 2230, large Advents and ADS 710.
                      funky and wonderful that this new tech can talk to this old stuff

                      Comment

                      • castalla
                        Senior Member
                        • Feb 2008
                        • 6568

                        #12
                        Originally posted by moxbox
                        I'm not hearing any skips on my setup.
                        I suspect it's my win7 device. I'll try on another device.
                        ------------------------------------------------------------------------------------

                        Comment

                        • kidstypike
                          Senior Member
                          • Feb 2007
                          • 6444

                          #13
                          Originally posted by moxbox

                          An example of when you might need SWYH or WaveInput would be when you want to redirect the output of an internet streaming service to LMS, so that it can distribute the stream to the player(s) you choose. Note that if there is a dedicated working plugin for the streaming service you're interested in (e.g., Spotify, Soundcloud) then you're probably better off using that. Chances are the dedicated plugin will provide better sound quality and control via the LMS interface. WaveInput, and SWYH, should be considered a last resort. But as streaming services multiply and evolve, sometimes there may not be a dedicated working LMS plugin, and the SWYH option is good all purpose solution to this.
                          You can also use SWYH to stream CDs from your computers CD/DVD player to Squeezeboxes.

                          And also stream audio content from any device connected to the line-in socket on your computer, e.g. phones, tablets, vinyl etc..
                          Pi5 .. pCP 9beta5 .. LMS 8.4 -- nomysqueezebox
                          Study - Pi2B .. S.M.S.L SU-1 .. Q Acoustics M20
                          Snug/TV .. DAC32 .. Audio Engine B2
                          Spares - 1xSBTouch, 1xSB3, 4xRPi, AVI DM5 speakers

                          Comment

                          Working...