Update README.md
Browse files
README.md
CHANGED
@@ -55,9 +55,11 @@ est_sources = model.separate_file(path='speechbrain/sepformer-whamr16k/test_mixt
|
|
55 |
|
56 |
torchaudio.save("source1hat.wav", est_sources[:, :, 0].detach().cpu(), 16000)
|
57 |
torchaudio.save("source2hat.wav", est_sources[:, :, 1].detach().cpu(), 16000)
|
|
|
58 |
|
|
|
|
|
59 |
|
60 |
-
```
|
61 |
### Inference on GPU
|
62 |
To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
|
63 |
|
|
|
55 |
|
56 |
torchaudio.save("source1hat.wav", est_sources[:, :, 0].detach().cpu(), 16000)
|
57 |
torchaudio.save("source2hat.wav", est_sources[:, :, 1].detach().cpu(), 16000)
|
58 |
+
```
|
59 |
|
60 |
+
The system expects input recordings sampled at 16kHz (single channel).
|
61 |
+
If your signal has a different sample rate, resample it (e.g, using torchaudio or sox) before using the interface.
|
62 |
|
|
|
63 |
### Inference on GPU
|
64 |
To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
|
65 |
|