Skip to content

[SES-4096] - Audio notes improvement #1289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ object MediaTypes {
const val IMAGE_JPEG = "image/jpeg"
const val IMAGE_WEBP = "image/webp"
const val IMAGE_GIF = "image/gif"
const val AUDIO_AAC = "audio/aac"
const val AUDIO_MP4 = "audio/mp4"
const val AUDIO_UNSPECIFIED = "audio/*"
const val VIDEO_UNSPECIFIED = "video/*"
const val VCARD = "text/x-vcard"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ fun recordAudio(

try {
val file by lazy {
File.createTempFile("audio_recording_", ".aac", context.cacheDir)
File.createTempFile("audio_recording_", ".m4a", context.cacheDir)
}

recorder.setAudioSource(MediaRecorder.AudioSource.MIC)
recorder.setAudioChannels(1)
recorder.setAudioSamplingRate(44100)
recorder.setAudioEncodingBitRate(32000)
recorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS)
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4)
recorder.setOutputFile(file)
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC)
recorder.setOnErrorListener { _, what, extra ->
Expand Down
Loading