Spaces:
Running
Running
Return an AIFF input as WAV
Browse filesHARP accepts .aif, the extension Logic Pro gives AIFF, but soundfile cannot write a file named with it, so such an input failed when its result was written. Gradio also converts an AIFF output to 16-bit WAV, since browsers cannot play AIFF, so keeping that container gained nothing. Lossless inputs now keep WAV and FLAC alone, and AIFF comes back as WAV at the bit depth this Space writes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -19,7 +19,7 @@ MODEL_CONFIG_PATH = Path(__file__).parent / "default_config_files/models/wavenet
|
|
| 19 |
|
| 20 |
# A lossless input keeps its container. A lossy one comes back as WAV, since encoding the result
|
| 21 |
# lossily again would expose the artifacts of the first encode and add a second set.
|
| 22 |
-
LOSSLESS = {".wav", ".flac"
|
| 23 |
|
| 24 |
def get_model():
|
| 25 |
global model
|
|
|
|
| 19 |
|
| 20 |
# A lossless input keeps its container. A lossy one comes back as WAV, since encoding the result
|
| 21 |
# lossily again would expose the artifacts of the first encode and add a second set.
|
| 22 |
+
LOSSLESS = {".wav", ".flac"}
|
| 23 |
|
| 24 |
def get_model():
|
| 25 |
global model
|