use a diff audio source
This commit is contained in:
parent
4b7c0fb1c9
commit
e71007f9e6
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
|
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||||
<component name="GradleSettings">
|
<component name="GradleSettings">
|
||||||
<option name="linkedExternalProjectsSettings">
|
<option name="linkedExternalProjectsSettings">
|
||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
|
|||||||
@ -212,7 +212,7 @@ class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {
|
|||||||
|
|
||||||
private fun startRecording() {
|
private fun startRecording() {
|
||||||
recorder = MediaRecorder().apply {
|
recorder = MediaRecorder().apply {
|
||||||
setAudioSource(MediaRecorder.AudioSource.MIC)
|
setAudioSource(MediaRecorder.AudioSource.VOICE_PERFORMANCE)
|
||||||
setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP)
|
setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP)
|
||||||
setOutputFile(fileName)
|
setOutputFile(fileName)
|
||||||
setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB)
|
setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user