Skip to content

Noise reduction #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: base-sha/31a8b26b476e48da22269d88f6379fea1e934491
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN micromamba install -y -n base -f /tmp/environment.yml && \

ARG MAMBA_DOCKERFILE_ACTIVATE=1
WORKDIR /app
# This is the arrdn filter model hogwash for ffmpeg noise reduction
copy sh.rnnn /app
COPY ttt.py /app

ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "python","-u","/app/ttt.py" ]
22 changes: 22 additions & 0 deletions sh.rnnn

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions ttt.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@ def audio_notification(audiofile, apobj, body, title):
"-y",
"-i",
audiofile,
"-filter:a",
"-af",
"arnndn=m='/app/sh.rnnn'",
"-af",
"loudnorm=i=-14",
"-ar",
"8000",
"-c:a",
"aac",
"-b",
"8000",
aacfile,
]
subprocess.run(ffmpeg_cmd, check=True, capture_output=True)
Expand Down