philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.46k stars 217 forks source link

Works! How? Low volume and not clear and powerfull audio respect Sonos application. #117

Closed biapar closed 5 years ago

biapar commented 5 years ago

Works! How? Problem: Low volume and not clear and powerfull audio.

philippe44 commented 5 years ago

Sorry, I don't understand the question. When you select flac (default) for re-encoding, the audio is absolutely bit-exact what is transmitted by the AirPlay device. As far as volume is concerned, the control on AirPlay can drive the Sonos up to 100%

biapar commented 5 years ago

I tried the MacOS app but I hear this difference that is the audio is better with Sonos Application than with this workaround on Air Connect. I tried with the same song.

philippe44 commented 5 years ago

When left with defaults, AirConnect does not do any modification to the audio, it's a bit-exact transfer. Now, it depends what is your source track. AirPlay only uses 16bits@44.1kHz while Sonos can do 16bits@48kHz. Now, what is the encoding and sample rate and size of the original track? When it is send from your iPod/iPad or iTunes, the necessary decoding and re-sampling will be done by the iXXX device if needed. Now if the track is already 16bits@44.1kHz, there is no changes made to the samples at all between playing through Sonos or playing through AirConnect. It's just the decoder and all decoder produce the same output when using the same input. The only difference can be volume which, as you know, even a little difference can make a significant perception impact. Anything else is purely subjective

biapar commented 5 years ago

The difference is not only by volume, but also in loudness and the sound is more rich.

philippe44 commented 5 years ago

Well, I don't know then. A said before, if the initial file is 16bits@44.1kHz, then what is sent to Sonos speakers is bit-identical, unless you've selected to re-encode audio in mp3. But not knowing the audio source you're using or the configuration of AirConnect, I cannot tell

biapar commented 5 years ago

This are my flows for testing: 1) iTunes on MacOS -> Airplay -> Sonos Play:1 2) Sonos Application -> Sonos Play:1

philippe44 commented 5 years ago

Can you tell me what is the original format (in iTunes and as scanned by the Sonos app)? As well, what parameters did you use for AirConnect? Especially the \<codec> one

biapar commented 5 years ago

I'm using this https://sonoair.mihosoft.eu/ ( is't good and you know? ) that use AirConnect. I use Apple Music. Where I see the format into it and Sonos App?

philippe44 commented 5 years ago

I know SonoAir, but I don't know if it has been kept up-to-date with my releases. You should be able to know the format of the file by simply checking informations about it (I'm not an OSX guy, but it's probably something like a right click on the file or in Finder or in iTunes you right click on the file as well and look for "informations" or a menu/tab like that

biapar commented 5 years ago

Do you suggest to try direct with your library without SonosAir? Apple Music use 256kbps AAC

philippe44 commented 5 years ago

Yes - it's a bit less convenient if you are not technical, but SonoAir is "just" wrapping AirConnect with a UI to start/stop/configure it. 256kAAC does not tell me what is the sample rate

biapar commented 5 years ago

I'm a programmer -:). I'm not able to read the sample rate on Apple Music but It's at least 44.1kHz

philippe44 commented 5 years ago

If you are a programmer you can use the OS X example to manually create a startup solution. I do not understand why you can’t get the file infos that tell you sampling rate. I have that in iTunes for every file

biapar commented 5 years ago

I tried your code...and the sound is good, now! /airupnp-osx-multi -l 1000:2000 -d all=error -d main=info -f airupnp.log I close the post. Thanks!

biapar commented 5 years ago

Can I push a lots of likes -:)!!!!!!!!!!