Aboubacar OUATTARA - kaira
commited on
Commit
•
e5f089f
1
Parent(s):
7f2b715
add audios files
Browse files
app.py
CHANGED
@@ -141,6 +141,9 @@ def _fn(
|
|
141 |
print("Audio Array Dtype:", audio_array.dtype)
|
142 |
print("Max Value in Audio Array:", torch.max(audio_array))
|
143 |
print("Min Value in Audio Array:", torch.min(audio_array))
|
|
|
|
|
|
|
144 |
|
145 |
# Return all outputs
|
146 |
return (
|
|
|
141 |
print("Audio Array Dtype:", audio_array.dtype)
|
142 |
print("Max Value in Audio Array:", torch.max(audio_array))
|
143 |
print("Min Value in Audio Array:", torch.min(audio_array))
|
144 |
+
print("Sampling rate type: ", type(sampling_rate))
|
145 |
+
print("Denoised sampling rate type: ", type(denoised_audio[0]))
|
146 |
+
print("Enhanced sampling rate type: ", type(enhanced_audio[0]))
|
147 |
|
148 |
# Return all outputs
|
149 |
return (
|
tts.py
CHANGED
@@ -374,7 +374,7 @@ class BambaraTTS:
|
|
374 |
end_time = time.time()
|
375 |
|
376 |
audio = torch.tensor(out["wav"]).unsqueeze(0).cpu()
|
377 |
-
sampling_rate = self.config.model_args.output_sample_rate
|
378 |
|
379 |
self.log(f"Speech generated in {end_time - start_time:.2f} seconds.")
|
380 |
|
|
|
374 |
end_time = time.time()
|
375 |
|
376 |
audio = torch.tensor(out["wav"]).unsqueeze(0).cpu()
|
377 |
+
sampling_rate = torch.tensor(self.config.model_args.output_sample_rate).cpu().item()
|
378 |
|
379 |
self.log(f"Speech generated in {end_time - start_time:.2f} seconds.")
|
380 |
|