0

I need to play a specific sound frequency with a specific duration time.

Something like:

MyPlayer.play(440,1000);

Where '440' is the frequency in HZ And '1000' is the duration in milisecs.

Is there any library I can use to do that?

Thanks!

Lastmasta
  • 11
  • 1
  • 4
  • Check these links : http://stackoverflow.com/questions/9106276/android-how-to-generate-a-frequency & http://stackoverflow.com/questions/8698633/how-to-generate-a-particular-sound-frequency – VVB Sep 17 '14 at 04:24

1 Answers1

-2

Android has methods to play frequencies. They are listed in the API. Here you go.

http://developer.android.com/reference/android/media/ToneGenerator.html

BNats
  • 34
  • 8
  • And where can you specify 440 Hz? – CL. Sep 17 '14 at 06:56
  • int TONE_SUP_CONFIRM Call supervisory tone (IS-95), confirm tone: a 350 Hz tone added to a 440 Hz tone repeated 3 times in a 100 ms on, 100 ms off cycle – BNats Nov 20 '14 at 08:11
  • http://developer.android.com/reference/android/media/ToneGenerator.html#TONE_SUP_INTERCEPT – BNats Apr 16 '15 at 05:53