Skip to content

A Law #924

@dvisockas

Description

@dvisockas

🚀 Feature

I would like to propose adding of A-Law to torchaudio.transforms

Motivation

A-law is a companding algorithm similar to mu-law (that is already in torchaudio). It is used in European 8-bit PCM systems. By convention, A-law is used for an international connection if at least one country uses it. With these transforms torchaudio would
enable even wider modelling capabilities of telephony audio.

Pitch

I imagine the API could be almost identical to MuLaw with one caveat - the compression parameter A would be an additional parameter. So at the end there would be two additional transforms ALawEncoding and ALawDecoding.

Additional context

I have already written the code and would be happy to open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions