Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,6 +107,7 @@ def encode_decode_focal(audio_input):
|
|
| 107 |
file_size_bytes = os.path.getsize(fc_file_path)
|
| 108 |
duration_sec = sig.shape[-1] / codec.sample_rate_input
|
| 109 |
expected_size = (160 * duration_sec) / 8 # 160 bits/sec → bytes
|
|
|
|
| 110 |
print(f"Tokens saved to {fc_file_path}")
|
| 111 |
print(f"File size: {file_size_bytes} bytes (expected: ~{expected_size:.0f} bytes)")
|
| 112 |
|
|
|
|
| 107 |
file_size_bytes = os.path.getsize(fc_file_path)
|
| 108 |
duration_sec = sig.shape[-1] / codec.sample_rate_input
|
| 109 |
expected_size = (160 * duration_sec) / 8 # 160 bits/sec → bytes
|
| 110 |
+
actual_bitrate = (file_size_bytes * 8) / duration_sec
|
| 111 |
print(f"Tokens saved to {fc_file_path}")
|
| 112 |
print(f"File size: {file_size_bytes} bytes (expected: ~{expected_size:.0f} bytes)")
|
| 113 |
|