use a diff audio source
This commit is contained in:
1 parent
4b7c0fb1c9
commit
e71007f9e6
2 files changed
+2
-1
No files matched your search
@@ -212,7 +212,7 @@ class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {
|
||||
|
||||
private fun startRecording() {
|
||||
recorder = MediaRecorder().apply {
|
||||
setAudioSource(MediaRecorder.AudioSource.MIC)
|
||||
setAudioSource(MediaRecorder.AudioSource.VOICE_PERFORMANCE)
|
||||
setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP)
|
||||
setOutputFile(fileName)
|
||||
setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB)
|
||||
|
||||
Reference in new issue
Block a user