Fixing a bug-2

This commit is contained in:
parth aranke 2024-06-06 23:21:18 +05:30
parent dd88aac68e
commit f07b8e01ee
2 changed files with 4 additions and 3 deletions

View File

@ -102,7 +102,7 @@ class ProceesAudio():
audio = self.make_smooth(audio, gain, prev_gains[i])
curr_gains.append(gain)
for frame in audio:
part_audios[i].append(audio)
part_audios[i].append(frame)
final_audios.append(audio)
part_amps.append(part_amp)
prev_gains = curr_gains

View File

@ -73,12 +73,13 @@ def process_audio_bytes(audio_bytes, index):
part_urls= []
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)
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 = []
print(len(processed_data))