yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] chdloc:
Short answer is no, the mod should not affect playback levels.

To figure out what's going on with your setup I need to know:

- what ROM are you running?

- which version of the mod did you install?

- are you running any other audio mods that may modify /system/etc/mixer_paths.xml ?

- is the output volume low on all audio players? In particular, what happens when you use Google Play Music with the EQ disabled?

You are right, by default, the recording levels are significantly lower with the mod installed.

I suggest you read the section on "Changing the microphone gain" in the OP.

If you want the same level as on stock you may want to set the recording level DEC6 to around 100 (instead of the default 88).

You can do this with the Aroma installer. Keep in mind, though, that the (white) microphone self-noise gets amplified as well.

That's why I released a newer mod for KitKat that allows for a moderate level of noise suppression.

This new mod will not be available on Lollipop until the relevant sources are released.
[Nexus 5 Android Development] [No_CoDE]:
Hi thanks for ur answer

Well i am using stock room kitkat 4.4.4, i installed the mod for raise up speakers volumen. I am using Poweramp to play music.

I use arome installer, and use both 6db and 12db mod and them i try play music again and i can confirm the volumen dosen't raise up like before. I rollback with an android backup i do before and the sound was normal again.

Sent from my Nexus 5
[Nexus 5 Android Development] chdloc:
To me it seems that the two mods are stepping on each other's toes. The two mods can coexist only if your volume mod (which one?)

merely changes the mixer. Post your /system/etc/mixer_paths.xml file from your "normal" installation to confirm.
[Nexus 5 Android Development] [No_CoDE]:
I am trying to post the file, but from the mobile app i cant figure out how to do that. I will send later from my laptop.

Thank U

Sent from my Nexus 5
[Nexus 5 Android Development] dex willer:
Thank you for your answer and effort. i'll try your suggestion and post the result here.
[Nexus 5 Android Development] [No_CoDE]:
i use aroma installer again, but this time i choose quick install, and now everything its working great. Now i will be testing video audio recording.

Thanks

Sent from my Nexus 5
[Nexus 5 Android Development] YasinOzkan:
Hi,

Im very new to this, I just got a Nexus 5 and wanted to fix this sound issue.

I have read alot posts from this thread and I see that this doesn't fix the call issue (thought I only had 1 friend complaining he could not hear me, other people said it was perfect) but I have some questions.

So this is a mod for camcorder, but does it also fix other recorders ? For example, in Watsap I sometimes speak in a message, or when I use skype, or another recording app like IgCamera.

I also read alot of types like aroma, or L review, so how do I know what I am using ? I just bought this and didnt mod anything, all I know is it uses version 4.4.4.

Thanks in advanced!
[Nexus 5 Android Development] chdloc:
No, this mod does not fix the low TX level issues reported by many. I suggest you read the section labeled "Thoughts on in-call voice quality" in the OP. While there is no true fix (which needs to come from Qualcomm and/or LG) there are some suggestions that may help lower the occurrence of low TX levels.

The "simple fix" has an effect on any app that requests the "CAMCORDER" audio device. Unfortunately, there is no a-priori way to know what device an app developer selects as the app's recording front-end.

The "advanced fix" has an effect on any app that records audio and requests a single audio effect called "Noise Suppression". I have not yet come across an app (other than Google's camcorder with this mod) that requests this setup.

Have you come across another app whose recording quality is poor?

The term "Aroma installer" refers to an easy way to flash software/mods via custom recovery.

L Preview refers to Google's developer preview of their upcoming ROM, which will be called Lollipop (5.0) once it becomes generally available.

Since your phone runs 4.4.4 you are on KitKat.
[Nexus 5 Android Development] aeoveu:
I know the dev has said that they're not going to port the noise cancellation algorithm for the L Preview, but provided we're willing to understand the risks et al, can somebody please make an aroma install for the L Preview WITH 6db and 12db options of noise cancellation?

(I sound like one of those XDA users who don't read or want something incessantly without reading :p )
[Nexus 5 Android Development] chdloc:
I've taken a birds-eye view of the relevant libraries and they seemed to have changed significantly enough that I'm sure that the mod

with moderate noise suppression needs to be built from source.
[Nexus 5 Android Development] aeoveu:
Ah alright. Makes sense. Thanks!
[Nexus 5 Android Development] shayan1103:
great work:good:

waiting for Final android 5;)

___________________________________________

any update for Android 5.0 Lollipop(AosP) ?
[Nexus 5 Android Development] iLockhart:
I used to use this and it worked awesomely! I even posted a video a few pages back... now it gets SUPER distorted, i don't know why... maybe because the custom kernel i'm using? I'm with CodeBlue Kernel.

Thing is, when it was all good i was already using CodeBlue... it must have been some update... can anyone help me? When installing, i choose 6db, and 103 (recommended)
[Nexus 5 Android Development] chdloc:
Do you happen to have any other mods installed that may change audio gains?

To debug this, there are a few things you could try:

By either using the Aroma installer or by editing the file mixer_paths.xml directly reduce the gain from 103 to, say, 70 or 80.

Does it still distort? If it does, then I'm guessing that additional gain is applied at the kernel level. In this case you will have to

find a gain that works for you by trial-and-error.

Flash the mod again. Doing this may revert the changes some app could have applied to the audio subsystem.

Revert the camcorder audio mod first by using the Aroma installer followed by an installation of the "simple" audio fix, i.e. the one without noise suppression.

Try some other kernel, preferably the stock one
[Nexus 5 Android Development] iLockhart:
So, is it better supression of 6dB or 12dB?
[Nexus 5 Android Development] chdloc:
The question as to which value is better is a result of compromise and personal preference.

Without any noise suppression, the camera recording contains a lot of white microphone self-noise.

The more noise suppression is applied the more that noise can be reduced. However, a higher noise suppression

value also results in more non-linear distortion. So you have to weigh suppression effectiveness and perceived audio

quality. I would personally not apply more than 6 dB to a "generic" audio signal with the noise suppression algorithm

that ships with Android.
[Nexus 5 Android Development] iLockhart:
Humm... i think i nailed it. I'm using 6dB of supression and 95dB of gain. I'll test the video-recording to see how the audio behaves. I'll put the results here, later today.

http://instagram.com/p/tXKuXvJCzw/ @ As you can see, this was before it went all distorted by some update i must have made... quality was very good. I hope i can put it like that again.
[Nexus 5 Android Development] shayan1103:
[MENTION=2760454]chdloc[/MENTION] [MENTION=3163883]spacetaxi[/MENTION]

Factory image is up 5.0 :D
[Nexus 5 Android Development] Orbiting234:
Looking forward to this fix for Android 5.0. Can't believe that they released it with this glaring issue still present!

I'd like to be able to take videos and have audio quality better than a RealMedia clip from 15 years ago!
[Nexus 5 Android Development] borchgrevink:
I am using SnapCamera and have set it to use another mic. Seems like the issue is much better.
[Nexus 5 Android Development] Yakandu:
android L preview fix should work on L release
[Nexus 5 Android Development] bas1234rule:
Also waiting for this app to be updated for the final release of android 5.0 :D
[Nexus 5 Android Development] Badd_blood:
Anyone test preview version on final? I'll hold off until confirmed.
[Nexus 5 Android Development] aeoveu:
Flashed it without a hitch. Haven't heard the audio yet, but I assume its working on L as intended.

Note that I'm not commenting on the noise cancelation "edition", but on the first L mod (where noise cancelation is removed altogether).
[Nexus 5 Android Development] spacetaxi:
My N5 ist running rooted stock Lollipop for about 4 hours now. I'll happily provide an updated installer for Lollipop if [MENTION=2760454]chdloc[/MENTION] is willing to rebuild his audio fix from the latest Lollipop source... ;)
[Nexus 5 Android Development] chdloc:
I should be able to start working on a fix for Lollipop this weekend.
[Nexus 5 Android Development] chdloc:
Test version of the "advanced" mod for Lollipop

I finished up a first version of the "advanced" camcorder audio mod for Lollipop, i.e. the one with moderate noise suppression.

It seems to be working fine for me, but be advised that Lollipop introduced significant changes to the audio subsystem, so

we will have to brace ourselves for potential breakage with certain apps.

I have successfully tested compatibility against Google Play Music, Poweramp, and Hangouts calling.

Please PM me if you are interested in offering your services as an alpha tester.

However, I have to ask you to contact me only if you are comfortable using adb to push files to your phone's system partition.

Note that you really do not need to be rooted to install this mod (I'm currently not rooted.).

You have to have an unlocked bootloader, though, to be able to either boot into or install a custom recovery (TWRP).
[Nexus 5 Android Development] DennisDD78:
Hello everyone! If already applied volume boost mod, and then if i try to apply this, camcorder audio fix mod, previous volume boost mod will be lost?
[Nexus 5 Android Development] 5H00T4:
I am so disappointed that they didn't bother to fix the issue in Lollipop 5.0. :(

https://code.google.com/p/android/issues/detail?id=74583
[Nexus 5 Android Development] siksik6:
Agreed. Surely this wouldn't have taken long to implement in the build. Maybe they just want us all to buy Nexus 6s
[Nexus 5 Android Development] chdloc:
Difficult to say what will happen without knowing what exactly the volume boost mod does. My best guess is that the volume boost mod simply modifies mixer_paths.xml. In that case you will have to merge your current mixer_paths.xml file with the one from my mod. Assuming I'm right, you could do the following:

1. Make a complete backup of your phone (always a good idea)

2. Save your current /system/etc/mixer_paths.xml file to your PC

3. Flash the camcorder audio mod and reboot

4. Save the now modified /system/etc/mixer_paths.xml file to your PC

5. Merge the two mixer_paths.xml files from step 2 and 4

6. Push the merged mixer_paths.xml file to /system/etc/ and reboot

7. Keep your fingers crossed
[Nexus 5 Android Development] Matrix_19:
I've made my first video since upgrading to lollipop (my daughter to her dance class)

the sound is awful, while it was great the week before (with the KK audio fix)

I can't wait to fix this issue again

Thank you chdloc for your work !
[Nexus 5 Android Development] gil80:
Can't wait to try your fix on lollipop :)
[Nexus 5 Android Development] fatiko85:
Waiting :)

Great work!
[Nexus 5 Android Development] otavioricciotti:
I tried using L preview mod in stock Lollipop + Franco Hybrid kernel and my headphone got really, really freaking loud (and I can't control volume, it's always at maximum). Reflashed system partition and it's all OK now o/

Crossed fingers for this mod working with our beautiful Lollipop.

Good luck =D
[Nexus 5 Android Development] suchevent:
i'm using the L preview mod with my lollipop+r68 combo and it's working great. i think the issue is on your end, not the mod.
[Nexus 5 Android Development] otavioricciotti:
I tried twice, now with Hellscore kernel. Still getting max volume, even if I set it to 1, it sounds like the maximum loudness possible. It's full volume or mute :/

I'll investigate more and try finding what is the problem.
[Nexus 5 Android Development] RoomTenONine:
Same issue here with multiple kernels...would love to fix this again.
[Nexus 5 Android Development] chdloc:
Try comparing the only two files my "simple" mod changes, i.e. mixer_paths.xml and audio.primary.msm8974.so with the ones that

come with your (working) system. If you are lucky, merging the two mixer_paths.xml files may fix your issue.

I'll release the new mod within the next couple of days, after having heard back from some of the alpha testers.
[Nexus 5 Android Development] slim-95:
Does Google even acknowledge this problem? Ever since at 4.4.4 and now on Lollipop no fix no update. Just flashed the aroma audio fix for the Lollipop and working fine and i thought Lollipop would have fixed this issue. Just hoping that the video recording audio sounds acceptable in a football match tomorrow. Will post videos of the recording audio results if i remember to.
[Nexus 5 Android Development] KL7000F:
hi,

tested on the rapid.

I changed all files and 12 and 6db tested.

6db has a pure white noise, but a good result from the ton.

12db noise has less white, but fluctuations in the sound.

6db is in the short test my favourit. should I send records or can I help you otherwise?

greeting
[Nexus 5 Android Development] chdloc:
Lollipop support added

Full Lollipop support added to OP.

Please note that this mod has been built and tested on Android 5.0.0 (Build LRX21O) running the stock kernel only .

No guarantees can be given that this mod will work with any other ROM/kernel combination. I can guarantee that this mod will not work with any CM or CM-derived ROM.

Please test and report any app incompatibilities. But, please, let's focus on problems with stock LRX21O and kernel.

[MENTION=3163883]spacetaxi[/MENTION] will be providing an Aroma installer soon.

Edit: The Aroma installer is available here. Thanks [MENTION=3163883]spacetaxi[/MENTION] !
[Nexus 5 Android Development] otavioricciotti:
Why not flashable zips? .-.

EDIT: It's time to start reading more.
[Nexus 5 Android Development] varuntis1993:
[MENTION=2760454]chdloc[/MENTION] As far as I can remember android 4.4.2 had hissing noise but it didn't had under water or bubbly like sounds in recording. Can't the sources of 4.4.2 help in removing under water like effects?

Btw I also have xiaomi mi3, it had hissing noise with 4.4.2 got an update to 4.4.4, it still has that hissing noise but no under water like sounds in it
[Nexus 5 Android Development] chdloc:
I'm not sure how much the 4.4.2 sources would help with anything at this point. My mod neither exhibits any "under water like" effects (at least at the 6 dB noise suppression setting) nor any "hissing" artifacts. In my opinion, the camcorder audio is now as good as it is ever going to get, minus maybe a stereo extension in the future (if that's even possible).

With regard to the Xiaomi: OEM's have access to detailed documentation of the audio hardware, firmware, and audio HAL. We do not have that luxury.
[Nexus 5 Android Development] spacetaxi:
Aroma installer of chdloc's camcorder audio fix for Android 5.0.1 stock rom

This is the aroma installer of chdloc's camcorder audio fix for Android 5.0.1 stock rom. Other installers of the fix are available for 5.1 stock rom (see post #627) and 4.4.4 AOSP-based roms (see post #3).

The installer has the following features:

Install camcorder audio fix. You can select the level of noise suppression, microphone gain, mono or stereo recording and audio bitrate. Optionally the stereo playback mod can be installed. You can choose the phone's orientation for stereo playback (micro-usb port to the right or to the left) and the gain levels for ear speaker and bottom speaker. When installing the "advanced" audio fix (6dB or 12dB noise suppression), you can optionally install the prerequisites (tinymix binary and scripts) for chdloc's aMGC implementation. To actually use aMGC you will also have to install the aMGC apk or the Tasker project provided by chdloc.

Install stock audio libs+config. Optionally the stereo playback mod can be installed. You can choose the phone's orientation for stereo playback (micro-usb port to the right or to the left) and the gain levels for ear speaker and bottom speaker. The aMGC prerequisites (tinymix binary and scripts) will be deleted.

Please make a backup of the system partition by using the recovery (e.g. TWRP) prior to installing this zip, so you can just restore the system partition if you don't like the changes. And there's always a (small) risk that something goes wrong when flashing a zip. Anything you do, you are doing at your own risk. :fingers-crossed:

The installer will overwrite the following files:

/system/etc/media_profiles.xml

/system/etc/mixer_paths.xml

/system/lib/hw/audio.primary.msm8974.so

/system/lib/libaudioflinger.so

/system/lib/soundfx/libaudiopreprocessing.so

/system/vendor/etc/audio_effects.conf

Additionally the following file and directory may be installed or deleted:

/system/bin/tinymix

/data/local/tmp/camera/ (containing some scripts)

Please do not forget to post your experiences with this fix! Happy flashing! :)
[Nexus 5 Android Development] v1c70r:
amazing mod!! but what helps me a lot is to decrease mic gain to 80!!
[Nexus 5 Android Development] ShinSgo:
Works perfect with 5.0 and ElementalX Kernel.

Option 3 from Aroma installer.

Great job!
[Nexus 5 Android Development] Matrix_19:
I'm trying the option #2,

the first test is good ?
[Nexus 5 Android Development] donwhall70:
Google can kiss my ass. They know about this and refuse to fix it for whatever reason. Thanks to involved with this :)
[Nexus 5 Android Development] unipower2013:
How to install the fix.

I'm sorry for my ignorance, but how do i install it?
[Nexus 5 Android Development] spacetaxi:
Hm, I'd say: Best way to do it is to ask a good friend who has the required knowledge.

Else you have to search XDA and the rest of the internet for topics like:

- unlocking the bootloader

- flashing a custom recovery (TWRP recommended)

- making a backup of the system partition using the custom recovery

- restoring the system partition in case of problems

- flashing zip packages using the custom recovery

If you've read about and learned these tasks, then you'll know how to flash the audio fix. Unfortunately there is no simpler way.
[Nexus 5 Android Development] fatiko85:
Working perfect in android 5.0 stock!!!!!!!!!!!!!!!!! Option 3 is great!!!!!

THANKS MASTER.

:D:D:D:D:D
[Nexus 5 Android Development] Matrix_19:
Ok I did some tests with the 3 options.

And I'll stick with #2

It's a good balance and not too aggressive noise suppression.

#3 is not bad, but like reported by KL7000F, I can hear fluctuations in the sound in the background (I recorded with a music playing not too far), but of course it's not as bad as stock ;)
[Nexus 5 Android Development] leeemans:
Awesome work. Thanks space_taxi for the audio fix for android 5.0. Tested with elemental X 2.03 kernel no problem works good :good::good:
[Nexus 5 Android Development] tuningsea:
installed on lrx21q and repairs, but lack bass
[Nexus 5 Android Development] spacetaxi:
Thanks for your positive feedback, but let's not forget that chdloc is the developer of this fix. I'm just the packager. ;)
[Nexus 5 Android Development] aeoveu:
Did you enable noise cancelation? What level?

Also, I don't think this will preserve bass cause of the type of microphone - Nokia and htc have good mics (cause of patents).

But it's waaaaaaaaaaay better than the stock setting.
[Nexus 5 Android Development] klarnetk:
need step by step video guide for mod

İt will be great if you add a video for all non root users how to make this mod on their nexus 5 i mean step by step. For example how to root first time nexus 5 then how to bootloader, flash this mod or how using aroma installer ???? İ believe its great job that what you done thanks for it.
[Nexus 5 Android Development] spacetaxi:
Sorry, but I will not make a video for this. Please read some tutorials and learn how to do this kind of stuff (unlocking bootloader, flashing custom recovery, backing up and restoring system partition, flashing zip packages) on your own.

But perhaps there's some other video volunteer somewhere outthere? ;)
[Nexus 5 Android Development] leeemans:
A big thanks to chdloc :good::good:
[Nexus 5 Android Development] aeoveu:
Well - there are a ton of videos and tutorials (never ending, it seems) that tutor how to root and all.

And then, those same tutorials teach you how to flash.

So - no need in duplicating what has been duplicated. :)
[Nexus 5 Android Development] otavioricciotti:
Running 6dB mod now. Audio record is much better than stock!

Do you guys think 12dB worth it?

Stereo recording seems awesome, but will noise cancelation be affected?

EDIT: micgain: what value are you using?
[Nexus 5 Android Development] chdloc:
Only you can make that decision. Try out both and stick with the one that you think gives you the

best compromise between noise control and distortion. I personally would not go higher than 6 dB.

No, it should not.

Let me know if you experience otherwise.

I'm using ADC1=15 and DEC6=103

I picked these values so that the overall gain in the camcorder recording with the mod

matches the one without (stock).
[Nexus 5 Android Development] Galaxo60:
Can someone make a video test in a party, concert, club or near a stereo with high volume to know how the mod performs?, I have the Nexus 5 since almost a year and this is a real big problem for me.

Thanks

:highfive:
[Nexus 5 Android Development] tuningsea:
lrx21o fix work perfect with latest AOSP... good work bro!
[Nexus 5 Android Development] drugusv:
a stupid question :) : how to install this .zip file if on my nexus 5 in recovery mod i don't have option "install update from zip file"?
[Nexus 5 Android Development] spacetaxi:
You need a custom recovery. I'd recommend TWRP.
[Nexus 5 Android Development] hanschke:
very nice and now the installer needs an update ;)
[Nexus 5 Android Development] spacetaxi:
Installer update is under construction and will probably be released in 1 or 2 days.
[Nexus 5 Android Development] GMFalka:
Dismiss my text below. I totally forgot that this mod disable noise cancelling alltogether. :silly:

Hello!

I installed the 8dbi version on a Nexus 5 with fresh Lollipop and im getting some bad white noise.

EDIT: Actually, after listening chdloc sound samples, he has the same amout of noise as me. :/

i made a silent video and an other where "music" is on the background.

Can you guys check it out and tell me if its natural or i f*cked it up somewhere.

Thanks!

R.

Ps.: The strange thing is i get the same amout of white noise when listening to music (or anything else) on the phone speaker.

This is since 5.0 wipe flash.
[Nexus 5 Android Development] Bagle:
wasnt a complete fix but better then notin, ty
[Nexus 5 Android Development] scleone1987:
Thank you for the mod! Really awesome! :D
[Nexus 5 Android Development] and313:
ok i also suffer from the michrophone issue during voice calls and i was just wondering what the persis.audio.fluence.voicecall=true does in the build.prop? was that there before on 4.4.4? i set the dualmic.config to none since people could not hear me before but now on 5.0 if i set it to none again people complain about that they hear their own echo
[Nexus 5 Android Development] spacetaxi:
Installer v2 (stereo + mono)

I've posted a new installer, now including stereo and mono versions of the camcorder audio fix:

http://xdaforums.com/showpost.php?p=56872432&postcount=235

Have fun! :cowboy: