ACCEPTED: Creating cross-platform room correction for Kodi

  Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
da-anda Offline
Team-Kodi Member
Posts: 5,777
Joined: Jun 2009
Reputation: 77
Location: germany
Post: #31
in combination with retroplayer/gameplayer it would be cool to have something like a "sing star" game with mic support Smile
find quote
zag Offline
Retired Team-Kodi Member
Posts: 4,006
Joined: Oct 2007
Reputation: 75
Location: UK
Post: #32
Updated the first post with the code

https://github.com/AchimTuran/adsp.xconv...its/master
find quote
AchimTuran Offline
Team-Kodi Member
Posts: 545
Joined: Jan 2014
Reputation: 13
Location: Germany
Post: #33
I've updated the first post with a link to my GSoC documentation.

For further development I will open a new thread and inform anyone here with the link.

Latest news about AudioDSP and my libraries are available on Twitter.

Developers can follow me on Github.
find quote
Gadgety Offline
Junior Member
Posts: 12
Joined: Dec 2012
Reputation: 0
Post: #34
Wow, this is a thrilling project. Really outstanding. That said, htpc multi speaker room correction is a huge challenge, both in terms of time alignment and frequency correction.

Renne mentioned REW, and you're probably familiar with the following projects, driven by knowledgeable audio engineers, several of whom have published research papers in the field and who embrace open source technology:

Denis Sbragion's open source http://drc-fir.sourceforge.net/
PORC, https://github.com/zzzzrrr/porc
Alan Jordan's http://www.alanjordan.org/DRCDesigner/He...eset.html.
Anders Torger's BruteFIR convolution and filters software http://www.ludd.luth.se/~torger/brutefir.html; http://www.ludd.ltu.se/~torger/almusvcu.html
Lastly there's Ralph Glasgal's ambiophonics project. With the objective to recreate live sound as closely as possible he's created free software that could be used in a home cinema set up, and could be interesting also in your project. He's willing to share both knowledge and technology because he's on a mission with 4 and 6 channel audio from 2 or 5.1 or 7.1 source material. : http://www.ambiophonics.org and free software http://www.ambiophonics.org/PCMac.html and http://stackingdwarves.net/public_stuff/...ftware.pdf
(This post was last modified: 2015-12-09 00:40 by Gadgety.)
find quote
magnumopus Offline
Junior Member
Posts: 18
Joined: May 2014
Reputation: 1
Post: #35
Would it be possible to use an android phone hooked up via bluetooth as the microphone?
find quote
AchimTuran Offline
Team-Kodi Member
Posts: 545
Joined: Jan 2014
Reputation: 13
Location: Germany
Post: #36
(2016-01-27 03:30)magnumopus Wrote:  Would it be possible to use an android phone hooked up via bluetooth as the microphone?

That's currently hard to say, bacause I didn't use a bluettoth connection until now for measuring. But I doubt that this approach will create good results, because the mobile phone microphones are not very good. You should use a high quality microphone and a good sound card.

If the phone could manage to register his microphone input as a generic device at the host operating system from Kodi. Then it would be possible with PortAudio, which is what I used for this GSoC project.

Latest news about AudioDSP and my libraries are available on Twitter.

Developers can follow me on Github.
find quote
detlev24 Offline
Junior Member
Posts: 14
Joined: Nov 2011
Reputation: 0
Post: #37
(2016-01-27 03:30)magnumopus Wrote:  Would it be possible to use an android phone hooked up via bluetooth as the microphone?
As wisler said, inaccuracy - especially from hardware - would be too high. On Android you can get the most accurate results via "AudioTool" which allows to use a calibrated Dayton Audio iMM-6 microphone. But even after calibration, as described by the software developer, the phone's hardware will cause inaccuracies and these may vary significantly from device to device.

To get accurate results you really need good measurement hardware and software!

Regarding Bluetooth, one would probably need to dig deeper, e.g., into the proprietary "aptX" (Lossless - and its latency) to ensure it is suitable for measurements...
(This post was last modified: 2016-02-05 12:04 by detlev24.)
find quote
leonpierresusan Offline
Junior Member
Posts: 11
Joined: Mar 2015
Reputation: 0
Post: #38
(2016-02-05 11:30)detlev24 Wrote:  
(2016-01-27 03:30)magnumopus Wrote:  Would it be possible to use an android phone hooked up via bluetooth as the microphone?
As wisler said, inaccuracy - especially from hardware - would be too high. On Android you can get the most accurate results via "AudioTool" which allows to use a calibrated Dayton Audio iMM-6 microphone. But even after calibration, as described by the software developer, the phone's hardware will cause inaccuracies and these may vary significantly from device to device.

To get accurate results you really need good measurement hardware and software!

Regarding Bluetooth, one would probably need to dig deeper, e.g., into the proprietary "aptX" (Lossless - and its latency) to ensure it is suitable for measurements...

I agree this would probably be a problem. However, if you were to use bluetooth/wifi to trigger audio on the host, instead of actually sending the audio data from the phone, some of the issues (such as distortion caused by the compression) will be solved. The microphone on a mobile phone is still not good enough for accurate measurements, but things like relative volume, delays between channels and rough frequency response, could probably be measured with enoughaccuracy.
find quote
detlev24 Offline
Junior Member
Posts: 14
Joined: Nov 2011
Reputation: 0
Post: #39
(2016-02-05 13:36)leonpierresusan Wrote:  [...] but things like relative volume, delays between channels and rough frequency response, could probably be measured with enoughaccuracy.

Well, have a look at "Smartphone als Schallpegelmesser" from Swiss Federal Office for the Environment - unfortunately, mainly in German (summary in English) but with many pictures. Wink
(This post was last modified: 2016-02-05 18:34 by detlev24.)
find quote
Squizzy Offline
Junior Member
Posts: 11
Joined: Sep 2010
Reputation: 0
Post: #40
Will this be released anytime? I have a Logitech z906 without room correction. Would be nice to have it in kodiSmile

But how does it work with pass through sound which is decoded by my Logitech ? Will it work ? Or is it necessary that my raspberry pi 2 decode dts/ac3 and send it as pcm or something like this. Does the Logitech recognize pcm as 5.1? Or does it work via toslink?
(This post was last modified: 2016-02-21 12:52 by Squizzy.)
find quote
Kib Offline
Team Kodi 🐤 Member
Posts: 5,011
Joined: Jan 2010
Reputation: 87
Location: The Hague
Post: #41
The necessary infrastructure in core to support binary ADSP add-ons has been included in Kodi 16.

Quote:Other Important Changes:
• Start of integration of ADSP (Audio Digital Signal Processing) handling (no add-ons shipped yet)
find quote
rykios Offline
Junior Member
Posts: 42
Joined: Jun 2014
Reputation: 3
Post: #42
A giant step for KODI, the day when a computer will be the center of home theater, and no AVR will be necessary. No other equipment will be necessary either. All digital via PC
I m sure many more are waiting for that day, hopefully very very soon Smile
Thank you guys for your work
find quote
hemiutut Offline
Junior Member
Posts: 7
Joined: Mar 2016
Reputation: 0
Smile  RE: ACCEPTED: Creating cross-platform room correction for Kodi
Post: #43
Hoping that this soon ADSP XConvolver for Windows 10 Shy
find quote
Squizzy Offline
Junior Member
Posts: 11
Joined: Sep 2010
Reputation: 0
Post: #44
(2016-04-04 20:07)hemiutut Wrote:  Hoping that this soon ADSP XConvolver for Windows 10 Shy

/push

would love to see the whole project on raspberry pi
find quote
Post Reply