I had a Sabrent USB-SBCV sitting around so I connected it to a Beaglebone
Black.
https://www.amazon.com/Sabrent-External-Surround-Sound-Adapter/dp/B002R33VWW

NOTE: I ended up using a powered USB Hub since the BBB was not happy
playing sounds through this device when connected straight to the board.

This is what I see with it connected:

debian@beaglebone:~$* cat /proc/asound/devices*
  2: [ 0- 0]: digital audio playback
  3: [ 0]   : control
  4: [ 1- 0]: digital audio playback
  5: [ 1- 0]: digital audio capture
  6: [ 1]   : control
 33:        : timer

debian@beaglebone:~$ *aplay -l*
**** List of PLAYBACK Hardware Devices ****
card 0: Black [TI BeagleBone Black], device 0: davinci-mcasp.0-i2s-hifi
i2s-hifi-0 [davinci-mcasp.0-i2s-hifi i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
*card 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]*
*  Subdevices: 1/1*
*  Subdevice #0: subdevice #0*


I ran the example as such:

debian@beaglebone:~$ *aplay /usr/share/sounds/alsa/Front_Center.wav -D
sysdefault:CARD=1*

 NOTE: CARD=1 is reference to the USB device

Also, to change the volume, the Master can be used. I got an error when
trying with Speaker:
Ex:
 debian@beaglebone:~$* amixer -D pulse sset Master 100%*

This works with one of those small self powered speakers.
If the volume is still too low for your config, then you may consider the
Amp device from Adafruit Dennis suggested.  Or, if you are handy with
electronics, build your own amp circuit.

Cheers,

Jon


On Mon, Jan 25, 2021 at 11:58 AM Steve M <[email protected]> wrote:

> Thanks Jon!
>
> I like the mushroom speaker idea since it includes a built-in amplifier
> powered through the USB adapter, but the size might be a little large for
> my smart dog door project.
>
> Otherwise, I am able to control and get volume out of the mini-speaker
> using the ‘amixer’ cmds so I didn’t see anything that would help in the
> github link (but maybe I missed something?). That you shared.
>
> If I can’t find a soln for the low mini-speaker volume, then I’ll likely
> try the mushroom speaker link that you provided !!
>
> Thanks again,
> Steve
>
> On Jan 25, 2021, at 12:47 PM, jonnymo <[email protected]> wrote:
>
> 
> Have you seen this page?
> https://gist.github.com/interwebjill/157055cc4e2bd7c33181f7e7e8bf4659
>
> You might consider something like this or if you have a PC speaker you
> could try that:
>
> https://www.amazon.com/s?k=Mini+Hamburger+Speaker&i=electronics&ref=nb_sb_noss
>
> Jon
>
>
>
>
> On Sun, Jan 24, 2021 at 6:08 PM Steve Meinschein <[email protected]>
> wrote:
>
>> I'm using " amixer set Speaker 100%" to turn the volume all the way up,
>> but the sound level coming out of my mini-speaker (via USB sound adapter)
>> is barely a whisper - but it is definitely audible. Do I just need a bigger
>> speaker? Lower Ohms? Different "amixer" settings?
>>
>> Anyway, here is a link to the audio adapter:
>>
>>
>> https://www.amazon.com/gp/product/B00IRVQ0F8/ref=ppx_yo_dt_b_asin_title_o09_s01?ie=UTF8&psc=1
>>
>> and here is a link to the mini-speaker.
>>
>>
>> https://www.adafruit.com/product/1890?gclid=CjwKCAiAlNf-BRB_EiwA2osbxVKKNeMPMA_9rEXRKPnz9IsqDNvQx1z-Oz6XTPvXRog8NjRMjgmNchoC_ZQQAvD_BwE
>>
>> Here is the output of the "amixer" commands:
>>
>> debian@beaglebone:/var/lib/cloud9$ amixer set Speaker 100%
>>
>>
>> Simple mixer control 'Speaker',0
>>   Capabilities: pvolume pswitch pswitch-joined
>>   Playback channels: Front Left - Front Right
>>   Limits: Playback 0 - 37
>>   Mono:
>>   Front Left: Playback 37 [100%] [0.00dB] [on]
>>   Front Right: Playback 37 [100%] [0.00dB] [on]
>>
>> debian@beaglebone:/var/lib/cloud9$ amixer
>> Simple mixer control 'Speaker',0
>>   Capabilities: pvolume pswitch pswitch-joined
>>   Playback channels: Front Left - Front Right
>>   Limits: Playback 0 - 37
>>   Mono:
>>   Front Left: Playback 37 [100%] [0.00dB] [on]
>>   Front Right: Playback 37 [100%] [0.00dB] [on]
>> Simple mixer control 'Mic',0
>>   Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch
>> pswitch-joined cswitch cswitch-joined
>>   Playback channels: Mono
>>   Capture channels: Mono
>>   Limits: Playback 0 - 31 Capture 0 - 35
>>   Mono: Playback 16 [52%] [-7.00dB] [off] Capture 20 [57%] [8.00dB] [on]
>> Simple mixer control 'Auto Gain Control',0
>>   Capabilities: pswitch pswitch-joined
>>   Playback channels: Mono
>>   Mono: Playback [on]
>>
>> debian@beaglebone:/var/lib/cloud9$ aplay
>> /usr/share/sounds/alsa/Front_Center.wav
>> Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit
>> Little Endian, Rate 48000 Hz, Mono
>>
>> The result is a barely audible female voice saying "front center".
>>
>> Any help/guidance will be greatly appreciated !!!
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beagleboard/5e5235f3-8b79-4f0c-b3ac-38abceeb5c7bn%40googlegroups.com
>> <https://groups.google.com/d/msgid/beagleboard/5e5235f3-8b79-4f0c-b3ac-38abceeb5c7bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/iAqrWTXlu9I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/CAG99bkpPACS7y-A14US48rN5%3DgRmKfOGPUwzYB2r2u_qt0pnPA%40mail.gmail.com
> <https://groups.google.com/d/msgid/beagleboard/CAG99bkpPACS7y-A14US48rN5%3DgRmKfOGPUwzYB2r2u_qt0pnPA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/12D124F6-9146-46F6-87E5-46BE4BCA54FD%40gmail.com
> <https://groups.google.com/d/msgid/beagleboard/12D124F6-9146-46F6-87E5-46BE4BCA54FD%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAG99bkpcXHfEbdNBKa%3Dp0MgFxaHxCkOEJOOJmKZvgT9oNFuqTw%40mail.gmail.com.

Reply via email to