Fixing a bug-2
This commit is contained in:
parent
dd88aac68e
commit
f07b8e01ee
2
Utils.py
2
Utils.py
@ -102,7 +102,7 @@ class ProceesAudio():
|
|||||||
audio = self.make_smooth(audio, gain, prev_gains[i])
|
audio = self.make_smooth(audio, gain, prev_gains[i])
|
||||||
curr_gains.append(gain)
|
curr_gains.append(gain)
|
||||||
for frame in audio:
|
for frame in audio:
|
||||||
part_audios[i].append(audio)
|
part_audios[i].append(frame)
|
||||||
final_audios.append(audio)
|
final_audios.append(audio)
|
||||||
part_amps.append(part_amp)
|
part_amps.append(part_amp)
|
||||||
prev_gains = curr_gains
|
prev_gains = curr_gains
|
||||||
|
@ -73,12 +73,13 @@ def process_audio_bytes(audio_bytes, index):
|
|||||||
part_urls= []
|
part_urls= []
|
||||||
|
|
||||||
for i in range(10):
|
for i in range(10):
|
||||||
url = upload_to_s3(processed_data=part_audios[i], userId="parth", type="part")
|
print(np.array(part_audios[i], dtype=np.float32))
|
||||||
|
url = upload_to_s3(processed_data=np.array(part_audios[i], dtype=np.float32), userId="parth", type="part")
|
||||||
part_urls.append(url)
|
part_urls.append(url)
|
||||||
|
|
||||||
processed_data = np.concatenate(processed_data)
|
processed_data = np.concatenate(processed_data)
|
||||||
|
|
||||||
file_url = upload_to_s3(processed_data=processed_data, userId="parth")
|
file_url = upload_to_s3(processed_data=processed_data, userId="parth", type="final")
|
||||||
arr_to_show = []
|
arr_to_show = []
|
||||||
|
|
||||||
print(len(processed_data))
|
print(len(processed_data))
|
||||||
|
Loading…
Reference in New Issue
Block a user