Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
MPAI-Private
MPAI-CAE
arp
Tape Audio Restoration
Commits
f03789ef
Commit
f03789ef
authored
Mar 28, 2023
by
CSC
Browse files
new scripting branch
parent
74472c91
Changes
1
Hide whitespace changes
Inline
Side-by-side
script.py
0 → 100644
View file @
f03789ef
import
os
import
subprocess
INPUT_DIR
=
"./"
config
=
{
"file_names"
:
os
.
listdir
(
INPUT_DIR
),
"w_eq_standard"
:
"NAB"
,
"r_eq_standard"
:
"CCIR"
,
"w_speed"
:
"7.5"
,
"r_speed"
:
"7.5"
}
if
__name__
==
'__main__'
:
for
filename
in
config
[
"file_names"
]:
if
not
os
.
path
.
exists
(
INPUT_DIR
+
"/temp"
):
os
.
makedirs
(
INPUT_DIR
+
"/temp"
)
subprocess
.
run
([
"python3"
,
"tapeAudioRestoration.py"
,
"-w"
,
INPUT_DIR
,
"-f"
,
filename
,
"-ew"
,
config
[
"w_eq_standard"
],
"-sw"
,
config
[
"w_speed"
],
"-sr"
,
config
[
"r_speed"
],
"-er"
,
config
[
"r_eq_standard"
]])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment