

Even for those mics that haven’t this feature to play audio as microphone input. These steps will also permit you to obtain music from a limited number of Mic.

If you are wondering that playing music or audio effects through your Mic is impossible without buying an audio mixture, then you are wrong.


But playing music through the mic like the YouTubers is very expensive.īecause you will need to buy some expensive stuff like Audio Mixture, Audio Mixture can play some cool audio effects or music through the mic when you are still talking. Recorder.Have you ever seen Youtubers who play music through mic and add audio effects while talking? That’s awesome, isn’t it? I can indeed say that you also want to know how to play music through the mic. Recorder.reset() // You can reuse the object by going back to setAudioSource() step Recorder.start() // Recording is now started Media Recorder example: MediaRecorder recorder = new MediaRecorder() tDataSource(getApplicationContext(), myUri) tAudioStreamType(AudioManager.STREAM_MUSIC) MediaPlayer mediaPlayer = new MediaPlayer() There are other ways to play and record audio but they are more complicated. Further develop your algorithms to make it more efficient but you get the idea.įor the music playing and recording part you should use Media Player and Media Recorder. Use Media Player getCurrentPosition() to get the current playback time and display lyrics from your arraylist at the time it should appear on the screen. For the lyrics part, while there are many ways to implement it, one way is to store phrases from your lyrics in an arraylist of strings and display each phrase at its specific time while the song is playing.
