voice-detection

why the UI does not show till the while loop breaks?

我只是一个虾纸丫 提交于 2019-12-04 16:25:17
this code is answered in Voice Detection in Android Application . It works fine but there is issue that the content of the page does not load until and unless the any voice has been detected and this snippet also makes the app crash few a times public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Get the minimum buffer size required for the successful creation of an AudioRecord object. int bufferSizeInBytes = AudioRecord.getMinBufferSize( RECORDER_SAMPLERATE, RECORDER_CHANNELS, RECORDER_AUDIO_ENCODING ); // Initialize Audio

Voice Detection in Android Application

你离开我真会死。 提交于 2019-11-26 19:39:14
Description My application record sound from phone microphone. I am using android standard classes ( android.media.AudioRecord ) to do that. Application have 2 buttons " Start " and " Stop " when I press start button application start record and when I press stop application stops recording and give me back buffer, with voice data in .wav format. All work fine. Problem I want to change my application in this way, when application start work it begin to analyze sound coming from microphone, if user keep silent application continue to analyze income sound from microphone, if user start to talk

Voice Detection in Android Application

…衆ロ難τιáo~ 提交于 2019-11-26 07:23:33
问题 Description My application record sound from phone microphone. I am using android standard classes ( android.media.AudioRecord ) to do that. Application have 2 buttons \" Start \" and \" Stop \" when I press start button application start record and when I press stop application stops recording and give me back buffer, with voice data in .wav format. All work fine. Problem I want to change my application in this way, when application start work it begin to analyze sound coming from microphone