Giter VIP home page Giter VIP logo

Comments (7)

dgrizzanti avatar dgrizzanti commented on June 14, 2024 1

@loretoparisi It may depend on what type of pi you have, but this should give you the info you need - https://www.howtogeek.com/269202/how-and-why-to-overclock-your-raspberry-pi-microcomputer/

from airsonos.

dgrizzanti avatar dgrizzanti commented on June 14, 2024

Something I didn't mention above. I'm running AirSonos on a raspberrypi while encountering these issues.

I've done a little more testing and found the following:

  • If I run AirSonos on my macbook, everything works fine (I can stream w/o disconnections to all my Sonos speakers)
  • On the pi, I see that CPU is maxed out at 100% while attempting to airplay (and continues through the disconnects)
  • I don't see any processes dying on the pi while the CPU is maxed, but I'm thinking that CPU could be the culprit

Going to continue digging, but any help or suggestions are much appreciated!

from airsonos.

knusprig55 avatar knusprig55 commented on June 14, 2024

hi dgrizzanti,

I have also tried running airsonos on a raspi, with similar results. Apparently the hardware is not potent enough to encode the audio on the fly (at least not with the present software settings) and that's why the audio gets choppy. There was some discussion on using special hardware in the pi here: stephen/nicercast#2

Somebody got it to work here:
http://www.schrankmonster.de/2014/06/25/raspberrypi-sonos-speakers-support-apple-airplay/
So it seems possible...

from airsonos.

dgrizzanti avatar dgrizzanti commented on June 14, 2024

@knusprig55 That is the article I found that made me go down the raspberry pi path. I originally was using another method with shaiport and VLC to achieve the AirPlay support through the pi. This seemed like a cleaner option and the previous method would crash all the time.

I eventually got this working by over clocking the pi. Not sure if anyone else has any experience with that. There are few "supported" modes that are available in raspi-config. Turbo being the one that seems to work for me.

from airsonos.

stephen avatar stephen commented on June 14, 2024

Hmm, this is a known issue, as I've repro'd the same problem - it seems the lame mp3 audio encoding is too much for the pi to handle at times. One other possibility could be to try using this method for pure PCM streaming, which would bypass the mp3 encoding process: #26

The downside there, would be increased bandwidth costs, since a PCM stream is much bigger, which might also cause parts of the audio to cut out.

from airsonos.

dgrizzanti avatar dgrizzanti commented on June 14, 2024

I was able to get this working as stated above by over clocking the pi, so I'm going to close the issue

from airsonos.

loretoparisi avatar loretoparisi commented on June 14, 2024

@dgrizzanti Hey David, how did you manage to overclock the pi? thanks!

from airsonos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.