I'm looking for a simple USB speaker for a Pi 3. I'm not after HiFi quality, just something that will play a simple MP3 file when required.
Various search engines are not being my friend on this, I have tried a simple one sourced via Amazon, which is billed as being suitable for a Laptop, but whilst it works fine on Windows, it won't play on my Pi. When plugged in I get a low volume of white noise, but it fails when I try to run it.
Running speaker-test -c2 I get a short clicking noise then
speaker-test 1.1.3
Playback device is default Stream parameters are 48000Hz, S16_LE, 2 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 2048 to 16384 Period size range from 1024 to 1024 Using max buffer size 16384 Periods = 4 was set period_size = 1024 was set buffer_size = 16384 0 - Front Left Write error: -5,Input/Ouput error xrun_recovery failed: -5,Input/Ouput error Transfer failed: Input/output error
Any suggestions ?
Adrian
To Reply :
replace "bulleid" with "adrian" - all mail to bulleid is rejected
Sorry for the rigmarole, If I want spam, I'll go to the shops
Every time someone says "I don't believe in trolls", another one dies.
Didn't find your answer? Ask the community — no account required.
A
Andy Burns
what do "lsusb" and "dmesg" have to say?
T
The Natural Philosopher
In the spirit of 'if I wanted to get to there, I wouldn't start from here' frankly the inbuilt sound on a Pi is awful
I had great success with a hifiberry audio DAC hat and there are some that even have small power amplifiers
formatting link
Just add passive loudspeakers..
Or use e.g.
formatting link
(which is what I have) to a normal set of PC speakers using a phono plug to 3.5mm jack adapter.
r
?The fundamental cause of the trouble in the modern world today is that
the stupid are cocksure while the intelligent are full of doubt."
- Bertrand Russell
C
Chris Elvidge
Do you have the correct cable for a Pi3? 4-pole jack on the Pi end.
formatting link
Have you tried amixer? amixer cset numid=3 [0|1|2] where 0 is auto, 1 is analog (jack), 2 is hdmi (digital)
Chris Elvidge, England
A
Adrian
In message , Andy Burns writes
Bus 001 Device 014: ID 1908:2070 GEMBIRD Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
and
dmesg | grep -i usb gives
[ 0.071203] usbcore: registered new interface driver usbfs [ 0.071258] usbcore: registered new interface driver hub [ 0.071353] usbcore: registered new device driver usb [ 0.275629] usbcore: registered new interface driver lan78xx [ 0.275686] usbcore: registered new interface driver smsc95xx [ 0.303548] dwc_otg 3f980000.usb: base=(ptrval) [ 0.704747] dwc_otg 3f980000.usb: DWC OTG Controller [ 0.704781] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1 [ 0.704817] dwc_otg 3f980000.usb: irq 56, io mem 0x00000000 [ 0.705123] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 0.705134] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.705143] usb usb1: Product: DWC OTG Controller [ 0.705153] usb usb1: Manufacturer: Linux 4.19.66-v7+ dwc_otg_hcd [ 0.705162] usb usb1: SerialNumber: 3f980000.usb [ 0.705775] hub 1-0:1.0: USB hub found [ 0.706668] usbcore: registered new interface driver usb-storage [ 0.711122] usbcore: registered new interface driver usbhid [ 0.711127] usbhid: USB HID core driver [ 1.141861] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 1.382184] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00 [ 1.382201] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1.382846] hub 1-1:1.0: USB hub found [ 1.701860] usb 1-1.1: new high-speed USB device number 3 using dwc_otg [ 1.832246] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00 [ 1.832261] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1.925535] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:71:3a:04 [ 9.223975] usbcore: registered new interface driver brcmfmac [9423250.567791] usb 1-1.4: new full-speed USB device number 4 using dwc_otg [9423250.710552] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9423250.710569] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9423250.710579] usb 1-1.4: Product: USB2.0 Device [9423250.710588] usb 1-1.4: Manufacturer: Generic [9423250.710597] usb 1-1.4: SerialNumber: 20130100ph0 [9423252.091545] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423252.111823] usbcore: registered new interface driver snd-usb-audio [9423704.977671] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423705.184433] usb 1-1.4: USB disconnect, device number 4 [9423707.019453] usb 1-1.4: new full-speed USB device number 5 using dwc_otg [9423707.162174] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9423707.162190] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9423707.162199] usb 1-1.4: Product: USB2.0 Device [9423707.162208] usb 1-1.4: Manufacturer: Generic [9423707.162217] usb 1-1.4: SerialNumber: 20130100ph0 [9423707.170181] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423731.785299] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423731.808447] usb 1-1.4: USB disconnect, device number 5 [9423733.899559] usb 1-1.4: new full-speed USB device number 6 using dwc_otg [9423734.042302] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9423734.042318] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9423734.042327] usb 1-1.4: Product: USB2.0 Device [9423734.042336] usb 1-1.4: Manufacturer: Generic [9423734.042345] usb 1-1.4: SerialNumber: 20130100ph0 [9423734.047915] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423756.931672] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423757.152434] usb 1-1.4: USB disconnect, device number 6 [9423758.979647] usb 1-1.4: new full-speed USB device number 7 using dwc_otg [9423759.122422] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9423759.122439] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9423759.122448] usb 1-1.4: Product: USB2.0 Device [9423759.122458] usb 1-1.4: Manufacturer: Generic [9423759.122467] usb 1-1.4: SerialNumber: 20130100ph0 [9423759.127793] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423780.565297] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423780.704300] usb 1-1.4: USB disconnect, device number 7 [9423782.539745] usb 1-1.4: new full-speed USB device number 8 using dwc_otg [9423782.682562] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9423782.682580] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9423782.682590] usb 1-1.4: Product: USB2.0 Device [9423782.682599] usb 1-1.4: Manufacturer: Generic [9423782.682609] usb 1-1.4: SerialNumber: 20130100ph0 [9423782.687913] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423807.021794] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423807.072447] usb 1-1.4: USB disconnect, device number 8 [9423808.899843] usb 1-1.4: new full-speed USB device number 9 using dwc_otg [9423809.041422] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9423809.041438] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9423809.041448] usb 1-1.4: Product: USB2.0 Device [9423809.041458] usb 1-1.4: Manufacturer: Generic [9423809.041467] usb 1-1.4: SerialNumber: 20130100ph0 [9423809.046789] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9423867.744469] usb 1-1.4: USB disconnect, device number 9 [9426821.512090] usb 1-1.4: new full-speed USB device number 10 using dwc_otg [9426821.653685] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9426821.653702] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9426821.653711] usb 1-1.4: Product: USB2.0 Device [9426821.653721] usb 1-1.4: Manufacturer: Generic [9426821.653730] usb 1-1.4: SerialNumber: 20130100ph0 [9426821.659298] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9426843.159932] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9426843.232472] usb 1-1.4: USB disconnect, device number 10 [9426845.062187] usb 1-1.4: new full-speed USB device number 11 using dwc_otg [9426845.204935] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9426845.204951] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9426845.204961] usb 1-1.4: Product: USB2.0 Device [9426845.204970] usb 1-1.4: Manufacturer: Generic [9426845.204979] usb 1-1.4: SerialNumber: 20130100ph0 [9426845.210297] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9426858.929804] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9426859.104445] usb 1-1.4: USB disconnect, device number 11 [9426860.932256] usb 1-1.4: new full-speed USB device number 12 using dwc_otg [9426861.075060] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9426861.075076] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9426861.075086] usb 1-1.4: Product: USB2.0 Device [9426861.075095] usb 1-1.4: Manufacturer: Generic [9426861.075104] usb 1-1.4: SerialNumber: 20130100ph0 [9426861.079429] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9426969.224180] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9426969.440463] usb 1-1.4: USB disconnect, device number 12 [9426971.272711] usb 1-1.4: new full-speed USB device number 13 using dwc_otg [9426971.415433] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9426971.415450] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9426971.415460] usb 1-1.4: Product: USB2.0 Device [9426971.415469] usb 1-1.4: Manufacturer: Generic [9426971.415478] usb 1-1.4: SerialNumber: 20130100ph0 [9426971.420798] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9427003.518307] usb 1-1.4: 1:1: cannot get freq at ep 0x2 [9427003.744447] usb 1-1.4: USB disconnect, device number 13 [9427005.572860] usb 1-1.4: new full-speed USB device number 14 using dwc_otg [9427005.715687] usb 1-1.4: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00 [9427005.715704] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [9427005.715713] usb 1-1.4: Product: USB2.0 Device [9427005.715723] usb 1-1.4: Manufacturer: Generic [9427005.715732] usb 1-1.4: SerialNumber: 20130100ph0 [9427005.721173] usb 1-1.4: 1:1: cannot get freq at ep 0x2
Adrian
To Reply :
replace "bulleid" with "adrian" - all mail to bulleid is rejected
Sorry for the rigmarole, If I want spam, I'll go to the shops
Every time someone says "I don't believe in trolls", another one dies.
N
Nikolaj Lazic
Dana Sun, 22 Nov 2020 11:44:51 +0000, Adrian napis'o:
formatting link
And plug in any speaker and you've got a USB speaker.
alsamixer and turn up the volume.
N
Nikolaj Lazic
Dana Sun, 22 Nov 2020 12:48:34 -0000 (UTC), Nikolaj Lazic napis'o:
formatting link
[snip]
A
Adrian
I've no illusion as to the quality of the sound, all I need it to do is make a noise.
Ooh, that might work ! I'm already using the GPIO bus, but hopefully that won't be a problem (SDA/SCl and BCM 6, plus 3.3V power). The three inch speakers ought to be big enough, and I've got enough space available for one of those (two if that is what is needed).
I did consider that, but part of the problem is that I've not got a lot of space to play with, and even a small set of speakers might me too big, particularly if I've also got to find space for a multiplug for a power supply. Relocating the Pi would be a non-trivial task.
Adrian
To Reply :
replace "bulleid" with "adrian" - all mail to bulleid is rejected
Sorry for the rigmarole, If I want spam, I'll go to the shops
Every time someone says "I don't believe in trolls", another one dies.
A
Adrian
In message , Nikolaj Lazic writes
that reported that the device was unplugged as soon as I tried the test.
Adrian
-- To Reply : replace "bulleid" with "adrian" - all mail to bulleid is rejected Sorry for the rigmarole, If I want spam, I'll go to the shops Every time someone says "I don't believe in trolls", another one dies.
D
Dave Liquorice
Why USB? A Pi will do audio out without any extras, apart from perhaps a small analogue amplifier. Certainly well enough for a tiny speakers.
Cheers
Dave.
T
The Natural Philosopher
pretty awful PWM s**te tho IIRC. Not sure whats down the end of the HDMI port either.
?Progress is precisely that which rules and regulations did not foresee,?
? Ludwig von Mises
A
Andy Burns
a reasonable start
do you need to put these audio things in config.txt ?
lots of hits, no obvious answers
A
A. Dumas
That used to be the case, but they improved it immensely. Certainly good enough for "just a sound". OP should simply use the 3.5mm jack and el cheapo active PC speakers. (They must be active because it's a headphone plug, not a normal line amplified signal.)
Perfect digital audio. Quality depends on the DAC and speakers on the other end. If you have a "receiver" (amp which has hdmi inputs) then a ?10 Pi Zero (and a mini-hdmi to hdmi adapter...) is good enough for hifi audio.
A
Adrian
In message , Dave Liquorice writes
My reading up on this before I started was that I would need an amp of some description if I used the audio out, and space is limited, particularly if I need to add in an extra power supply, so a basic Pi powered is preferred.
Adrian
To Reply :
replace "bulleid" with "adrian" - all mail to bulleid is rejected
Sorry for the rigmarole, If I want spam, I'll go to the shops
Every time someone says "I don't believe in trolls", another one dies.
D
Dave Liquorice
tiny
(as in they have built in amps) PC speakers is fine. The OP states he's not after "HiFi" and is limited on space for speakers...
What ever is shoved in at the other end. Rip a DVD/Blueray without reprocessing/transcoding/reencoding WHY you get was on the disc.
Cheers
Dave.
D
Dave Liquorice
tiny
Quite a number of Pi powered DAC solutions some with on board amps. For tiddly speakers and non-HiFi you don't need masses of power or high voltage (ie > 5 V) power rails. 4 V (to avoid clipping and have a bit of headroom) into 8 ohms is 2 W or so, more than enough.
Cheers
Dave.
T
The Natural Philosopher
formatting link
USB for power. 3.5mm jack for sound.
Labour - a bunch of rich people convincing poor people to vote for rich
people by telling poor people that "other" rich people are the reason
they are poor.
Peter Thompson
T
The Natural Philosopher
cheapo speakers will be about 80dB per watt at one meter. That's still
70dBm at 100mW.
That is loud talking level.
Labour - a bunch of rich people convincing poor people to vote for rich
people by telling poor people that "other" rich people are the reason
they are poor.
Peter Thompson
A
Adrian
In message , The Natural Philosopher writes
Thanks, another option that looks like it will work.
Adrian
To Reply :
replace "bulleid" with "adrian" - all mail to bulleid is rejected
Sorry for the rigmarole, If I want spam, I'll go to the shops
Every time someone says "I don't believe in trolls", another one dies.
J
John Aldridge
Another "not what you asked for" post, but might a cheap battery powered bluetooth speaker do the trick? E.g.
formatting link
Which I've just tried on my RPi4, but I don't see why it wouldn't work on a RPi3.
John
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.