首页 > 解决方案 > 无法使用 pysndfx 和 mp3 文件

问题描述

我正在使用 pysndfx 库来编辑 mp3 文件。它在我导入 .wav 文件时有效,但当我导入 .mp3 文件时,

import pysndfx
fx =(AudioEffectsChain()
     .speed(speed)
     .reverb()
     .lowshelf()    
     .highshelf()
    )
infile = 'C:/Users/Lucifer/Downloads/slowed-reverb-master/input.mp3'
outfile = 'output.mp3'

fx(infile, outfile)

它给了我这个错误。 self.channels = int(stdout) ValueError: invalid literal for int() with base 10: b''

标签: pythonmp3

解决方案


推荐阅读