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.


curso-r/torchaudio documentation built on May 4, 2023, 2:27 a.m.