androidx / androidx/media

Transformation builder doesn't support converting audio files to WAV, though Exoplayer can play WAV.

Open
#2,631 5 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

editing enhancement
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Before filing a feature request:

When filing a feature request:

Replace the content in the sections below.

[REQUIRED] Use case description

I'm building an Audio Production app, and the files I generate will be in WAV format. I'd like to be able to import non-WAV files and convert them to WAV files so I can treat all audio files in the same way. However, DefaultMuxer.Factory() doesn't list WAV files as supported, so attempting to transform into WAV fails.

Proposed solution

Add MimeTypes.AUDIO_WAV to Muxer.Factory#SUPPORTED_AUDIO_SAMPLE_MIME_TYPES and support converting a supported audio file type to WAV, ie

Transformer.Builder(context)
            .setAudioMimeType(MimeTypes.AUDIO_WAV)
            .build()
Alternatives considered

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.