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 pathpart3.py
More file actions
60 lines (52 loc) · 2.04 KB
/
part3.py
File metadata and controls
60 lines (52 loc) · 2.04 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from config import *
import utils
# Part 3: "Audio SPEECH" parameter
print('\n\n\nEnhancing Part 3 - "Audio SPEECH" parameter\n')
# It doesn't need so much noise reduction
output_after_step_2 = 'NOISE_high.mp4' # TODO: set to choosen signal's path
best_after_step_2 = '{}/{}'.format(output_file_base, output_after_step_2)
# OPTION 1 - speech: sibilance
output_speech_sibilance = 'SPEECH_sibilance.mp4'
param_speech_sibilance = {"audio": {
"speech": {
"sibilance": {"reduction": {
"enable": True,
"amount": "high"}
}}}}
utils.enhance_download_analyze(best_after_step_2,
output_speech_sibilance,
output_file_base,
output_local_file_base,
param_speech_sibilance,
headers,
output_speech_sibilance)
# OPTION 2 - speech: plosive
output_speech_plosive = 'SPEECH_plosive.mp4'
param_speech_plosive = {"audio": {
"speech": {
"plosive": {"reduction": {
"enable": True,
"amount": "high"}
}}}}
utils.enhance_download_analyze(best_after_step_2,
output_speech_plosive,
output_file_base,
output_local_file_base,
param_speech_plosive,
headers,
output_speech_plosive)
# OPTION 3 - speech: click
output_speech_click = 'SPEECH_click.mp4'
param_speech_click = {"audio": {
"speech": {
"click": {"reduction": {
"enable": True,
"amount": "high"}
}}}}
utils.enhance_download_analyze(best_after_step_2,
output_speech_click,
output_file_base,
output_local_file_base,
param_speech_click,
headers,
output_speech_click)