Vikas

Results 6 comments of Vikas

i solved this issue by enabling accessibility service and used VOICE_RECOGNITION. quality is good only on one side. other side its bit low sound. because it using mic

``` int source = MediaRecorder.AudioSource.VOICE_COMMUNICATION; if (Build.VERSION.SDK_INT >= 29) source = MediaRecorder.AudioSource.VOICE_RECOGNITION; mCallRecord = new CallRecord.Builder(this) .setRecordFileName("Record") .setRecordDirName("mobile") .setRecordDirPath(Environment.getExternalStorageDirectory().getAbsolutePath()) .setAudioEncoder(MediaRecorder.AudioEncoder.AMR_WB) .setOutputFormat(MediaRecorder.OutputFormat.MPEG_4) .setAudioSource(source) .setLogEnable(true) .setShowSeed(true) .setShowPhoneNumber(true) .build(); ``` ``` import android.accessibilityservice.AccessibilityService;...

nothing just audio source i have changed. this is not a permanent fix i guess. im still looking for permanent fix because audio captured using mic

@A0shashen00 add this line in manifest application tag if you want to save in storage directory instead of cache directory android:requestLegacyExternalStorage="true"

@erpriyesh it happens with some device or even you use earphone. so no full proof solution i got on this. only samsung device i saw this working properly,

@MasterKali06 You can't "start" the AccessibilityService as they are not like other services where you can control their start/stop. Rather here the Android system controls starting and stopping them based...