Skip to content

refactor(audio): Split audio module into modular files #140

Closed

Description

@m96-chan

Problem

Audio module is 5859 lines total across 3 files:

  • native/ops/audio/audio_kernels.cuh (2023 lines)
  • native/ops/audio/audio.cu (2009 lines)
  • src/pygpukit/ops/audio.py (1827 lines)

Proposed Structure

Native (C++/CUDA)

native/ops/audio/
├── stft/
│   ├── stft.cu
│   └── istft.cu
├── mel/
│   ├── mel_filterbank.cu
│   └── mel_spectrogram.cu
├── features/
│   ├── mfcc.cu
│   ├── chroma.cu
│   └── spectral.cu
├── effects/
│   ├── pitch_shift.cu
│   ├── time_stretch.cu
│   └── filters.cu
├── vad/
│   └── vad.cu
└── common/
    └── audio_common.cuh

Python

src/pygpukit/ops/audio/
├── __init__.py
├── stft.py
├── mel.py
├── features.py
├── effects.py
└── vad.py

Benefits

  • Each file < 500 lines
  • Clear separation by audio processing stage
  • Easier maintenance and testing

Related

Activity

  1. m96-chan commented on Dec 30, 2025

    @m96-chan
    OwnerAuthor

    Completed in PR #168

  2. added a commit that references this issue on Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions