This repository was archived by the owner on Feb 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpart2.py
More file actions
44 lines (38 loc) · 1.34 KB
/
part2.py
File metadata and controls
44 lines (38 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from config import *
import utils
# Part 2: "Audio NOISE" parameter
print('\n\n\nEnhancing Part 2 - "Audio NOISE" parameter\n')
# Set this variable to chosen file from Part 1
output_after_step_1 = 'CONTENT_conference.mp4' # TODO: set to choosen signal's path
best_after_step_1 = '{}/{}'.format(output_file_base, output_after_step_1)
# OPTION 1 - amount: low
output_noise_low = 'NOISE_low.mp4'
param_noise_low = {"audio": {"noise": {"reduction": {
"enable": True,
"amount": "low"
}
}
}}
utils.enhance_download_analyze(best_after_step_1,
output_noise_low,
output_file_base,
output_local_file_base,
param_noise_low,
headers,
output_noise_low)
# OPTION 2 - amount: high
output_noise_high = 'NOISE_high.mp4'
param_noise_high = {"audio": {
"noise": {"reduction": {
"enable": True,
"amount": "high"
}
}
}}
utils.enhance_download_analyze(best_after_step_1,
output_noise_high,
output_file_base,
output_local_file_base,
param_noise_high,
headers,
output_noise_high)