voice-recording

Incoming voice not getting recorded in Samsung S7, S8 and Gionee A1

北城以北 提交于 2019-12-06 12:02:45
I am using this link to record voice when there is any incoming call. Link Url this approach works fine with all device except when i run this code on Samsung S7 , S8 and Gionee A1 The voice of the other side is not getting recorded. Please use this code below to achieve this it works well on all devices. import java.io.File; import java.io.IOException; import java.lang.Exception; import java.util.Date; import java.text.SimpleDateFormat; import android.os.IBinder; import android.app.Service; import android.app.Notification; import android.app.NotificationManager; import android.app

is it possible to mute a call while recording the sound in android

喜你入骨 提交于 2019-12-06 10:36:26
I want to build a app where I want to modulate the sound in a call.I have written a code that record the sound nd play it in different pitch.Now I want this feature while calling.I want to mute the call record the sound then play it with diff pitch.How to mute the call but still record the audio. This answer works to mute your microphone during a call: Boolean isMuted = false; Then in your event, say an onClick AudioManager audioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); if(!isMuted){ if((audioManager.getMode()== AudioManager.MODE_IN_CALL)||(audioManager

Voice recognition fails to work when the voice is under recording

烈酒焚心 提交于 2019-12-04 21:45:19
问题 I am working on a function that when a button is pressed, it will launch voice recognition and at the same time will record what the user says. Codes as follows: button_start.setOnTouchListener( new View.OnTouchListener() { @Override public boolean onTouch(View arg0, MotionEvent event) { if (pressed == false) { Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra

How to send recorded voice in email?

旧巷老猫 提交于 2019-12-04 20:21:24
I am developing a Android Application, In which I need to send voice by email. Ans I want that such flow, record a voice and send mail as a audio file in attachment. and I want that voice should not remaining in phone or SD card. is it possible ? Here is what you need, It works with me....... Uri uri = Uri.fromFile(new File(YOUR_DIR, YOUR_FILE_NAME))); Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(Intent.EXTRA_SUBJECT, "TITLE"); it.putExtra(Intent.EXTRA_TEXT, "CONTENT"); it.putExtra(Intent.EXTRA_STREAM, uri); it.setType("audio/rfc822"); context.startActivity(Intent.createChooser(it

How to Recognise when user START & STOP speaking in android? (Voice Recognition in Android)

徘徊边缘 提交于 2019-12-04 08:01:54
问题 I have done a lot of R&D and gone through a lot of resources to resolve my problem but I have FAILED to get any proper solution. I have developed an app, now i want to add Voice based functionality to it. The required features are 1) when USER starts speaking, it should record the audio/video and 2) when user stops speaking, it should play the recorded audio/video . Note :Here video means whatever user performs within app during that period of time. For example, clicks on the buttons or some

How to compare two audio data?

北战南征 提交于 2019-12-03 17:24:14
I will record my own voice and save them as wav files in my computer. Later on I will speak and computer should match my voice command with preexisting/pre-recorded wav files.. Question: How to check two audio data are equal or there is 80%match between two audio? if(audio1 == audio2) DO Task A else if( audio1 is a bit similar to audio 2) DO TASK B else if( audio1 (80% match) audio 2) DO TASK C end if What is the best way to compare two audio data? Unfortunately you won't get anywhere very quickly just trying to compare audio waveforms directly. There is a huge amount of research on speech and

Voice recognition fails to work when the voice is under recording

别说谁变了你拦得住时间么 提交于 2019-12-03 12:42:33
I am working on a function that when a button is pressed, it will launch voice recognition and at the same time will record what the user says. Codes as follows: button_start.setOnTouchListener( new View.OnTouchListener() { @Override public boolean onTouch(View arg0, MotionEvent event) { if (pressed == false) { Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,"voice.recognition.test"); intent.putExtra(RecognizerIntent

How to check strength (intensity) of audio while recording?

可紊 提交于 2019-12-03 08:16:46
I am working on a voice recorder application. I want to know is there any way to find strength of the audio while recording it. I don't want to save the recording anywhere. I just want to show user if the sound being caught by the mic is louder then a predefined threshold or not. Let's say if the sound being caught in below 2 decibel, it should show "low" in a red canvas. As soon as sound gets louder and passes 2 decibel threshold the canvas should turn green and show "high" message. Is it possible using MediaRecorder or i haveto use AudioRecorder class. And how to work it out. Thanks in

How to Recognise when user START & STOP speaking in android? (Voice Recognition in Android)

拟墨画扇 提交于 2019-12-02 19:51:41
I have done a lot of R&D and gone through a lot of resources to resolve my problem but I have FAILED to get any proper solution. I have developed an app, now i want to add Voice based functionality to it. The required features are 1) when USER starts speaking, it should record the audio/video and 2) when user stops speaking, it should play the recorded audio/video . Note :Here video means whatever user performs within app during that period of time. For example, clicks on the buttons or some kind of animation, etc. I don't want to use Google's Voice Recognizer available by default in the

how to save the recorded audio files in another folder programmatically?

爱⌒轻易说出口 提交于 2019-12-01 21:03:38
i'm trying to save the recorded audio files in a folder that i wanted it to be rather then the default folder. but somehow i failed to do so. my code: Intent recordIntent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); Uri mUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory(), "/Record/sound_"+ String.valueOf(System.currentTimeMillis()) + ".amr")); recordIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, mUri); startActivityForResult(recordIntent, RESULT_OK); it did calls the voice recorder app. and also when i press the stop button, it return to my app and