functional_gain: Gain (functional)

functional_gainR Documentation

Gain (functional)

Description

Apply amplification or attenuation to the whole waveform.

Usage

functional_gain(waveform, gain_db = 1)

Arguments

waveform

(Tensor): Tensor of audio of dimension (..., time).

gain_db

(float, optional) Gain adjustment in decibels (dB) (Default: 1.0).

Value

tensor: the whole waveform amplified by gain_db.


torchaudio documentation built on Feb. 16, 2023, 9:41 p.m.