[SlimDevices: Plugins] Alexa to LMS
Hello! I would like to bring the music output of my Echo Dot2 to the LMS to stream into the players. My system: Ubuntu homeserver 6 USB sound cards 6 squeezelite instances on the homeserver for each room Alexa connected to the mic-front connector Unfortunately, trying with Wavein always failed at Pulseaudio, every time I remove Pulseaudio, the system becomes unstable. Has anyone ever done this and can give me a short and easy instruction? The control by Alexa would be nice too, but getting the sound in LMS would also be a great thing! THANK YOU bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > Hello! > > I would like to bring the music output of my Echo Dot2 to the LMS to > stream into the players. > > My system: > Ubuntu homeserver > 6 USB sound cards > 6 squeezelite instances on the homeserver for each room > Alexa connected to the mic-front connector > > Unfortunately, trying with Wavein always failed at Pulseaudio, every > time I remove Pulseaudio, the system becomes unstable. > > Has anyone ever done this and can give me a short and easy instruction? > > The control by Alexa would be nice too, but getting the sound in LMS > would also be a great thing! > > THANK YOU It can work with Pulseaudio just a bit harder to do so not shor & easy. You have not provided any details of the OS being used (ie. version of Ubuntu) , the LMS server hardware nor the input device ("mic connector" is not a descirption also possibility of impedence/level mismatch - Line-in is usual ) being used - so it is hard to give any clear instructions without details. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > Hello! > > I would like to bring the music output of my Echo Dot2 to the LMS to > stream into the players. > > My system: > Ubuntu homeserver > 6 USB sound cards > 6 squeezelite instances on the homeserver for each room > Alexa connected to the mic-front connector > > Unfortunately, trying with Wavein always failed at Pulseaudio, every > time I remove Pulseaudio, the system becomes unstable. > > Has anyone ever done this and can give me a short and easy instruction? > > The control by Alexa would be nice too, but getting the sound in LMS > would also be a great thing! > > THANK YOU Try the input via one of the USB Soundcards instead VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s *Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s Everything controlled by iPeng d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
> the rest > > sysdefault:CARD=Dongle - VIA USB Dongle, USB Audio - Default > Audio Device > front:CARD=Dongle,DEV=0- VIA USB Dongle, USB Audio - Front > speakers > surround40:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - 4.0 > Surround output to Front and Rear speakers > surround41:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - 4.1 > Surround output to Front, Rear and Subwoofer speakers > surround50:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - 5.0 > Surround output to Front, Center and Rear speakers > surround51:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - 5.1 > Surround output to Front, Center, Rear and Subwoofer speakers > surround71:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - 7.1 > Surround output to Front, Center, Side, Rear and Woofer speakers > iec958:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - IEC958 > (S/PDIF) Digital Audio Output > dmix:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - Direct > sample mixing device > dsnoop:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - Direct > sample snooping device > hw:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - Direct > hardware device without any conversions > plughw:CARD=Dongle,DEV=0 - VIA USB Dongle, USB Audio - Hardware > device with all software conversions > sysdefault:CARD=Device_1 - USB Audio Device, USB Audio - Default > Audio Device > front:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - Front > speakers > surround40:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - 4.0 > Surround output to Front and Rear speakers > surround41:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - 4.1 > Surround output to Front, Rear and Subwoofer speakers > surround50:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - 5.0 > Surround output to Front, Center and Rear speakers > surround51:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - 5.1 > Surround output to Front, Center, Rear and Subwoofer speakers > surround71:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - 7.1 > Surround output to Front, Center, Side, Rear and Woofer speakers > iec958:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - IEC958 > (S/PDIF) Digital Audio Output > dmix:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - Direct > sample mixing device > dsnoop:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - Direct > sample snooping device > hw:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - Direct > hardware device without any conversions > plughw:CARD=Device_1,DEV=0 - USB Audio Device, USB Audio - > Hardware device with all software conversions > sysdefault:CARD=Device_2 - USB Audio Device, USB Audio - Default > Audio Device > front:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - Front > speakers > surround40:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - 4.0 > Surround output to Front and Rear speakers > surround41:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - 4.1 > Surround output to Front, Rear and Subwoofer speakers > surround50:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - 5.0 > Surround output to Front, Center and Rear speakers > surround51:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - 5.1 > Surround output to Front, Center, Rear and Subwoofer speakers > surround71:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - 7.1 > Surround output to Front, Center, Side, Rear and Woofer speakers > iec958:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - IEC958 > (S/PDIF) Digital Audio Output > dmix:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - Direct > sample mixing device > dsnoop:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - Direct > sample snooping device > hw:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - Direct > hardware device without any conversions > plughw:CARD=Device_2,DEV=0 - USB Audio Device, USB Audio - > Hardware device with all software conversions > sysdefault:CARD=Device_3 - USB Audio Device, USB Audio - Default > Audio Device > front:CARD=Device_3,DEV=0 - USB Audio Device, USB Audio - Front > speakers > surround40:CARD=Device_3,DEV=0 - USB Audio Device, USB Audio - 4.0 > Surround output to Front and Rear speakers > surround41:CARD=Device_3,DEV=0 - USB Audio Device, USB Audio - 4.1 > Surround output to Front, Rear and Subwoofer speakers > surround50:CARD=Device_3,DEV=0 - USB Audio Device, USB Audio - 5.0 > Surround output to Front, Center and Rear speakers > surround51:CARD=Device_3,DEV=0 - USB Audio Device, USB Audio - 5.1 > Surround output to Front, Center, Rear and Subwoofer speakers > surround71:CARD=Device_3,DEV=0 - USB Audio Device, USB Audio - 7.1 > Surround output to Front, Center, Side, Rear and Woofer speakers > iec958:CARD=Device_3,DEV=0 - USB Audio Device, USB Audio - IEC958 > (S/PDIF) Digital Audio Output > dmix:CARD=Device_3,DEV=0 - USB Audio Device, USB Audio - Direct > sample mixing device > dsnoop:CARD=Device_3,DEV=0 -
Re: [SlimDevices: Plugins] Alexa to LMS
the first part of the information is still to be checked by the moderator and therefore follows only after the second part bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
Are you saying the Alexa/Echo Dot is to be plugged into a RPi2 and that will feed your LMS ? If so then install piCorePlayer 5 onto the Pi, disable Squeezelite but enable pcp-streamer. Use a USB DAC/ADC such as Behringer UAC202 - https://www.gear4music.com/Recording-and-Computers/Behringer-UCA202-Audio-Interface/79E?origin=product-ads&campaign=PLA+Shop+-+GENERIC&adgroup=GENERIC&medium=vertical_search&network=google&merchant_id=1279443&product_id=9410d1&product_country=GB&product_partition_id=638853982722&gclid=EAIaIQobChMIp8C5s5Go4wIVbb7tCh06AgsrEAQYASABEgIvVvD_BwE Feed output of Alexa via the USB to Pi and then Tune In URL on LMS in the form designated under "more" where it says pcp-streamer There is some lag and you can only connect one player or one synchronised group Altrentively using the same hardware but Raspbian, Liquidsoap & Icecast you can build a similar streamer which does support multiple streams and seems more stable to me - https://iotsblog.wordpress.com/2016/10/22/high-end-wireless-vinyl-streaming/ VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s *Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s Everything controlled by iPeng d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > the first part of the information is still to be checked by the > moderator and therefore follows only after the second part What sort of hardware Is it arm or x86 ? What version of Ubuntu ? What version of LMS ? bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
Hi, Is it arm or x86 ? What version of Ubuntu ? What version of LMS ? ...see #4 "pacmd list-sources" from homeserver = Attachment But I would prefer the same DAC (as the ones from the homeserver) from the raspberry2 right in front of alexa. Homeserver is 15m away :-( I think I will try #7 tomorrow - I hope I am able to do it. But if someone else has a good idea, then I like to take it! Thank you!!! Thomas +---+ |Filename: pacmd list-sources.txt | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=27671| +---+ bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > But I would prefer the same DAC (as the ones from the homeserver) from > the raspberry2 right in front of alexa. Homeserver is 15m away :-( > > I think I will try #7 tomorrow - I hope I am able to do it. > > But if someone else has a good idea, then I like to take it! Thank > you!!! I think you describe what you want/need rather than asking for a solution you think might work. Since LMS can play any station Alexa can play. Do you really want Alexa control of an SB player ? or Do you want to hear Alexa response etc through your LMS system (e.g. synced through many SB players) ? or something else bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
I would like to distribute the sound of Alexa over LMS to the players. But if there is a solution here that can be used to control the LMS by voice, then of course that would be even better. But with step 1 I would be very satisfied! bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
OK. You should have pulseaudio-utils installed - this package includes the "parec" command used to record Pulseaudio sources. You should also have Pulseaudio GUI applications under menu "Sound & Video" "PulseAudio Volume Control" & "Pulse Audio Volume Meter (Capture)" First it is necessary to make sure you are getting audio on the correct input and that you can record audio from the input. Plug a sound source into the audio in and make there is continuous audio (e.g a radio station) Using "Pulse Audio Volume Meter (Capture)" - on the working port the meters should be moving - find which pulse audio device is the one you are using. If No port show activity use "PulseAudio Volume Control" to look at input devices and make sure volume level is right to show activity. The command to record a WAV file form audio input is as follows. Code: parec --file-format=wav -d alsa_input.pci-_00_1b.0.analog-stereo test.wav After record about 30 secs - stop the program and try to play the test.wav file to confirm the audio has been recorded. The input device (i.e. the devices start with "alsa_input") you use will depend on your system. A short list of valid device names (Igore any "monitor" devices) will be shown using Code: pactl list short sources bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
@bpa Your answer is based on the source (Echo Dot) being adjacent to his server. I have read the OPs posts differently i.e. I have read them to mean his Echo Dot is in his Living Room 15 metres away. It sounds to me like the server is a central system with 6 USB DAC outputs presumably wired to 6 sets of speakers located in various rooms of his house. I would imagine that he wants the Echo Dot in the Living Room so he can voice control it. I think the OP needs to clarify exactly what it is he is trying to do. VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s *Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s Everything controlled by iPeng d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
d6jg wrote: > @bpa > > Your answer is based on the source (Echo Dot) being adjacent to his > server. Yes I assumed that because in first post OP says a cable from Echo going into the mic input of his LMS sever. > It sounds to me like the server is a central system with 6 USB DAC > outputs presumably wired to 6 sets of speakers located in various rooms > of his house. > I would imagine that he wants the Echo Dot in the Living Room so he can > voice control it. > > I think the OP needs to clarify exactly what it is he is trying to do. bc-nero wrote: > I would like to distribute the sound of Alexa over LMS to the players. To me OP is clear what they want to do - it may not be what they need but let's work through it. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > But if there is a solution here that can be used to control the LMS by > voice, then of course that would be even better. I'm not sure your skill level skill but for Alexa to control LMS there is the thread https://forums.slimdevices.com/showthread.php?107009-Announce-squeeze-alexa-DIY-secure-Alexa-integration However, it is a very technical solution. There is another Alexa LMS integration but using house automation system bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
He also said ... which may have confused me. bc-nero wrote: > I do not have a RP2 in the living room with the same USB sound card as > the home server. If I get the sound through this client in the LMS that > would of course be the best. Otherwise I have to lay 15m sound cable ... bpa wrote: > Yes I assumed that because in first post OP says a cable from Echo > going into the mic input of his LMS sever. > > To me OP is clear what they want to do - it may not be what they need > but let's work through it. OK. From my reading of his attached devices that is the only input available anyway. bpa wrote: > I'm not sure your skill level skill but for Alexa to control LMS there > is the thread > https://forums.slimdevices.com/showthread.php?107009-Announce-squeeze-alexa-DIY-secure-Alexa-integration > > However, it is a very technical solution. There is another Alexa LMS > integration but using house automation system Totally agree. VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s *Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s Everything controlled by iPeng d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > ==> So I will try this one. But I do not want to record the sound, I > want to stream the sound live into LMS ... The same command to record is the one that will be used by LMS to copy the sound to player. If you don't have a working record command - there is no point wasting time booting / rebooting LMS. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
Ok, so i put in a new LMS favorit: Code: parec --file-format=wav -d alsa_input.pci-_00_1b.0.analog-stereo test.wav right? bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > Ok, so i put in a new LMS favorit: > Code: > > parec --file-format=wav -d alsa_input.pci-_00_1b.0.analog-stereo test.wav > > > > right? NO Run from a shell prompt - this has nothing to do with LMS. It is necessary to verify it works on your system without any LMS. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > Hi! > > Sorry, my mistake ... (google translate) > > wrong: I do not have a RP2 in the living room with the same USB sound > card as the home server. > right: I do have a RP3 in the living room with the same USB sound card > as the home server. > > > > ==> here is a lag of 10 seconds and the sound was very bad (first try > with one DAC) > > > > ==> does not work in my case, I get many error messages and I can not > find the solution > > > > The pcp-streamer method does have a 10 second or so lag and I have found that the sound stutters a bit for a minute or so before it settles down. It will only accept one connection. The Raspbian, Liquidsoap, Icecast2 method on the other hand has no stutter and less of a lag circa 3-4 seconds and will accept multiple connections. It is more fiddly to set up but I believe a better solution if you want something remote from the LMS server. VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s *Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s Everything controlled by iPeng d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > > @bpa > > this one is working great: "alsa_input.pci-_00_1b.0.analog-stereo" I assume this means you were able to record audio into a file and play it back OK. Now to modify LMS to use parec (which is PulaseAudio record) instead of the default arecord (which is ALSA record) 1. Locate the Wavinput plugin - it will be installed in a Cache directory ending with the following. *Cache/InstalledPlugins/Plugins/WaveInput* . You can find location of the Cache folder/directory from the WebUI Settings/Info page 2. Stop LMS 3. Backup the custom-convert.conf file in the Plugins/WaveInput directory 4. Edit the custom-convert.conf file to look like the following - make sure you use a tab not spaces before the "[parec]" and "# R" Code: # # wavin # wavin pcm * * # R [parec] --file-format=raw --format=s16le --rate=44100 --channels=2 -d $FILE$ wavin mp3 * * # RB:{BITRATE=-B %B} [parec] --file-format=wav --format=s16le -d $FILE$ | [lame] --silent -q $QUALITY$ -v $BITRATE$ - - wavin flc * * # R [parec] --file-format=wav --format=s16le -d $FILE$ | [flac] -cs --totally-silent --compression-level-0 - 5. Save the changes and make sure the owner and group of custom-convert.conf is the same as all other files in the WaveInput directory 6. Now you need to make sure the userid which runs LMS has permission to use PulseAudio and access Audio hardware. This is done by adding the userid which runs LMS (usually squeezeboxserver but check) to the groups pulse, pulse-access and audio. The following command should work Code: sudo usermod -aG audio squeezeboxserver sudo usermod -aG pulse squeezeboxserver sudo usermod -aG pulse-access squeezeboxserver 7. Start LMS and check that WaveInput is installed OK (i.e. WebUI Setting/Advanced/FileTypes and look at WaveInput entries - should all be valid and have parec) 8. Create a Favorite in LMS for the input device (i.e. in the URL box put *wavin:alsa_input.pci-_00_1b.0.analog-stereo* ) 9. Apply test music to Line-in and test new Favorite bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
Thanks, but unfortunately it still does not work ... I did everything as written, Waveinput also shows: Wave input FLAC = parec / flac MP3 = parec / lame PCM = parec But if I start the favorite with "wavin: alsa_input.pci-_00_1b.0.analog-stereo", then it starts for 1-3 seconds and then stops again, without even having played one sound ... Another idea? Thanks Thomas bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > But if I start the favorite with "wavin: > alsa_input.pci-_00_1b.0.analog-stereo", then it starts for 1-3 > seconds and then stops again, without even having played one sound ... The clock is started when you press play - it means nothing specific - just a timer. Timer running for 3-10 secs and stops usually means parec or lame or flac have failed or device name is wrong or that permissions weren't set. Sometime permission changes need a system reboot to take effect. To check parec etc. - enable logging player.source to INFO and try to play the Favorite. After timer has stopped look at server.log file and copy the lines the look like the following to a post. - your output may indicate the cause Code: [19-07-13 07:41:09.7911] Slim::Player::TranscodingHelper::getConvertCommand2 (443) Error: Didn't find any command matches for type: wavin [19-07-13 07:41:09.7913] Slim::Player::Song::open (388) seek=false time=0 canSeek=0SEEK_ERROR_REMOTE [19-07-13 07:41:09.7917] Slim::Player::TranscodingHelper::getConvertCommand2 (446) Matched: wavin->flc via: [parec] --file-format=wav --format=s16le -d $FILE$ | [flac] -cs --totally-silent --compression-level-0 - [19-07-13 07:41:09.7919] Slim::Player::Song::open (409) Transcoder: streamMode=R, streamformat=flc [19-07-13 07:41:09.7921] Slim::Player::Song::open (462) Opening stream (no direct streaming) using Plugins::WaveInput::WAVIN [wavin:alsa_input.pci-_00_1b.0.analog-stereo] [19-07-13 07:41:09.7926] Slim::Player::TranscodingHelper::tokenizeConvertCommand2 (617) Using command for conversion: "/usr/bin/parec" --file-format=wav --format=s16le -d "alsa_input.pci-_00_1b.0.analog-stereo" | "/mnt/hddrive/home/ubuntu14.04/repos/7.9/latest/trunk/Bin/x86_64-linux/flac" -cs --totally-silent --compression-level-0 - [19-07-13 07:41:09.8000] Slim::Player::Song::open (483) URL is a song (audio): wavin:alsa_input.pci-_00_1b.0.analog-stereo, type=flc [19-07-13 07:41:09.8009] Slim::Player::StreamingController::_Stream (1283) 00:04:20:16:07:0e: stream [19-07-13 07:41:09.8017] Slim::Player::StreamingController::_Stream (1320) Song queue is now 0 [19-07-13 07:41:09.8020] Slim::Player::StreamingController::_setPlayingState (2378) new playing state BUFFERING [19-07-13 07:41:09.8021] Slim::Player::StreamingController::_setStreamingState (2387) new streaming state STREAMING Failed to open audio file. [19-07-13 07:41:09.8175] Slim::Player::Source::_readNextChunk (373) end of file or error on socket, song pos: 0 [19-07-13 07:41:09.8177] Slim::Player::Source::_readNextChunk (378) 00:04:20:16:07:0e mark end of stream [19-07-13 07:41:09.8178] Slim::Player::Source::_readNextChunk (386) Didn't stream any bytes for this song; mark it as failed [19-07-13 07:41:09.8179] Slim::Player::StreamingController::playerStreamingFailed (2249) 00:04:20:16:07:0e [19-07-13 07:41:09.8180] Slim::Player::StreamingController::_playersMessage (797) Problem: Can't open file for:: wavin:alsa_input.pci-_00_1b.0.analog-stereo [19-07-13 07:41:09.8183] Slim::Player::StreamingController::_Stop (611) Song queue is now 0 [19-07-13 07:41:09.8185] Slim::Player::StreamingController::_setPlayingState (2378) new playing state STOPPED bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
Hi! Code: alsa_input.pci-_00_1b.0.analog-stereo ... is the right one, just tested as you have written 2 days ago Code: 2019-07-13 09:01:28 squeezeboxserver_safe started. [19-07-13 09:01:29.8349] main::init (387) Starting Logitech Media Server (v7.9.1, 1522157629, Fri Mar 30 12:28:01 CEST 2018) perl 5.018002 - x86_64-linux-gnu-thread-multi [19-07-13 09:02:13.6576] Slim::Networking::SqueezeNetwork::_error (565) Unable to login to SN: mysqueezebox.com-Benutzername oder -Kennwort ungültig. [19-07-13 09:02:13.6578] Slim::Networking::SqueezeNetwork::_init_error (185) Unable to login to mysqueezebox.com, sync is disabled: mysqueezebox.com-Benutzername oder -Kennwort ungültig. (http://www.mysqueezebox.com) [19-07-13 09:02:13.6580] Slim::Networking::SqueezeNetwork::_init_error (201) mysqueezebox.com sync init failed: mysqueezebox.com-Benutzername oder -Kennwort ungültig., will retry in 184500 (http://www.mysqueezebox.com) ... this is the log file from today Code: sudo usermod -aG audio squeezeboxserver sudo usermod -aG pulse squeezeboxserver sudo usermod -aG pulse-access squeezeboxserver ... done, checked in webmin Code: -rw-r--r-- 1 squeezeboxserver nogroup 373 Jul 13 00:59 custom-convert.conf -rw-r--r-- 1 squeezeboxserver nogroup 478 Dez 17 2008 custom-convert.conf.eca -rw-r--r-- 1 squeezeboxserver nogroup 301 Jul 5 2008 custom-types.conf drwxr-xr-x 3 squeezeboxserver nogroup 4096 Jul 13 00:36 HTML -rwxr--r-- 1 squeezeboxserver nogroup 654 Aug 9 2011 install.xml -rw-r--r-- 1 squeezeboxserver nogroup 1671 Okt 9 2009 Plugin.pm -rw-r--r-- 1 squeezeboxserver nogroup 2031 Okt 9 2009 Settings.pm -rwxr--r-- 1 squeezeboxserver nogroup 538 Jul 18 2008 strings.txt -rw-r--r-- 1 squeezeboxserver nogroup 2293 Okt 9 2009 WAVIN.pm ... seams to me to be correct best regards thomas bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > > Code: > > alsa_input.pci-_00_1b.0.analog-stereo > > > > ... is the right one, just tested as you have written 2 days ago > The test prove that Pulseaudio is working for a logged in user (i.e. not a service) and somewhere there is a device that is correct. When LMS is run in a service the Pulseaudio device names may change according to what devices are available to the LMS process. I need to check how to get devices name available to a LMS in a service. > > > > Code: > > 2019-07-13 09:01:28 squeezeboxserver_safe started. > [19-07-13 09:01:29.8349] main::init (387) Starting Logitech Media Server (v7.9.1, 1522157629, Fri Mar 30 12:28:01 CEST 2018) perl 5.018002 - x86_64-linux-gnu-thread-multi > [19-07-13 09:02:13.6576] Slim::Networking::SqueezeNetwork::_error (565) Unable to login to SN: mysqueezebox.com-Benutzername oder -Kennwort ungültig. > [19-07-13 09:02:13.6578] Slim::Networking::SqueezeNetwork::_init_error (185) Unable to login to mysqueezebox.com, sync is disabled: mysqueezebox.com-Benutzername oder -Kennwort ungültig. (http://www.mysqueezebox.com) > [19-07-13 09:02:13.6580] Slim::Networking::SqueezeNetwork::_init_error (201) mysqueezebox.com sync init failed: mysqueezebox.com-Benutzername oder -Kennwort ungültig., will retry in 184500 (http://www.mysqueezebox.com) > > > > ... this is the log file from today > You have not enabled the logging properly. WebUI Settings/Advaned/Logging - set player.source to INFO and click Apply. Then try playing the wavin Favorite. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
OK! Code: [19-07-13 10:17:40.8933] Slim::Player::Playlist::removeTrack (349) Removing currently playing track. [19-07-13 10:17:40.8936] Slim::Player::StreamingController::stop (2097) b8:27:eb:dd:58:65 [19-07-13 10:17:40.8941] Slim::Player::Source::playmode (96) b8:27:eb:dd:58:65: Current playmode: stop [19-07-13 10:17:45.2390] Slim::Player::StreamingController::play (2100) b8:27:eb:dd:58:65 [19-07-13 10:17:45.2396] Slim::Player::StreamingController::_Stop (603) Song queue is now 0 [19-07-13 10:17:45.2398] Slim::Player::StreamingController::_setPlayingState (2357) new playing state STOPPED [19-07-13 10:17:45.2400] Slim::Player::StreamingController::_setStreamingState (2366) new streaming state IDLE [19-07-13 10:17:45.2404] Slim::Player::Song::new (108) index 0 -> wavin:alsa_input.pci-_00_1b.0.analog-stereo [19-07-13 10:17:45.2407] Slim::Player::StreamingController::_setStreamingState (2366) new streaming state TRACKWAIT [19-07-13 10:17:45.2411] Slim::Player::StreamingController::_playersMessage (789) Streaminfos werden geladen...: wavin:alsa_input.pci-_00_1b.0.analog-stereo [19-07-13 10:17:45.2415] Slim::Player::Song::getNextSong (229) wavin:alsa_input.pci-_00_1b.0.analog-stereo [19-07-13 10:17:45.2417] Slim::Player::Song::getNextSong (251) scanning URL wavin:alsa_input.pci-_00_1b.0.analog-stereo [19-07-13 10:17:45.2423] Slim::Player::Song::getNextSong (229) wavin:alsa_input.pci-_00_1b.0.analog-stereo [19-07-13 10:17:45.2426] Slim::Player::StreamingController::_nextTrackReady (737) b8:27:eb:dd:58:65: nextTrack will be index 0 [19-07-13 10:17:45.2428] Slim::Player::StreamingController::_Stream (1203) Song queue is now 0 [19-07-13 10:17:45.2430] Slim::Player::StreamingController::_Stream (1206) b8:27:eb:dd:58:65: preparing to stream song index 0 [19-07-13 10:17:45.2432] Slim::Player::Song::open (363) wavin:alsa_input.pci-_00_1b.0.analog-stereo [19-07-13 10:17:45.2439] Slim::Player::TranscodingHelper::getConvertCommand2 (443) Error: Didn't find any command matches for type: wavin [19-07-13 10:17:45.2441] Slim::Player::Song::open (387) seek=false time=0 canSeek=0SEEK_ERROR_REMOTE [19-07-13 10:17:45.2446] Slim::Player::TranscodingHelper::getConvertCommand2 (446) Matched: wavin->flc via: [parec] --file-format=wav --format=s16le -d $FILE$ | [flac] -cs --totally-silent --compression-level-0 - [19-07-13 10:17:45.2448] Slim::Player::Song::open (408) Transcoder: streamMode=R, streamformat=flc [19-07-13 10:17:45.2450] Slim::Player::Song::open (461) Opening stream (no direct streaming) using Plugins::WaveInput::WAVIN [wavin:alsa_input.pci-_00_1b.0.analog-stereo] [19-07-13 10:17:45.2457] Slim::Player::TranscodingHelper::tokenizeConvertCommand2 (617) Using command for conversion: "/usr/bin/parec" --file-format=wav --format=s16le -d "alsa_input.pci-_00_1b.0.analog-stereo" | "/usr/share/squeezeboxserver/Bin/x86_64-linux/flac" -cs --totally-silent --compression-level-0 - [19-07-13 10:17:45.2548] Slim::Player::Song::open (482) URL is a song (audio): wavin:alsa_input.pci-_00_1b.0.analog-stereo, type=flc [19-07-13 10:17:45.2562] Slim::Player::StreamingController::_Stream (1265) b8:27:eb:dd:58:65: stream [19-07-13 10:17:45.2578] Slim::Player::StreamingController::_Stream (1302) Song queue is now 0 [19-07-13 10:17:45.2582] Slim::Player::StreamingController::_setPlayingState (2357) new playing state BUFFERING [19-07-13 10:17:45.2584] Slim::Player::StreamingController::_setStreamingState (2366) new streaming state STREAMING [19-07-13 10:17:45.2893] Slim::Player::TranscodingHelper::getConvertCommand2 (443) Error: Didn't find any command matches for type: wavin [19-07-13 10:17:45.3382] Slim::Player::Source::_readNextChunk (373) end of file or error on socket, song pos: 0 [19-07-13 10:17:45.3385] Slim::Player::Source::_readNextChunk (378) b8:27:eb:dd:58:65 mark end of stream [19-07-13 10:17:45.3387] Slim::Player::Source::_readNextChunk (386) Didn't stream any bytes for this song; mark it as failed [19-07-13 10:17:45.3389] Slim::Player::StreamingController::playerStreamingFailed (2228) b8:27:eb:dd:58:65 [19-07-13 10:17:45.3391] Slim::Player::StreamingController::_playersMessage (789) Problem: Datei kann nicht geöffnet werden für:: wavin:alsa_input.pci-_00_1b.0.analog-stereo [19-07-13 10:17:45.3397] Slim::Player::StreamingController::_Stop (603) Song queue is now 0 [19-07-13 10:17:45.3400] Slim::Player::StreamingController::_setPlayingState (2357) new playing state STOPPED [19-07-13 10:17:45.3402] Slim::Player::StreamingController::_setStreamingState (2366) new streaming state IDLE [19-07-13 10:17:45.3406] Slim::Player::StreamingController::_willRetry (1391) no retry data [19-07-13 10:17:45.3409] Slim::Player::StreamingController::nextsong (882) The next song is number 0, was 0 [19-07-13 10:17:45.3439] Slim::Player::TranscodingHelper::g
Re: [SlimDevices: Plugins] Alexa to LMS
OK - everything is as expected. I think I see the problem - it looks like parec doesn't like piping WAV output. I'll have to look for an alternative to parec. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
I dislike PulseAudio intensely - it solves problems that 99% of users don't have but makes life more complicated. For some reason parec will not pipe its output so a quick and dirty solution is to use "arecord" with an environment variable "PULSE_SOURCE" but that requires a shell script as LMS syntax doesn't support variables. Attached are 2 files in a zip file becuase forums doesn't support the file types as attachments, custom-convert.conf pulse.sh the custom-convert.conf now calls a shell script pulse.sh instead of parec. Also I have omitted mp3 encoding as I think it is not required. the pulse.sh script has to be put into the WaveInput Bin directory with same owner/group as resot of plugin but also it must be made executable (i.e. chmod +x pulse.sh) 1. Stop LMS 2. Download attached zip file and unzip - 2 files pulse.sh & custom-convert.conf 3. Copy pulse.sh into WaveInput/Bin directory. Change owner & group to same as plugin and make file executable. 4. Copy custom-convert.conf into the WaveInput plugin directory 5. Start LMS 6. Check Filetype for WaveInput are "pulse.sh" and "pulse.sh/flac". If they are disabled then pulse.sh is not exectuable or accessible by LMS - fix and restart LMS if necesssary 7. Try playing wavin Fvaorite By default LMS will choose Flac - this will typically have a 3-5 sec delay. If you disable Flac WaveInput FileType (i.e. only PCM is enabled) - the delay will be around 1 sec but will be a heavy network load if sending stream to many synced players . Increasing sampling rate (e.g. 44100 to 9600) for Flac stream may reduce delay as delay is caused by time to compress dependent on compression CPU time and rate of data collected. +---+ |Filename: wavinpulseaudio.zip | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=27679| +---+ bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
Before you go further with PulseAudio, I presume you tried using WaveInput with ALSA devices - it doesn't always require PulseAudio to be uninstalled. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
Sorry, it was very a hard day, so I'm could not come back earlier. Alsa or pulseaudio ... I do not care, the main thing is that it works What attitude would I have to do with Alsa (how do I find the right input device?) With the standard values it had unfortunately not working solution ... best regards from Cologne bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > Alsa or pulseaudio ... I do not care, the main thing is that it > works I guess you had tried ALSA because you said you tried to uninstall Pulseaudio. > What attitude would I have to do with Alsa (how do I find the right > input device?) With the standard values it had > unfortunately not working solution ... Was that a test with WaveInput before you gave LMS user permission to access "Audio" hardware by making userid a member of audio group ? To get the right device - you first do a test like you did with parec. 1. Find all the possible input device with "arecord -l"(the option is lower case letter L not digit 1). Output will be like Code: List of CAPTURE Hardware Devices card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 2: ALC887-VD Alt Analog [ALC887-VD Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Audio [DigiHug USB Audio], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 Note there are 3 devices CARD=0,DEV=0 CARD=0,DEV=2 and CARD=2,DEV=0 2. play audio into input port 3. Record the input into a wav file - example with CARD=0 and DEV=2 Code: arecord -v -D plughw:CARD=0,DEV=2 -f cd -t wav arecordtest.wav Play the arecordtest.wav file to check if audio has been recorded. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
Hi! > Was that a test with WaveInput before you gave LMS user permission to > access "Audio" hardware by making userid a member of audio group ? ... before this one is working: arecord -v -D plughw:CARD=2,DEV=0 -f cd -t wav arecordtest.wav thomas bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > Hi! > > > > ... before > > this one is working: arecord -v -D plughw:CARD=2,DEV=0 -f cd -t wav > arecordtest.wav OK then test with a Favorite with URL "wavin:plughw:CARD=2,DEV=0" with the orginal custom-convert.conf file which has "arecord" (LMS must be restarted for custom-convert.conf changes to take effect) bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
OK! Now: "wavin:hw:2,0" was working :-( before reboot i could hear the music - after reboot only pipes :-( also it was not possible to play the stream on two players , or make a synchronization ?!? bc-nero's Profile: http://forums.slimdevices.com/member.php?userid=69285 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Alexa to LMS
bc-nero wrote: > I would like to distribute the sound of Alexa over LMS to the players. > But if there is a solution here that can be used to control the LMS by > voice, then of course that would be even better. But with step 1 I would > be very satisfied! Maybe the OP should check out the MediaServer skill which came out in September and falls in the 'even better' category mentioned above. https://forums.slimdevices.com/showthread.php?111016-Announce-MediaServer-*certified*-Alexa-skill-for-LMS philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=110736 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins