Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -81,8 +81,8 @@ def processFile(filePath):
|
|
| 81 |
newW = enhance(dfModel,dfState,w,atten_lim_db=attenLimDB)#.detach().cpu()
|
| 82 |
enhancedWaveformList.append(newW)
|
| 83 |
waveformEnhanced = su.combineWaveforms(enhancedWaveformList)
|
| 84 |
-
waveform_gain_adjusted = su.equalizeVolume()(waveformEnhanced,
|
| 85 |
-
annotations = pipeline({"waveform": waveformEnhanced, "sample_rate":
|
| 86 |
speakerList = su.annotationToSpeakerList(annotations)
|
| 87 |
return (speakerList, annotations)
|
| 88 |
|
|
|
|
| 81 |
newW = enhance(dfModel,dfState,w,atten_lim_db=attenLimDB)#.detach().cpu()
|
| 82 |
enhancedWaveformList.append(newW)
|
| 83 |
waveformEnhanced = su.combineWaveforms(enhancedWaveformList)
|
| 84 |
+
waveform_gain_adjusted = su.equalizeVolume()(waveformEnhanced,sampleRate,gainWindow,minimumGain,maximumGain)
|
| 85 |
+
annotations = pipeline({"waveform": waveformEnhanced, "sample_rate": sampleRate})
|
| 86 |
speakerList = su.annotationToSpeakerList(annotations)
|
| 87 |
return (speakerList, annotations)
|
| 88 |
|