pytorch / pytorch/audio

specify fmin and fmax for Spectrogram

Open
#3,732 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.9k
Forks
799
Avg merge
58m
Merged PRs (30d)
3

Description

🚀 The feature

specify fmin and fmax for Spectrogram like MelSpectrogram.

Motivation, pitch

We can specify fmin and fmax for MelSpectrogram, but we cannot for Spectrogram.
If we don't want to use frequencies out of specified frequency bands, it will spend extra memory and computation costs.
Also, by this feature, we can make it consistent specifications for Spectrogram and MelSpectrogram transforms.

Alternatives

I don't know the current workaround for fulfilling:

  1. specify fmin and fmax
  2. extract linear filter banks
Additional context

No response

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

Locate the Spectrogram and MelSpectrogram transform implementations and their tests, then compare how frequency bounds are handled. Add coverage for specifying fmin and fmax on Spectrogram and verify that the resulting frequencies are limited to the requested band without breaking existing behavior.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.