6 ms·
Songbird: Spatial Audio Encoding on the Web
- bowmessage 9y agoHmm. None of the examples are working for me. "The HTMLMediaElement passed to createMediaElementSource has a cross-origin resource, the node will output silence." in the console. macOs Sierra 10.12.5 Firefox 55 64-bit
- runesoerensen 9y agoDidn't have this issue in latest Chrome on OSX. The current demo URLs use `rawgit.com` but reference the script at `cdn.rawgit.com`, so maybe try and prefix the URLs with "cdn" to avoid cross-origin resources altogether? For instance https://cdn.rawgit.com/google/songbird/master/examples/room-model.html https://cdn.rawgit.com/google/songbird/master/examples/room-... Edit: Fixed since https://news.ycombinator.com/item?id=15032253 https://news.ycombinator.com/item?id=15032253
- deleted 9y ago[deleted]
- PaulHoule 9y agoWorked OK on Microsoft Edge. The spatial effect is not that bad, and that is speaking as someone who (1) loves 5.1 and other surround in games, movies and music, and (2) is usually unimpressed with headphone surround.
- drewbitllama 9y ago:)
- sushisource 9y agoSame. No examples work on either FF or Chrome, Fedora 25. Audio from both browsers works perfectly fine for other things.
- ben174 9y agoNo luck on iOS. Not sure if it claims to be supported.
- drewbitllama 9y agoHi Ben174, I'm aware of the issue and I hope to have it resolved within the day. :) Cheers, Drew
- nothis 9y agoSame.
- rotten 9y agoWorked great for me with Vivaldi on Ubuntu 17.04.
- jhurliman 9y agoThis is great to see! I have a side project to port the old Peep Network Auralizer to a web based project[1] and the code already has the concept of mono sounds originating at different points in a 3D space, so this should be relatively straightforward to integrate. I was aiming for Android/iPhone compatibility though; is there any multichannel audio support on mobile yet or would I need a fallback? [1] https://github.com/jhurliman/webpeep https://github.com/jhurliman/webpeep
- drewbitllama 9y agoHi! Songbird renders stereo-out using Omnitone internally, so Android/mobile is certainly supported. Feel free to file any issues you have at https://github.com/Google/songbird/issues https://github.com/Google/songbird/issues. Cheers, Drew
- sabujp 9y agoahh, this is like the thing in realtec audio mixer that lets me change the room type, but in my browser and in realtime
- igorgue 9y agoOT: This brings me back... https://en.wikipedia.org/wiki/Songbird_(software) https://en.wikipedia.org/wiki/Songbird_(software)
- oatmealsnap 9y agoYea...I thought that was gaining a second life. :(
- breul99 9y agoSuch a solid media player for it's time.
- briankwest 9y agoFreeSWITCH can do this in mod_conference using OpenAL, its pretty sweet.
- drewbitllama 9y agoHello everyone, thanks for checking out the new repository. I've resolved the CDN link issues, but feel free to file any more issues at https://github.com/Google/songbird/issues https://github.com/Google/songbird/issues. Looking forward to seeing all the great stuff you all make with it. :)
- Sephr 9y agoShould Songbird users be concerned about Creative's spatial audio patents? Will Google provide legal counsel if I get sued for using Songbird to provide spatial audio in a game?
- thowfaraway 9y agoEli, I think you started with a reasonable question, but then followed it up with an unnecessarily passive aggressive question.
- yorwba 9y agoIt's a valid concern though. People have been sued in the past for patent infringement resulting from using libraries provided by Google: http://www.x-plane.com/x-world/lawsuit/details/ http://www.x-plane.com/x-world/lawsuit/details/
- jcelerier 9y agonot when you know that Creative sued some companies to death : https://en.wikipedia.org/wiki/Aureal_Semiconductor https://en.wikipedia.org/wiki/Aureal_Semiconductor "On March 5, 1998 Creative Labs sued Aureal for patent infringement. Aureal countersued because they believed Creative was guilty of patent infringement. After numerous lawsuits Aureal won a favorable ruling in December 1999,[1] which vindicated Aureal from these patent infringement claims, but the legal costs were too high and Aureal filed for bankruptcy. On September 21, 2000, Creative acquired Aureal's assets from its bankruptcy trustee for US$32 million. The purchase included patents, trademarks, other property, as well as a release to Creative from any infringement by Creative of Aureal's intellectual property including A3D. The purchase effectively eliminated Creative's only competition in the gaming audio market. It also eliminated any requirements for Creative to pay past or future royalties as well as damages for products which incorporated Aureal's technology." Aureal's tech was based on HRTF which is a different (now expired IIRC) patent than Ambisonics though;
- deleted 9y ago[deleted]
- deleted 9y ago[deleted]
- olleromam91 9y agoThis is neat! Can you share what techniques you are using for reverberation processing? Early and diffuse reflections?
- drewbitllama 9y agoWe're using a room acoustics model that captures early and late reflections based on the acoustic properties (dimensions and materials) of the room. :)
- science404 9y agoWorth mentioning that this is just a box-shaped room. How many early reflections are calculated?
- drewbitllama 9y agoHi Science404, yes indeed we're launching with the standard shoebox for now, but obviously we're thinking about the future too. :) Currently we calculate listener-based 1st-order reflections, optimized for performance. Once the ecosystem out there gets faster, we can explore fancier methods. ;) You can see this in EarlyReflections.js Cheers, Drew
- macawfish 9y agoWoah!!! This is perfect for a project I'd like to do....
- toomim 9y agoHow is this better than PannerNode, which is built into HTML5? I can hear the difference in the demo, but can someone put words to it?
- moolcool 9y agoI think part of it is room simulation. I might be wrong, but I don't think PannerNode supports things like the room materials like in the 2nd demo
- jcelerier 9y agoTo properly enjoy ambisonics you need a system with multiple loudspeakers like this https://www.york.ac.uk/media/electronic-engineering/postgraduate/pasted%20image%200.png https://www.york.ac.uk/media/electronic-engineering/postgrad...
- adzm 9y agoI've had lots of trouble with WebAudio and rendering to a file as output, though that was in the infancy of the relevant technology. I can't seem to find any information on this for Songbird nor Omnitone, though, but if it works it opens up a bunch of possibilities.
- TheRealPomax 9y agoEverytime I see something like this rolling out of Google, all I can think is "if only this was a real project, and not yet-another-Google-shop-project". And no, that's not fair towards the people who make it, but then the entire thing is clearly marked as copyright Google, not copyright the people who deserve the credit, so Google doesn't even want me to think of this as something cool made by cool people, but another library pumped out by Google for the betterment of a market position.
- voiper1 9y agoWhat's bothering you? Google apparently allows people to make awesome stuff during business time, and then released it under Apache License 2.0, which seems to be a pretty permissive license (https://github.com/google/songbird/blob/master/LICENSE https://github.com/google/songbird/blob/master/LICENSE) It may not get the attention it deserves, but no project is guaranteed to have a maintainer-for-life.
- TheArcane 9y ago>allows people to make awesome stuff during business time Isn't that R&D? A lot of comapnies do it.
- TheRealPomax 9y agoMostly the part where it stays a Google project, and despite Apache licenses, no one can contribute without signing a CLA that discriminates against any developer without a phone or a permanent address. "The lawyers insisted" means I don't like the way you think you're releasing useful code into the world when you're really presenting something you locked down so hard people need to give you their direct personal information before you let them help make it better (Facebook does the same thing, which is why I don't contribute to their projects despite loving quite a few of them and using them daily).
- mnsc 9y agoHad my headphones on backwards and got confused when I moved the S and L around. The S was obviously the "Subject"/me, but I couldn't figure out what the L was for. I settled for "Loud thing".
- drewbitllama 9y agoHaha. Actually, you might have had your headphones on correctly all along. S was "Source" and L was "Listener". I've added some clarification to the examples. Thanks for testing it out!
- dharma1 9y agoAre there any FOSS tools for capturing custom HRTFs? With photogrammetry for instance? I found a paper using a Leap Motion for a custom HRTF capture, but they didn't publish any code https://home.deib.polimi.it/antonacc/pubs/ICASSP_16_2.pdf https://home.deib.polimi.it/antonacc/pubs/ICASSP_16_2.pdf
- mycall 9y agoI'm so glad ambisonics is finally getting its day.