mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-12-02 01:48:10 +09:00
14 lines
334 B
Python
14 lines
334 B
Python
import ffmpeg
|
|
from moduls.Log import PRINT_ULTRASTAR
|
|
|
|
|
|
def ffmpeg_reduce_noise(input_file_path, output_file):
|
|
print(PRINT_ULTRASTAR + " Reduce noise from vocal audio")
|
|
(
|
|
ffmpeg
|
|
.input(input_file_path)
|
|
.output(output_file, af='afftdn=nr=30:nf=-30:tn=1')
|
|
.overwrite_output()
|
|
.run()
|
|
)
|