yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Cryte-k:
Hello .. I was trying it today and it worked very well. but he lacks an option and if it is possible to add it .. for example today on Facebook I saw a video where I wanted to identify a music then I opened it on a pip window and run the application but I think that when it will recognize a music you cannot Use the speaker, which if Shazam could recognize the music .. if I had that option it would be perfect.
[Android Apps and Games] Quinny899:
Now Playing is not designed to recognise music playing on the device, it's meant for music ambiently playing around you. Use a traditional recognition method like Assistant or Shazam.
[Android Apps and Games] luckyn111:
Hi there, thanks for the amazing app but now when I press recognize the animation just keeps on going without finishing so I can't tell if the app is working or if something I've done is wrong. Can you help me?
[Android Apps and Games] Quinny899:
Try this APK and report back please: https://drive.google.com/file/d/1z-cCN8yfj14oJKbMNVb0bJgkLwT4qdaU/view
[Android Apps and Games] Shakir2004:
Omg same. I had this issue as well. Dk why
[Android Apps and Games] luckyn111:
Did you find any sort of solution or temporary solution?
[Android Apps and Games] Quinny899:
I just sent an APK that may solve it, please try that.
[Android Apps and Games] luckyn111:
Sorry I just saw the link I'll try it and let you know
[Android Apps and Games] luckyn111:
The new version fixed it thank you so much 😊
[Android Apps and Games] Quinny899:
Version 2.0.5

Download from GitHub releases as usual
[Android Apps and Games] yee-yee:
Hi there,

Version 2.0.5 fixed recognition for me, thanks! However, when I try to view the Now Playing history, the app crashes. I'm using a Oneplus Nord (AC2003) on OxygenOS12 with Shizuku. From what I can see, this is the part where it crashes, but I've also attached the full log. Let me know if you need any more information or logs.

FATAL EXCEPTION: main
Process: com.kieronquinn.app.pixelambientmusic, PID: 13375
java.lang.UnsatisfiedLinkError: dlopen failed: library "libSchedAssistJni.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1088)
at java.lang.Runtime.loadLibrary0(Runtime.java:998)
at java.lang.System.loadLibrary(System.java:1656)
at java.lang.reflect.Method.invoke(Native Method)
at de.robv.android.xposed.XposedBridge.invokeMethod(XposedBridge.java:243)
at de.robv.android.xposed.XposedBridge.-$$Nest$sminvokeMethod(Unknown Source:0)
at de.robv.android.xposed.XposedBridge$HookInfo.callback(XposedBridge.java:369)
at LSPHooker_.loadLibrary(Unknown Source:8)
at com.oplus.uifirst.OplusUIFirstManager.<init>(OplusUIFirstManager.java:90)
at com.oplus.uifirst.OplusUIFirstManager.getInstance(OplusUIFirstManager.java:112)
at oplus.android.OplusFrameworkFactoryImpl.getOplusUIFirstManager(OplusFrameworkFactoryImpl.java:629)
at oplus.android.OplusFrameworkFactoryImpl.getFeature(OplusFrameworkFactoryImpl.java:321)
at android.common.OplusFeatureCache.getOrCreate(OplusFeatureCache.java:53)
at android.view.ChoreographerExtImpl.doFrameStartHook(ChoreographerExtImpl.java:234)
at android.view.Choreographer.doFrame(Choreographer.java:897)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1213)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:344)
at android.app.ActivityThread.main(ActivityThread.java:8210)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
[Android Apps and Games] Quinny899:
That looks like OnePlus are injecting something into the app, I can't do anything about that.
[Android Apps and Games] yee-yee:
That's unfortunate... Thanks for the quick reply though!
[Android Apps and Games] chrisrj28:
Was stuck downloading for days but uninstalled and installed the latest version. Got it working now.

Samsung has some aggressive background management that I had to disable for ambient app and now playing and it all works now.
[Android Apps and Games] xeltos:
Android 12 Support? I guess not as Oneplus just now released Beta for Onplus 7 series.
[Android Apps and Games] Quinny899:
Android 12 has been supported since 2.0.
[Android Apps and Games] sebastiano.fuccio:
Afternoon all.

I'm excited to test the app but I have some issue with the database.

I live in Switzerland and as first I defined the Swiss database, which I suddenly discovered was little poor not containing quite a lot of songs I was searching.

I switched to Italian db (I am Italian and I listen also Italian authors) but it's been hours that is trying to download it with pretty much no results.

Unfortunately there are also no details on the running topic and no chances to do anything else but wait.

For the records I already re-started the phone with no results.

I'll be very grateful if you can help me
[Android Apps and Games] Quinny899:
Plug the phone in and/or wait, there's no further advice for this.
[Android Apps and Games] sebastiano.fuccio:
Plug meaning charge it?
[Android Apps and Games] sebastiano.fuccio:
Thanks
[Android Apps and Games] sebastiano.fuccio:
Please add a multi database support
[Android Apps and Games] sebastiano.fuccio:
I'm not able to set the on-demand option ...

I'm having an Oppo find X5 pro and of course I don't have a system-defined Music Recognition Service to set. Do I have a non - rooting alternative?
[Android Apps and Games] Quinny899:
There's no non-root alternative for On Demand if the device does not have the service set already.
[Android Apps and Games] sebastiano.fuccio:
Anyone is aware if is possible in Oppo's Color OS 12?
[Android Apps and Games] sebastiano.fuccio:
The problem I see is the database is pretty limited ... I'm a Jazz fan and I had a sneak peek on Italian and swiss Dbs and there are lot of gaps in this domain
[Android Apps and Games] Quinny899:
It's not possible. Overlay or root only.
[Android Apps and Games] ghembuls:
View attachment 5652243

It worked great, able to recognize same song perform by various people. Tested using youtube on laptop.
[Android Apps and Games] xeltos:
Yey. Let me try it out then.
[Android Apps and Games] xeltos:
Stuck on this screen. Mi A1, Pixel Experience 12.

View attachment 5652623
[Android Apps and Games] Quinny899:
Reboot, if that doesn't work then reinstall.
[Android Apps and Games] Snowblind1991:
You can also try to stop + clean the cache of Music mode app and stop + clean the cache Now Playing app. Usuaaly helps to unstuck it.
[Android Apps and Games] Pyrus01:
Is there a way for the accessibility service for lockscreen information not to get disabled after every reboot? Also, whenever I reboot, the app keeps on loading, I have to force stop the app two times (for some reason) for it to load up.
[Android Apps and Games] Quinny899:
Your second issue is the cause of your first. Force stopping disables accessibility services.

Since the issue is in the system, there's nothing I can do.
[Android Apps and Games] googleygoggles:
Thanks for this, works here on OnePlus 8T on Android 12 with Shizuku. Any chance for it to work on the AOD display? Anyways, here's my experience:

It's not as seamless as I thought it would be... The recognition seems to only work every other song sometimes though even when set to every 30 seconds and adaptive music disabled.

Also, one time the playback was extremely garbled and distorted and it still detected the right song so that was interesting. I enabled alternate encoding and upped the gain 2.0 and will test that and see how it goes.
[Android Apps and Games] Quinny899:
Apps can't overlay on the Always on Display so no. Alternate encoding and gain 2x should fix your recognition issue.
[Android Apps and Games] googleygoggles:
Yeah I was afraid of that, it would be amazing if you could xD. Is it possible to put on AOD with root? Also, alternate encoding and 2x gain seems to have helped a lot. I'll keep testing.

Edit: Definitely helped a lot. Songs are detected within 20 seconds of starting now.
[Android Apps and Games] Quinny899:
Nope, AODs are usually low power things and separate from the OS.
[Android Apps and Games] osm0sis:
I haven't been able to get it consistently working on my 8T. Alternate encoding seems to be necessary, but then I've tried 1.1x gain with some success, but it also seems like at times it still just doesn't record any sound at all when I test recognition.
[Android Apps and Games] googleygoggles:
Try upping the gain to 2.0+. I read somewhere that alternate encoding needs a much higher gain to be heard.
[Android Apps and Games] osm0sis:
I've tried it at 2 and 3 but over half the time the clip is just silence. Most luck I've had so far is with it at 1.1, but it only works randomly. Sometimes it picks up audio played by my 8T (using Poweramp) itself, which it's also not supposed to be able to do. 🤷‍♂️

I'm on OOS11 still, and while I have the now playing and ambient apps on the "don't optimize" battery list, I'm wondering if it's just typical OnePlus background process fu*kery or maybe OOS11 just isn't compatible enough.
[Android Apps and Games] jericho246:
Yes that is weird. I tested this mod on a OnePlus Nord 2T (on Android 12) and the music detection works correctly. I had to enable alternative encoding. And I didn't have to mess with the gain setting

But, unfortunately there's a problem on OnePlus devices that makes the Now Playing History crash :( so I can only see what the last detected song was.
[Android Apps and Games] Kfeer:
Is there any way to add more songs to the database? I still see the same amount of sond in the database (69847)

thanks in advance
[Android Apps and Games] Quinny899:
Only using On Demand. The database count usually stays around 70k.
[Android Apps and Games] Kfeer:
Any way to get on demand recognition on for s22 ultra without rooting?
[Android Apps and Games] dielle27:
Doesn't work on Moto Edge 30 Pro... did anyone menage to let it work on any Moto device (no root).

Thanks!
[Android Apps and Games] rhythm8899:
App is crashing after selecting country

(Redmi note 9 pro) (Joyeuse) (custom rom, pixelos) Android 12

https://bin.kv2.dev/~62e6979008bb984d9dc639be

Please check and tell me what the problem

Please reply
[Android Apps and Games] Quinny899:
Your system is incorrectly reporting the cache directory of the app. I can't do anything about that.
[Android Apps and Games] Logan:
I think we can load the overlay using ThemePark the same method hex installer uses

To load themes
[Android Apps and Games] d3xt3r:
The app works perfectly for me. It's recognising songs accurately. One visual problem i have i don't know if it can be solved or not. When I unlock my screen, then the overlay is still present for a split second when I'm on the homescreen and then it disappears. Is it the intended behaviour. Can it be solved. I have an OCD, and that's the only issue i face from the app
[Android Apps and Games] Quinny899:
Can't be fixed, system limitation. If you're rooted you can use the device info option instead.
[Android Apps and Games] d3xt3r:
Yes sir I'm rooted. Could you guide me what to do. I didn't understand the device info step.

Edit 1: The app didn't ask for su prompt though. I'm using the sui module with this

Edit 2 : I'm on Android 12
[Android Apps and Games] Quinny899:
In the Lock Screen settings there is an option to show it as the Owner Info instead. Enable that.
[Android Apps and Games] d3xt3r:
View attachment 5687175I enabled the owner information part. How can I avoid this duplication of the identified song. Is my settings messed up. Please guide
[Android Apps and Games] Quinny899:
Just turn off the Show on Lock Screen option.
[Android Apps and Games] d3xt3r:
Sorry for troubling but when i am doing the option turn off on lockscreen is directing me to the accessibility settings to turn off the mod. Am i doing it right?View attachment 5687193
[Android Apps and Games] Quinny899:
The accessibility service is not the mod. Yes, disable it. The owner info option is an alternative to the Show on Lock Screen option, as it says.
[Android Apps and Games] Andason74:
Hi. I use this on my Tesla-style car head unit since it does not have a radio widget to display the current song playing on the radio.

The widget of your app is better but quite small. So, is it possible to pull the details from your app using klwp or tasker?
[Android Apps and Games] Quinny899:
Yes, you could pull the data from notifications - that's what the apps that scrobble from Now Playing do.
[Android Apps and Games] Andason74:
thanks. i use the notifications from shazam as well. seemed it would always stop after a short period of time.

thanks for the work on this. will test some more and provide some coffee.
[Android Apps and Games] Andason74:
seems the only thing that will show in notifications is just the title and text. no music or artist. is it possible to pull from the history file?
[Android Apps and Games] Quinny899:
The history database contains what you need but it's in protobuf form. What do you mean by music, are you looking for the raw recording?
[Android Apps and Games] Andason74:
got it. some notifications were silent.
[Android Apps and Games] xhlrh:
Hello.

Is there any Korea database among the databases that can be supported?

I played the same Korean music at the same time on my smartphone with Ambient Music Mod installed(Nothing Phone (1)) and PIXEL 6.

However, only PIXEL 6's NOW PLAYING feature identified the music.

(I set the database country setting for Ambient Music Mod to 'automatic' and downloaded the US)

Considering that US music is well identified, it doesn't seem to be a problem with the app itself, or I use it in the wrong way

Perhaps PIXEL 6 uses a database containing Korean songs (probably a Korea database). It would be great if Ambient Music Mod could use that database as well.

And I want to ask you one more thing, Is there a way to use multiple databases simultaneously?

I also listen to a lot of pop music along with Korean music.

If I use a Korea database (if it exists), I am concerned that pop music will not be identified this time.

Thank you.
[Android Apps and Games] Quinny899:
No, the databases currently listed as options in the app are the only options direct from Google. There is no Korean database.
[Android Apps and Games] xhlrh:
Okay.

Thank you for your quick response.

Maybe I should check another database. Japan or...
[Android Apps and Games] Quinny899:
If you're looking for K-Pop specifically, you might be best with just the US one given the popularity of the genre in the west.
[Android Apps and Games] xhlrh:
No, I don't really like that k-pop things.

I just live in Korea, so I have quite a lot of things to identify Korean music, but I am interested in music other than K-pop.

Anyway, after checking it out, it seems difficult to use the Japanese database. As you said, it would be best to use the US database.
[Android Apps and Games] Quinny899:
Yeah unfortunately the only people who can make a database is Google. If you can get On Demand working on your device, you could manually recognise every song that isn't in the database (which should work), but that is a very slow process. The only other alternative (other than using another country's database) is to wait for Google to add a Korea database - which may take a while, given Samsung and Apple's absolute dominance there. Google has just 0.04% of the market share in Korea.
[Android Apps and Games] xhlrh:
I have no knowledge or skills in that field. And I don't expect Google to care about Korea in the near future. I think I'll just use it to check American music.

I don't know how it works, but I asked because it works on Pixel 6's now playing.

Anyway, thank you for caring about me. Have a good day!
[Android Apps and Games] yot2703:
The app it self working ... But when I tried to save a recording of what he recognized and all I got is noise.

OnePlus 10 Pro

OOS 12 A16
[Android Apps and Games] Quinny899:
Enable the alternative encoding method in the settings.
[Android Apps and Games] yot2703:
Thanks :) worked!

Anyway to make it work on the AOD?
[Android Apps and Games] chriskap:
View attachment 5711029View attachment 5711031I've everything the guide suggest to make on demand working but i still dont get any option to enable it. any workaround for this?
[Android Apps and Games] chriskap:
I'm on android 12 moto's stock
[Android Apps and Games] Quinny899:
Very occasionally there ends up with a .29 bundle on APKmirror that doesn't contain the music recognition split. This is one of those times, this one seems to be the current most up-to-date APK bundle with the required split.
[Android Apps and Games] chriskap:
so i cant update google app after installing this version?
[Android Apps and Games] Quinny899:
Correct. The Play Store will always try to upgrade you away from the build with the split anyway, so this applies to every version you install. As the instructions on GitHub say, if you want to keep On Demand working, you need to install updates manually.

If you don't disable automatic updates on the store or accidentally update to a version without the split, Ambient Music Mod will send you a notification telling you that's happened.
[Android Apps and Games] CharlieMHz:
Anyone managed to get it working on MIUI 12.5 Android 11?
[Android Apps and Games] Hirs_E_Fruit:
Somehow since my A13 Update (Flamingo OS 2.0) on my OnePlus 7Pro the mod is not really working well or its kinda blocking the mikrophone so I cant record Voice Messages in Whatsapp.
[Android Apps and Games] Snowblind1991:
Just stop the mod app and microfone will be working again. It's a small bug, sometimes occurs but you can just stop the mod and then run it again.
[Android Apps and Games] Hirs_E_Fruit:
I tried it did uninstall the mod because I though this was the problem but doesnt help...

It worked one time but not anymore right now... little bit frustrating to find why Whatsapp cant record and send audio anymore since the update
[Android Apps and Games] Quinny899:
Not an Ambient Music Mod bug. AMM uses the hotword microphone, which hands off control to other apps automatically. If it's not doing that, you have a bug in the system.
[Android Apps and Games] WrecKedByPotaTo:
On my S21 with android 12 when I try to recognize a song and the listen to the playback of that recording it is terrible. There is a ton of noise even with completely changing the gain. I can't even pick out a single word. The voice recorder app it come across perfectly but not when using this app. On the shizuku app it has microphone access. Overall the app design is beautiful.
[Android Apps and Games] Quinny899:
Enable Alternative Encoding method in the advanced settings.
[Android Apps and Games] WrecKedByPotaTo:
Is there a way to have Shizuku running without being connected to a Wi-Fi network?
[Android Apps and Games] Quinny899:
Start it over USB. Most devices also work without being connected iirc, it's just Samsung that restricts it.
[Android Apps and Games] wishblue3:
It's all noise I've record

Who can solve this
[Android Apps and Games] Quinny899:
Three posts above yours:

Please use search next time.
[Android Apps and Games] osm0sis:
Overall working great on my OnePlus 9 Pro now that I'm on Lineage 19.1 and not OOS11!

Only weirdness I've noticed is I seem to get a number of false positives of songs I've never heard of, with no music playing in my environment. Any idea what the issue could be or how to diagnose/workaround?
[Android Apps and Games] Quinny899:
I would check the gain, using the playback option to see how much noise there is. Sometimes with background noise it detects stuff incorrectly. Beyond that, not a lot that I can do given it's Google's ML not mine.
[Android Apps and Games] superior888:
Is there a fix for MIUI? Seems it can't catch songs in the background. Works when in the app tho.. Permission problem?
[Android Apps and Games] sumodmenon:
The Music database is taking forever to download latest update. I tried restarting the device as well but it's keeps doing the same due to which the app is unusable. Any fix?
[Android Apps and Games] Quinny899:
Just leave it to download, it will work eventually. The previous database will remain until the download completes.
[Android Apps and Games] superior888:
Why doesn't it work in the background tho.. No restrictions, no battery savings, app locked in background and so on.. i don't get it! Anyone on MIUI that can help?
[Android Apps and Games] CharlieMHz:
I'm not on MIUI, but I remembered that sometimes the setting in the app's info > Battery can reset. You can instead try to check in phone's Settings > Privacy > Go to the right page > Special permissions > Battery optimization (don't remember the exact path but it's something like that) and turn off optimization for both the Ambient Music Mod and Now Playing apps. Then also allow Autostart for them as well if you haven't already.
[Android Apps and Games] superior888:
Okay so, what i did was, made a schedule for the app to open every morning, since then it works flawless. I don't know why but it seems to work. I love this app. Thank you!
[Android Apps and Games] Injector287:
I got the same issue. There is no progress bar and no notification related to downloading. Reinstalled 'now playing' and 'ambient music mod' thrice still no fix xd
[Android Apps and Games] wbs_perso:
I would like to report the same issue.
[Android Apps and Games] pankspoo:
Yes i did here is another log will it help
[Android Apps and Games] dr0idik4:
Here's the log... Thanks for the work so far an help
[Android Apps and Games] Quinny899:
Still nothing useful in there. Only thing I can suggest is if you are using App Whitelist mode in EdXposed to make sure you have whitelisted Pixel Ambient Services, Device Personalization Services, Android and Ambient Music Mod & reboot

exf: startRecognition failed, error=-61

is your error. I've never seen that code before, and it doesn't show up in the sound_trigger source code as far as I can see. Can you send /system/vendor/etc/sound_trigger_platform.xml please? The dump should contain it but the app is corrupting the zips (fixed in next version)
[Android Apps and Games] pankspoo:
Yes start recognition failed.

Ok uploaded

sound_trigger_platform_info.xml

drive.google.com
[Android Apps and Games] dr0idik4:
No as it doesn't seem to exist

View attachment 5280177
[Android Apps and Games] Quinny899:
My bad, sound_trigger_platform_info.xml :)
[Android Apps and Games] pankspoo:
😂😂😂 U asked someone and i given this to you.

Ok i have doesn't enabled any whitelist mode in edxposed please help i didn't understood whats the issue
[Android Apps and Games] Quinny899:
No, I didn't ask you for it. I asked dr0idik4 for it (read the reply again), you are not the only one in this thread.

If you aren't using app mode / whitelist mode, I can't help anymore. The logs don't show anything and your sound_trigger_platform_info.xml file is fine.
[Android Apps and Games] dr0idik4:
There you go
[Android Apps and Games] Quinny899:
Looks like the forum has eaten your XML, you'll need to zip it and send it. I've reported the disappearing XML issue to the admins, hopefully it gets fixed (at least an error before sending would be nice)

Edit: The xml has arrived, thanks. I think, looking at your XML, that the firmware doesn't seem to support it. There's a notable lack of triggers in there (there's not even the Qualcomm generic one), so I don't think it'll be compatible, sorry
[Android Apps and Games] dr0idik4:
That's odd... I think Qualcomm 835 is the processor of my phone.

Is there a clean uninstall mode?
[Android Apps and Games] Quinny899:
Yep, simply remove the Magisk module, uninstall the app and reboot.
[Android Apps and Games] Quinny899:
New version now available:

IMPORTANT: When updating the module (which will force you to uninstall/disable the current module and reboot), the module name will change. Therefore, you are advised to uninstall the previous module as part of this process.

Download on the GitHub releases page here
[Android Apps and Games] Quinny899:
Bugfix release now available:

Download on the GitHub releases page here