nouranahmad
Posts: 3
Joined: Sun Sep 23, 2018 5:39 pm

Pi Zero audio output using micro USB headphones

Sun Sep 23, 2018 5:57 pm

Hi I am building a Text to Speech device using Raspberry Pi zero, this device has to be as small as possible, I dont have a sound card and have no room for it so is there a way to get the audio output through the micro Usb port to a micro Usb earphone?

drgeoff
Posts: 10832
Joined: Wed Jan 25, 2012 6:39 pm

Re: Pi Zero audio output using micro USB headphones

Sun Sep 23, 2018 10:18 pm

I'd never heard of micro-USB earphones so I did a bit of Googling and found info such as that at https://android.stackexchange.com/quest ... in-android. That says the earphones are just ordinary analogue ones but with a micro-USB plug instead of the more usual 3.5 mm TRS plug. The device they are plugged in to needs to put analogue audio out on the micro-USB socket. The RPi Zero and ZeroW cannot do that. It is a hardware thing and no software or configuration setting can change that.

You can obtain quite small USB sound card dongles which will drive the common earphones with 3.5 mm TRS plug. Or a few capacitors and resistors attached to the GPIO header can give a slightly lower quality (mostly higher background noise) approximation to the circuitry feeding the analogue audio signals to the 3.5mm TRRS socket on the "non Zero" RPis.
Quis custodiet ipsos custodes?

nouranahmad
Posts: 3
Joined: Sun Sep 23, 2018 5:39 pm

Re: Pi Zero audio output using micro USB headphones

Mon Sep 24, 2018 1:59 pm

drgeoff wrote:
Sun Sep 23, 2018 10:18 pm
I'd never heard of micro-USB earphones so I did a bit of Googling and found info such as that at https://android.stackexchange.com/quest ... in-android. That says the earphones are just ordinary analogue ones but with a micro-USB plug instead of the more usual 3.5 mm TRS plug. The device they are plugged in to needs to put analogue audio out on the micro-USB socket. The RPi Zero and ZeroW cannot do that. It is a hardware thing and no software or configuration setting can change that.

You can obtain quite small USB sound card dongles which will drive the common earphones with 3.5 mm TRS plug. Or a few capacitors and resistors attached to the GPIO header can give a slightly lower quality (mostly higher background noise) approximation to the circuitry feeding the analogue audio signals to the 3.5mm TRRS socket on the "non Zero" RPis.
I see, now I understand.
I guess I will try the USB sound adapter, or I just had this idea of trying bluetooth earphones :D
Thanks again

User avatar
HawaiianPi
Posts: 5888
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Pi Zero audio output using micro USB headphones

Tue Sep 25, 2018 7:28 pm

nouranahmad wrote:
Mon Sep 24, 2018 1:59 pm
I see, now I understand.
I guess I will try the USB sound adapter, or I just had this idea of trying bluetooth earphones :D
Thanks again
If it's a Pi Zero W model, then you should be able to do that (the non-W model Pi Zero does not have Bluetooth).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

nouranahmad
Posts: 3
Joined: Sun Sep 23, 2018 5:39 pm

Re: Pi Zero audio output using micro USB headphones

Fri Sep 28, 2018 2:54 pm

HawaiianPi wrote:
Tue Sep 25, 2018 7:28 pm
nouranahmad wrote:
Mon Sep 24, 2018 1:59 pm
I see, now I understand.
I guess I will try the USB sound adapter, or I just had this idea of trying bluetooth earphones :D
Thanks again
If it's a Pi Zero W model, then you should be able to do that (the non-W model Pi Zero does not have Bluetooth).
Yes its Zero W and I managed to get a bluetooth headset to pair with it but the pi wont connect, I read that not all bluetooth headsets are compatible with raspberry pi, Im not sure what bluetooth headset brand or model to buy now, do you know any?
Mine is Zoook zb-btx3

User avatar
thagrol
Posts: 3178
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Pi Zero audio output using micro USB headphones

Fri Sep 28, 2018 7:12 pm

if you're not afraid to get out a soldering iron you can add basic 3.5mm audio out: https://learn.adafruit.com/adding-basic ... o/overview
Arguing with strangers on the internet since 1993.

User avatar
Imperf3kt
Posts: 3675
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Pi Zero audio output using micro USB headphones

Sun Sep 30, 2018 9:23 am

nouranahmad wrote:
Fri Sep 28, 2018 2:54 pm
I read that not all bluetooth headsets are compatible with raspberry pi, Im not sure what bluetooth headset brand or model to buy now, do you know any?
Mine is Zoook zb-btx3
As far as I am aware, that device supports Bluetooth v3.0, which is for voice communications.
You want a device that supports Bluetooth v4.0 or higher, so it can stream audio.
thagrol wrote:
Fri Sep 28, 2018 7:12 pm
if you're not afraid to get out a soldering iron you can add basic 3.5mm audio out: https://learn.adafruit.com/adding-basic ... o/overview
I did that to a Pi Zero. Works great when coupled with a PAM8406
https://i.imgur.com/jL1SIvh.jpg
55:55:44:44:4C
52:4C:52:42:41

User avatar
thagrol
Posts: 3178
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Pi Zero audio output using micro USB headphones

Sun Sep 30, 2018 12:53 pm

Imperf3kt wrote:
Sun Sep 30, 2018 9:23 am
As far as I am aware, that device supports Bluetooth v3.0, which is for voice communications.
You want a device that supports Bluetooth v4.0 or higher, so it can stream audio.
Rubbish. Bluetooth has always been able to handle audio, what do you think "voice communications" are?

If you mean high(er) quality audio and/or A2DP, that's been around since, I think, v2.
Arguing with strangers on the internet since 1993.

hippy
Posts: 7911
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Pi Zero audio output using micro USB headphones

Sun Sep 30, 2018 2:13 pm

drgeoff wrote:
Sun Sep 23, 2018 10:18 pm
I'd never heard of micro-USB earphones
Oddly enough I came across one of those today, single earpiece to a micro USB plug, and was wondering how that worked. So thanks for the link which has saved me some searching.

LTolledo
Posts: 3585
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Pi Zero audio output using micro USB headphones

Mon Oct 01, 2018 2:47 am

WiFi and Bluetooth concurrent use don't go very well, with the bluetooth audio suffering skipping.

It still better to extract audio from the GPIO pins and plug a normal headphone with TRS plug to it, as suggested by thagrol.
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

Return to “Troubleshooting”