Skip to content
Discussion options

You must be logged in to vote

@JohnHerry - (Moved your post from Issue to Discussions section.) You'd want to use audio.filter() function.

import ffmpegio as ff
fsout , dataout= ff.audio.filter('loudnorm=I=-23', fsin, datain, ar=16000, ac=1)

Assuming you're using ffmpegio package and not just ffmpegio-core, here you prepare datain as a 2D Numpy array with column-wise channels and specify its sampling rate in fsin. The function returns the processed output data with its sampling rate first fsout followed by dataout numpy array.

Replies: 6 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@tikuma-lsuhsc
Comment options

@tikuma-lsuhsc
Comment options

Answer selected by tikuma-lsuhsc
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@JohnHerry
Comment options

@tikuma-lsuhsc
Comment options

@JohnHerry
Comment options

@tikuma-lsuhsc
Comment options

Comment options

You must be logged in to vote
2 replies
@tikuma-lsuhsc
Comment options

@tikuma-lsuhsc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #20 on December 29, 2023 18:59.