Sound detection library for android without using mic - Android Q&A, Help & Troubleshooting

I am creating an android application that plays a beep sound whenever it detects a pre-defined sound. In another way, I have three drum/piano/vocal sequence mp3 file with me which is stored along with the apk assets. After installation, the three files moved to the internal memory. Whenever I play any audio/video in any of the video/audio player(eg:youtube/vlc) on my mobile, if the music sequence of the playing audio matches any of the already stored three mp3 files, Then a beep sound should produce. This is my aim. But I am hard to find such a library to compare music that is playing inside the mobile with another app. Google assistant and Shazam app just listen to audio from the mic and compare the audio. But in my case, I need to compare audio which is the playing device itself.
Note: The app will be running 24X7 by listening to the sounds played on the device. This application is not intended to build an unethical product. This is used for an industrial purpose.
If somebody needs more clarification, I will update the question

Related

Music folder & Voodoo Sound

I love music, so my TW Music player is constantly playing on my Vibrant. And Voodoo Sound just makes it fantastic.
Two questions:
1 - How do I exclude some MP3 files from the TW Music player?
I have some Podcast and Audio books that I do NOT want to play while listening to music. I have try placing them in the external SD as /books and /podcast but the TW player still adds them.
2 - Is there a way for Voodoo Sound to work through Bluetooth headset?
I like to be wireless, so the phone stays in the pocket or on the desk. And I'm still able to talk or listen to music while roaming in the office. My bluetooth is from Jabra, link below.
http://www.jabra.com/sites/mobile/na-us/products/pages/jabrabt3030.aspx
Vibrant on Bi-Winning V2
1. Put the mp3's that you want to play into a playlist, or move them to another folder and put a period in front on the folder name, for example ".other mp3 songs" or just create a blank file named ".nomedia"....that's right, no name, just the extention .nomedia
2. I don't think so, I think bluetooth uses a different sound aligorithm when broadcasting...I might be wrong though :/
You could put a .nomedua file in the directories you don't want the music player to access, but then other apps may not see the files.
As for Bluetooth, no it's not possible as that doesn't use anything voodoo sound related (i.e. voodoo sound uses the analog headphone sac, while the sac for Bluetooth is located on the headset and is different).
Sent from my SGH-T959 using XDA App

[Q] Sound redirection

Hello
I have a car sound system that includes bluetooth support. When I do a phone call, the system mutes FM, or switches MP3 player to pause, and pushes the voice call to loudspeakers.
I have a problem with all GPS software: they put sound out to media stream. Media stream can be read by my sound system, but only when ... reading media stream. When sound system is configured to play radio from FM, or read MP3, it iwll ignore media stream from BT.
=> I need to redirect, on phone side, either, all media stream, or, all stream from selected softwares (Gmap, Navigation, ABE, Trapster ... ) to, either Ring stream, or VoiceCall stream.
Are there existing apps doing this ?
Does kernel support dmix ? I know what I need can be done on a desktop Linux using Alsa-Dmix
For those who did not know there are several sound streams on their phones, install from Market any Volume Control application ... (I prefer the one with a blue circle logo).
I have installed LinuxInstaller, and run things in the background. I am looking at ALSA ATM. I have all Linux options in hand, but I am not sure Alsa can be managed via chroot; and I am not sure Dmix is supported anyway ...
Tanks for help.
Please use the Q&A Forum for questions Thanks
Moving to Q&A

[Q] Volume control and Endomondo (strange problem)

I'n on stock. Android 2.3.4 - Atrix (european model).
I've met the following (very strange) problem when using Endomondo.
[Endomondo is a sport tracker and has a coach assistant that tells you the time and distance. Furthermore, before starting the workout you can start the phone music player by pushing a button in Endo's main screen.]
The problem is this:
1) If I use the default music player (which is internally called Connected Music Player - CMP.apk), when the time comes for the annunciation (lap time) both music and the audio coach are muted.
I can see that, during the coach notification, the phone volume is automatically changed to zero. After the (inaudible) annunciation the volume comes back to normal.
But using alternative music players things change.
2) Poweramp (trial): I can hear the coach notification. The music is completely muted during the announcement. Music's volume resumes after that. The problem is that Poweramp is not recognized as an alternative music player and I can't set it as the music player started by the Endomondo app music button.
3) musiXmatch (free): It works as I think Endomondo devs intended a music player to work. The music is not completely muted during the announcement but its volume is reduced so that it stays in the background during the coach notification, that is so clearly audible. The music volume comes back to normal after the notification.
After installing it, launching Endomondo and pressing its music button I had a dialogue box asking which music player to use (the default one or the newly installed musiXmatch). I chose the latter one and checked the "always do that" option. So everything is fine with this music player.
It seems that the problem is on the way Endomondo access the phone volume and how it affects both the music player (in the cases 1 and 2) and the coach's voice.
My question: does anybody know if there is there some (hidden) android setting that can fix this issue?
I'll up! your post as I use the same pair of apps, i.e. endomondo (pro) + power amp (full) both latest versions, but came across one more issue in addition to yours, maybe someone could help
I'm on leedroid GB running on htc evo3d gsm and found out that audio trainer behaves in a strange way: the initial sequence "prepare to start, free your endorphins" is the same volume level as poweramp music, but during interval comments (every 1km) music from poweramp gets much louder, as if endomondo caused music app to play at that high level. Don't know which setting might cause this. Endomondo is rather obscure when it comes to audio options, while poweramp just overwhelmes me
I'd buy a beer if there was someone who might answer your problem as well as mine..
well, Id like to know whether endomondo recognizes songs played by poweramp?

Downmix to mono audio (for headphones) possible?

I have an .avi file with a 5.1 audio stream, but the stream is messed up - most of the sound is coming out of the FR channel, because it was improperly encoded from a mono or stereo source. I can watch the video ok on a pc if I use gomplayer and set up AC3 decoder to downmix to mono - the audio from all channels is mixed and played through L and R channels of headphones.
The Question is:
Does android have an app or a plugin to downmix to mono audio, for Nexus 7?
I know Voodoo control panel can do this, but it doesn't work with N7.
I also tried a number of players -
mx player, mobo player pro, moboplayer, dice player, vplayer, rock player lite, bs player. There may have been a few more I don't recall at the moment.
None of these players have the option to downmix to mono.
Can anyone help please?
Thanks.
Forgive me, I'd like to bump the thread to see if anyone knows of a more elegant solution.
Try DSP Manager's Headset Virtual Room Effect and select a room type that sounds best for you. I am deaf in my left ear so I needed all my audio downmixed to mono and this did the trick.
edditnyc said:
Try DSP Manager's Headset Virtual Room Effect and select a room type that sounds best for you. I am deaf in my left ear so I needed all my audio downmixed to mono and this did the trick.
Click to expand...
Click to collapse
How does choosing one of the Virtual Room Effect options downmix the sound to monaural? And which option does downmix to mono?
*bump*
I too would love mono mix sound!
Stereo-to-mono effect on Windows PC and Android
First of all, a free audio-player app called AIMP on Google Play, Android, has a Settings -> Sound -> Output -> "Mix to mono" setting, which will be useful for this need.
Secondly, while I don't know which Android app he's talking about, edditnyc is most probably right, because on a Windows PC, and depending on the sound card, you can right-click the speaker icon in the system tray (bottom right corner), click Playback devices, right-click Speakers, click Properties, click the Enhancements tab (if it doesn't exist then perhaps the sound card doesn't support the feature or the latest drivers for the sound card aren't installed), scroll down and tick Headphone Virtualization. And while this does not downmix stereo or others channels to mono, it does something that emulates this effect of mixing stereo to mono on the PC; it allows you to hear sounds that are originally only playing on the left speaker, for example, on the right speaker. And to the best of my knowledge, this should work with all sound that plays from any program on the computer, including audio players, video players, and games.
Hope this helps those who need this for technical issues or for unilateral hearing loss, at least until Microsoft and Google start to recognize this need in their accessibility settings.

Looking for a Specific Sound Recording App

Hi! I'm looking for a specific sound recording app which:
1. Records what sound my Phone releases (either via Speaker or Headset)
while
2. Not recording the background sounds (or white noises, specifically).
also
3. Saves the recorded song as an MP3 (or even better, a High-Quality MP3 Sound Recorder)
Reasons:
I'm playing this awesome Japanese Rhythm Music game and I love this one song, but when I tried finding the Song in Google as an MP3, I couldn't find it...
So I tried recording it via those Recording App on Play Store, but when I finished recording, they also recorded white noises (cars driving, people talking including me).
I want to record only what sound my Phone purely releases, and not with any white noises... Anybody care to suggest some of them?

Categories

Resources