Hi there, fellows HOX users,
There were several topics about HOX's poor audio quality when capturing video or recording through voice apps, but still, there weren't any solutions how to solve the lack of frequencies down below ~100-200hz.
I have experience working with sound production, recordings, so I know that these limitations are only made by software. In that case, there must be some kind of solution to improve audio recording quality and enjoy HOX at 100%.
I tried editing srs_global.cfg (found in /system/etc/soundimage) (there was a guy who tried to improve the sound of the phone's loudspeaker and he kinda managed to do it by editing the file), by changing high-pass filter frequency in every "device"
//BLOCK: (srs_hpf_0) HiPass - Device 0
//=-=-=-=-=-=-=-=-=-=-=-=-
srs_hpf_0:hipass_order = 4 // Filter Order -
srs_hpf_0:hipass_frequency = 60 // Filter Frequency -
srs_hpf_0:hipass_is32bit = 1 // Filter Precision (16bit when 0) -
srs_hpf_0:hipass_skip = 1 // Skips High Pass Filter when true - toggle
Click to expand...
Click to collapse
but there aren't any results.
I don't really understand the types of devices and that they do (WOWHD, TruEQ, CSHP and so on).
Maybe there is any other cfg files who process audio input, because it's the same high-pass filter when recording on internal mic and with external 3.5mm mic.
Let's try to solve this problem everybody, because, as HTC support said
HTC is not designed for capturing things in loud environments
Click to expand...
Click to collapse
Yeah, whatever... It can do it!
STIFF. said:
Hi there, fellows HOX users,
There were several topics about HOX's poor audio quality when capturing video or recording through voice apps, but still, there weren't any solutions how to solve the lack of frequencies down below ~100-200hz.
I have experience working with sound production, recordings, so I know that these limitations are only made by software. In that case, there must be some kind of solution to improve audio recording quality and enjoy HOX at 100%.
I tried editing srs_global.cfg (found in /system/etc/soundimage) (there was a guy who tried to improve the sound of the phone's loudspeaker and he kinda managed to do it by editing the file), by changing high-pass filter frequency in every "device"
but there aren't any results.
I don't really understand the types of devices and that they do (WOWHD, TruEQ, CSHP and so on).
Maybe there is any other cfg files who process audio input, because it's the same high-pass filter when recording on internal mic and with external 3.5mm mic.
Let's try to solve this problem everybody, because, as HTC support said
Yeah, whatever... It can do it!
Click to expand...
Click to collapse
Don't mess with HPF, REALLY DON'T!
I have been experimenting with SRS trumedia 51 and music, HPF messes up when enabled!
these settings you have posted are from SRS_global which won't really do much, install musicBox and you can get SRS working...
There is a reason why you sould not enable HPF without know what values are right, I tried this and it made a mini explosion noise (a sqeek then a loud POP) when starting audio, I highly recommed you do not mess with it. Anyways, SRS will NOT do anything with audio recording, your best place to find audio recording values are in the media_profiles.xml in /system/etc
SRS has nothing at all to do with recording audio, only to output the SRS effect.
I hope this info helps
WOWHD is SRS WOWHD, this is a sound effect which enables a true surround sound experience.
TruEQ is SRS's native EQ settings, not much to say here...
CSHP is SRS CS Headphone. Or as I would like to call it, Dolby Digital 5.1 (Because it IS the exact same effect) (CSHP is only used in srs_truemedia_51) (HTC Enhancer uses this file)
Thank's for your answer.
I can't understand, how nobody is interested in improving audio recording quality, when it's obvious that it's a software limitation thing.
We have an almost perfect phone with good camera, but we can't fully enjoy watching and LISTENING recorded videos, because some "clever" people in HTC decided that it's normal to high-pass the mic and put a compressor on it, without any gain control - in result we have a tragic audio from loud concerts and even LOUD voice conversations (where people are sceaming a little bit).
Maybe someone has a solution?
Maybe HTC will offer switching to a ****ty iphone, which has almost perfect audio recording quality (for a phone)?!
STIFF. said:
Thank's for your answer.
I can't understand, how nobody is interested in improving audio recording quality, when it's obvious that it's a software limitation thing.
We have an almost perfect phone with good camera, but we can't fully enjoy watching and LISTENING recorded videos, because some "clever" people in HTC decided that it's normal to high-pass the mic and put a compressor on it, without any gain control - in result we have a tragic audio from loud concerts and even LOUD voice conversations (where people are sceaming a little bit).
Maybe someone has a solution?
Maybe HTC will offer switching to a ****ty iphone, which has almost perfect audio recording quality (for a phone)?!
Click to expand...
Click to collapse
Thanks for this post....
Hello guys! I'm experiencing sound distortion problems on every AOSP-based rom with android > 4.0 - for example GB, ICS ROMs are ok, but jelly baby/jelly mod/purekat etc. are already have such trouble.
Main problem is that after i increasing volume higher than the "safe level", the sound becomes very distorted (seems like sound pumping after very hard limiting).
I tried to disable\freeze dsp manager, apollo and all that could be causing this, but there is no effect. And yes, after deleting i got clean sound for a while, but a bit later bad sound returning, and only reboot can help for a while again. Also there is very problematic to install some things like viper4android, and poweramp native effects are working very poor (poweramp with sense roms plays pretty much better).
So there is a question - what can i do to made sound just as on the sense roms? Without some kind of sound processors? I just wanted to listen music with poweramp with it's native EQ. Hopefully experienced users of DZ still read these forums. Thanks in advance!
Dear Developers
I have facing problems with my new Mi max 32GB.
The Rom version of my new device is Miui global 8.2 | stable 8.2.1.0
Everything is right without the Sound.
I m very much disappointed with the sound on headphone.
Actually i have another Mi max which i brought 3 months earlier. And Rom is Miui global 7.3 | Stable 7.3.15.0.0
and sound is pretty awesome.
What to do . Please give me a complete proper solution.
I love Xda.
Tauhid
Bangladesh
You use which app for music?
Actually i m talking about overall sound quality.
As example in sound cloud i get awesome sound in my other device but in 8.2 i got very much poor.
smartboydcc said:
Actually i m talking about overall sound quality.
As example in sound cloud i get awesome sound in my other device but in 8.2 i got very much poor.
Click to expand...
Click to collapse
Sound quality is rather good but loudness isn't.
You can get a trade of on that in many ways for music & video it actually depends on your choice. One of the ways is that you for instance disable Mi sound enhancer & use Google play music but it's not a best one. Other method is to use apps (VLC, foobar2000...) that suport OpenSL audio output & enable it this isn't bad but still not the best practice. The best practice is to use sound-volume amplification (gain) in apps (most MMC apps suport it in dB form) & along with Mi sound enhancer & remember if you cross the line with amplification the sound quality falls exponentially 1.8~2.2dB is usually used in studio's as hire volume is actually loo you can go up to 3.8dB not hearing much of distortion after that it is present but no one is stopping you to get it up as much as you like. Xiaomi purposely lowered the volumes in mixer patches as it whose afraid someone will get its hearing damage & lawsuit them. I use Kodi for movies (with 93dB set for a music and 3.8dB amplification set for a movies & pass true) and foobar2000 with DSP resasampler set to 96000 for music & quality is actually really good at least with solid quality budget over the ear headphones that I use (Panasonic HTF295, Superlux HD-668B).
Dear bro i have tried ur system but not working ...thanks
smartboydcc said:
Dear bro i have tried ur system but not working ...thanks
Click to expand...
Click to collapse
Well it works very good in Kodi, not so good in foobar2000.
In foobar2000 you can enable the OpenSL output (warning before doing this revert reply-gain to at least 0db), this way you gain a lot on loudness but lose some quality (as always). I prefer quality & with good headphones & decent quality sources it's good enough for me as I described before & a real pleasure with HiFi lossless flac (I have cuple 24bit 96000Hz ones) one's.
OpenSL is also hardware accelerated so it's not much power hungry.
Best regards.
Try sound booster by goodev to enhance your sounds and add it to autostart.
Sent from my MI MAX using Tapatalk
Flash Modified MIUI Global Stable it have Louder sound Mod and many features. download From here: https://forum.xda-developers.com/mi-max/development/rom-miui-8-global-t3439698
Hey guys...
ScreaMySkrillEX here.
This is an audio mod made for the redmi note 3(kenzo/Kate) which also works on mi max(hydrogen/helium) as both the devices share the same audio codec and streams.
What does my mod do?
It enables dual speaker config on your device and has two variants(htc10/stereo). And there's also a stock version which only tweaks the headphone audio output.
Htc10 version uses both earpiece and loudspeaker for audio output. The output is mono and hence earpiece acts like a mid-range booster and adds more detail to the speaker audio.
Stereo version also uses both speakers for audio output but earpiece behaves as left speaker and loudspeaker behaves as the right speaker.
Instructions.
1) Download the latest zip from the drive folder link below:
https://drive.google.com/folderview?id=0B5ratNhH-7mGU3AtTVFmekE4VG8
2)Reboot to recovery.
3)Flash shox Audio Mod zip.(while flashing the file shows that its made for kenzo/Kate. Don't worry, it will work for your device also xD)
4)Reboot.
5)Feel the shox effect!
Enjoy the music...
If you have any requests or problems, feel free to ask.
I will definitely help you.
And you guys are most welcome for your suggestions.
Read the 2nd post for more info and recommended tips.
Thanks to:
@chdloc - For his biquads app and support. He has thought me many things. A brilliant dev.
@UltraM8 - For his Ainur Sauron audio mod.
@zhuhang - For his viper4android app and IRS samples.
@Albertkuba - For actually informing that this mod works for mi max too. This thread is because of him
@ZeroInfinity - He is the inspiration for me. His works are really brilliant.
Recommended tips:
1)Flash Ainur Sauron audio mod made by @UltraM8 along with this mod for a much better experience.This is currently the best audio mod which is the cleanest..Please thank him for his great work...
Link here: https://forum.xda-developers.com/android/software/soundmod-ainur-audio-t3450516
2)Users who need more tweaking to the audio can use Viper4Android.
3)I have included some of the best IRS samples for viper4android(according to me). So try it out if you are using viper4android for complete control over your music. Extract the zip and place the contents in viper4android/kernel directory of your internal storage.(the zip provided is not recovery flashable).
4)People who use MX player for videos can enable SW audio boost which will further increase the sound levels through speakers without any distortions..
It is recommended not to listen through speakers at full volume for longer periods.. Keep the volume low by 1 or 2 steps from the max.
5)People who think that the present max volume through headphones isn't enough can install viper4android and increase output gain to 6dB in master gate..
My personal Viper4Android settings:
Master power - on
Playback gain control - off
FET compressor - off
Viper DDC - on, set to sennheiser hd558
Spectrum extension - on, set to 1.0
Firequalizer - off
Convolver - off
Differential surround, field surround, headphone surround+, reverberation - all set to off
Dynamic system - off
Viper bass - off
Viper clarity - off
Tube sound simulator - off
AnalogX - on, set to extreme
My earphones :
1) Sennheiser cx180 street-II - daily outdoor use.
2) Skullcandy Ink'D - used rarely.
3) Sony MDR-ED12LP - used when I'm at home.
List of smartphones I own right now:
1) Xiaomi Redmi Note 3(kenzo)
2) Samsung Galaxy S(i9000)
3) Xiaomi Redmi Note 4(Mido)
4) Samsung Galaxy Note(n7000)
CHANGELOGS:-
V1 - initial release.
V1.1 - tweaked the values a bit to further remove the hissing noise as reported by @MurdererFight.(thanks bro for being the first tester and reporting me)
V1.2 - added some tweaks which will truly enable HiFi audio through DAC with the help of a magisk module..now the DAC detects the impedance of the earphone or the headphone connected.this ensures proper voltage levels through the amp for the earphones/headphones.
V1.3 - Merged surround audio mod along with hifi audio..
Enjoy stereo-like sound on your kenzo (earpiece speaker also outputs sound now xD, videos feel more alive to watch now).Thanks to @AgentBuBu for the soundmod.
I just merged his mod with mine..
V1.4 - Changed the earpiece thresholds to remove the crackling sound and readjusted both the speaker sound to the same level. Now enjoy stereo like never before on your kenzo's speakers. Thanks to @Androbots for reporting this.Also made the mod universal by making a magisk and SuperSU version..
V1.45 - Readjusted the values again for both earpiece and loudspeaker to remove distortion completely, increased audio volume through headphone jack without disturbing the quality. So, now there's a very little drop in the audio but the quality is absolute eargasm.
v1.5 - Readjusted and increased the volume of both earpiece and speaker without inducing distortions. The sound level is more than stock now.
And further pushed the volume through headphones for louder volume..Now the stereo feel is amazing..
And included biQuads support for headphones for expert users. Now you can correct the frequency response of your beloved cans, IEMs.
Link for biQuads is here:
https://forum.xda-developers.com/showpost.php?p=70194192&postcount=226
v1.6 - This time made sure to keep the audio levels same at the earpiece and loudspeaker to increase the stereo and ambience.
Very little changes to headphone volume again. Removed some unused codes. Its true stereo now. Enjoy the stereo on speakers like never before
v1.7 - Fixed the messed up headphone gain as reported by @AravindhStanley and now has 2 new versions...
1) Stereo Version - The present version which you guys are using..earpiece acts as the left speaker and loudspeaker acts as the right speaker. The speaker volume and earpiece volume is balanced
2) HTC 10 Version - The new one!!!! it is based on the new HTC 10 loudspeaker audio output.. Its mono but still uses earpiece for sound. But here the earpiece acts as a mid range and bass booster and significantly increases the detail of sound heard through speakers. Here, the loudspeaker is louder than the earpiece. The earpiece just adds detail here. So don't complain about unbalanced audio levels as its kept unbalanced.
This version removes all the audio libs to disable audio offloading to the dsp..Now the audio goes straight to the DAC untouched..
So please flash your audio mods once again after flashing the mod to get them back working.
Now biQuads is fixed by the founder @chdloc himself..So its finally working now....
I recommend all the users to try both the version and keep the ones which you like.
The link to new biQuads is here:
https://forum.xda-developers.com/showpost.php?p=70194192&postcount=226
v1.7fix - This is only for HTC 10 version...Many users would have experienced no audio from the loudspeaker after flashing v1.7(it wasn't intended to work like that). This issue has been fixed. Now enjoy audio on both earpiece and loudspeaker. Loudspeaker has louder volume than earpiece as earpiece just acts like a mid range and bass booster like before.. Enjoy the sound now..
v1.8 - Made significant changes to headphone audio....
Now the audio is decoded at 24bit 192khz..but still the output is 16bit 48khz..wait for the Poweramp to fix it or if anyone knows how to edit audioflinger please pm me...if audioflinger is hacked, 24bit 192khz audio can be made systemwide....
And enabled hardware Dolby and DTS-HPX support...
Use any of the sound mod which has support for them...you will feel a difference..
Nothing much changed in speaker audio..
Reflash your audio mods again....dirty flash
v1.9 - Rebased with the stock mixer_paths.XML and edited it from the start again..its much clean and removed useless codes from the file..
Fixed the bug - in-call voice through speakers even though the phone was in earpiece mode as reported by @AravindhStanley
Finally the mod is universal! One flashable zip for all ROMs and kernels so no hustle of magisk or su versions.
Dropped the HTC10 version as I dint see much potential in it..It will be continued only on demand..
Temporarily removed biQuads support as it requires an in-depth inspection..will include it in the next build..
V2.0 - *Fixed low audio volume on headphones as reported by many....
*Introducing a stock version, which only tweaks the headphone audio leaving the speakers untouched(stock config)
*Reincarnated the HTC10 version as requested by @mahmoudthassan
V2.1 - *added bass filter for earpiece in both htc10 and stereo version to protect the speaker..
*added a bass filter for headphones also to improve bass range which also reduces distortion..
*created an uninstaller for the mod..
V2.2 - *renamed the mod from HI-FI AUDIO PATCH to shox Audio Mod.
*finally implemented biQuads and added my sound signature to the headphone audio output.
*increased the amp volume to 16 to increase output volume.
*included patched kernels also for the mod as it is mandatory.
This is a guide for creating your own biQuads which replaces the existing ones in the mod.
As you all know, biQuads is a set of 5 IIR filters which can be used to enhance the music and also correct the frequency response of the headphones/earphones which you use.
Continue from here only if you know what sampling rate, bit width, lowpass, highpass, peak filters mean. Otherwise google those terms and learn what they are and what they do
So here's how to design your own biQuads and listen the music in your way:
1) Download biQuads flashable zip from the XDA thread here:
https://forum.xda-developers.com/android/software/reference-qualcomm-audio-codec-iir-t3093000
Thank @chdloc for this great work.
2) Flash the zip in recovery and reboot.
3) You will see an app named biQuads in the apps drawer.
4) Open the app and give it root access.
5)As I told earlier, there are biQuads numbering from 1 to 5
6)After every filter you create for every number, tap design biQuad and wait for 20-30sec. You will be redirected to another window where the app check whether the filter is designed correctly or not with a spectrum graph. After that, increase the biQuad number
7) Do the same step 6 again and again from 1 to 5 until your biQuads is ready.
8)Finally, select review filter where you get a final graph and parameters of different IIR filters.
9)Then select save and give your biQuads a name(make sure there are no spaces included in the name). Click accept and the file gets saved in the internal sdcard with the filename you specified.
10)Open the *.coeffs where * is the name you specified for the biQuads in a text editor.
11) Replace IIR2 with IIR0 wherever found and change INP1 to INP2 wherever found.
12) Finally copy everything from the file and replace the contents in the mixer paths(present in /system/etc) under path name headphones. You will find similar lines there which are my biQuads already implemented.(make sure that you file editor has root access)
13) Replace those lines perfectly and align the lines as they were. Save the file when you are done and reboot.
14) Magic.
Hi! I can't download from the gDrive link, it seems not working now...
Kamaal said:
Hi! I can't download from the gDrive link, it seems not working now...
Click to expand...
Click to collapse
Try again..
Thanks. I've been waiting for a dual speakers mod for a long time.
HTC 10 mod version makes the sound output like it's coming out of a can. But the stereo mod is great.
ScreaMySkrillEX said:
Try again..
Click to expand...
Click to collapse
No luck: it's me?
ERR_CONNECTION_REFUSED
Edit: weird, the problem was only accessing from my Mi Max.
Thanks, i'm gonna to try your mod.
Is there a way to make the earpiece speaker louder that default? On the Mi Max, mine at least, it's far quieter than the main speaker, meaning it, doesn't seem like it does much.
This also means that in Stereo mode, the left channel is far more underpowered when stereo content is playing, and it's noticeable.
Cooly568 said:
Is there a way to make the earpiece speaker louder that default? On the Mi Max, mine at least, it's far quieter than the main speaker, meaning it, doesn't seem like it does much.
This also means that in Stereo mode, the left channel is far more underpowered when stereo content is playing, and it's noticeable.
Click to expand...
Click to collapse
Maybe htc10 version is more suitable for this device..
If you have a kernel with sound control, try increasing microphone volume.
ScreaMySkrillEX said:
Maybe htc10 version is more suitable for this device..
If you have a kernel with sound control, try increasing microphone volume.
Click to expand...
Click to collapse
Was the same with the HTC10 version, and I'm not sure if I have a kernel that can do that, and even if I did, how would I go about doing that?
Discovered a bug with this mod. Installing this would disable mic thus any video you record has no audio. Worse uninstalling this mod would not remove the bug. So I had to reflash ROM.
Cocoyg said:
Discovered a bug with this mod. Installing this would disable mic thus any video you record has no audio. Worse uninstalling this mod would not remove the bug. So I had to reflash ROM.
Click to expand...
Click to collapse
I have the mod installed and do not have this issue. my recorded videos all have sound
Mod is working great, but i feel unsafe, any side effect after using call's speaker for a long time?
MM.626 said:
Mod is working great, but i feel unsafe, any side effect after using call's speaker for a long time?
Click to expand...
Click to collapse
Nope, as far as the speaker doesn't distort
????????
hello and kudos for this feat.
but forgive me for asking a stupid question, will this work with bluetooth stereo headphones?
-------
UPDATE
tried it... worked! muchos gracias!
Working but it have a bugs which video recording has no sound and it also break Hi-Res audio playback on PowerAmp alpha build 704. IEM/Headphone left channel volume sometime really quiet while right channel was too loud. I have to unplug and replug audio jack to make both channels working again.
Tested with Mi Max hydrogen 6.0.1 + Audio Technica ATH-IM50/ATH-M40X/Trinity Delta
For anyone who suffer same bugs, replace mixer_paths_wcd9326.xml and mixer_paths.xml in /system/etc and set permission to 0644
thanks for the heads up.
mine is hydrogen on GlobeROM 7.7.20 + Viper4Arise
did not loose audio on video recording.
nougat
Hi,
Will this work on stock rooted nougat based rom 8.5 ? please revert as i m finding it impossible to install viper on nougat for mi max prime helium
satankid said:
Hi,
Will this work on stock rooted nougat based rom 8.5 ? please revert as i m finding it impossible to install viper on nougat for mi max prime helium
Click to expand...
Click to collapse
Viper4Arise is only used to further tweak the settings that this MOD offers.
so i think its just but OK not to install Viper.
also, if you already have a 3rd-party recovery, you can easily flash this.