I have now admitted defeat that you cannot use/build a good audio pitch function without using the NDK. Now my question is does anyone know of any good pitch changing code either in a library or some source code for the NDK?
You could have a look at the MicDroid app that does auto-tune, sources available on GitHub: https://github.com/intervigilium/MicDroid
some more info here:
http://forum.xda-developers.com/showthread.php?t=721388
Related
I have problem with changing pitch of audio keeping its duration. I want to change pitch of audio and simultaneously don't change its speed.
I compiled this code but setPitch() method is empty..
Can anyone give me a solution or some hints how to do it using OpenSL ES or other C/C++ code?
I know that java isn't good to do this so I want to do it using C/C++ code.
Sorry for my English! Thanks!
The SoundTouch Audio Processing Library has been developped for that purpose.
It is a great library, but online examples (or documentation) are hard to find. You may have to read the source files to find out how to use it.
This is how it works internally.
You can see the results of a song processed with their library, performing various pitch alterations without altering the tempo here.
EDIT
As of today, I prefer using RubberBand: it usually gives more qualitative results.
I need to modify pitch or tempo of an audio, but need to do them separately. Is there any example in Android for that or any library which provides support for Android.
I want to avoid using NDK/JNI for this, since I am not that good into it.
I have already seen Many libraries, although they have a nice tutorial, but I am unable to import them to Eclipse Android project. Help is appreciated :-)
you could try Tarsos !
Here some cool demo links from Tarsos:
http://0110.be/posts/Phase_Vocoding%3A_Time_Stretching_and_Pitch_Shifting_with_TarsosDSP_Java
http://0110.be/posts/Pitch_Shifting_-_Implementation_in_Pure_Java_with_Resampling_and_Time_Stretching
I would like to edit an audio file. As java doesn't support voice libraries(according to my knowledge), I would like to use juce library for this.
From some resources found in google, I came to know that we can do it using introjucer..
but i couldn't find proper tutorials for making android projects using introjucer. Can anyone help me out with this? Please correct me if i've misinterpreted any concept.
Best Useful library for audio editing is ringdroid: https://code.google.com/p/ringdroid/
Android Audio reference.
http://developer.android.com/reference/android/media/AudioTrack.html is the Android API for handling audio at the lowest level.
Second check out this -> Getting started with programmatic audio
If you dont want to use ringdroid.
Juce Hello world Tutorial : http://jucevst.wordpress.com/2011/08/17/hello-world-with-juce-actually-making-something/
Juce Beginner Tutorial: http://www.rawmaterialsoftware.com/viewtopic.php?f=13&t=10953#p61988
I need to develop a facial features detection application by which I could be able to detect eyes,nose,lips,head along with its face. For this I opted for OpenCV. I had gone through many tutorials and also sample projects. There I could see the usage of haarcascade files through which I could detect the facial features while recording a video. As I know the location of haar cascade file.
But no site could tell me the complete implementation of haarcascade files in OpenCV android project.
Kindly provide me some sites regarding or give me some brief knowledge regarding the same.
That is a good approach for detecting faces using openCV. Since you are using android, you will probably not find code written in java but you can always modal it to work on android too. This is what I believe is the best approach. http://docs.opencv.org/master/d7/d8b/tutorial_py_face_detection.html#gsc.tab=0
http://docs.opencv.org/modules/contrib/doc/facerec/facerec_tutorial.html
This is another detailed use of different approaches using OpenCV.
Hope it helps, if you need help in changing the code you have to post what you've done so far and then I would be happy to help! Cheers!
I'm looking for a way to decode AAC natively to PCM on Android. The decoder source code is at https://android.googlesource.com/platform/external/opencore/+/master/codecs_v2/audio/aac/dec, but I'm not familiar with NDK at all.
1) There's no way of doing this directly using the Android SDK, but can this be done via the NDK?
2) I would especially be interested in a simple way of accessing the decoder from SDK, with a short "bridge" through the NDK. Is this feasible?
3) Would such a solution work all Android versions (1.5-2.2)?
4) I guess I could use http://code.google.com/p/aacplayer-android/ instead, but it looks like this implementation is fairly CPU intensive. Does anyone have experiences with this?
Not sure what the policy is here for answering really old questions but what is working well for me is using OpenSL with the NDK; it comes built in and in fact the NDK comes with an example "native-audio" that demonstrates what you need.
One thing you may look into is the FFMpeg stuff, it is GPL and TuneIn radio posted their mods here: http://radiotime.com/mobile/android#/support/open-source