pytorch / pytorch/audio

Add Stereo to Mono Convertions

Open
#877 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue help wanted triaged
Dominant language
Python
Stars
2.9k
Forks
798
Avg merge
58m
Merged PRs (30d)
3

Description

🚀 Feature

Make mono to stereo or stereo to mono conversion

Motivation

You Guys have made an amazing job, but stereo to mono and vice versa is simple, it seems that you missed it,
I think it might be done with simple mean in the channel dim

Pitch

This should be a Simple Transform like ToMono(channel_first=True) which will be in Torchaudio.Transforms

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.

Research direction

Start in the torchaudio.transforms entry point and review how existing audio transforms handle channel dimensions. Define the mono-to-stereo and stereo-to-mono behavior, including channel_first=True, then add coverage for both conversion directions and confirm the transform works on the expected channel layouts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
audio-video-rtc
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.