How to detect when there is some speech near MIC in Android
问题 Question Statement: I want to start recording when there is some Voice/Noise in vicinity of Phones MIC and stop when user stops speaking. Just Like Talking Tom etc. Is there any third party library or some native code to do this? Thanks 回答1: Just add this code to your application and you will detect when user start to speak and when he stops. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Get the minimum buffer size