cemsubakan
commited on
Commit
·
05e14ee
1
Parent(s):
3395766
Update README.md
Browse files
README.md
CHANGED
@@ -44,9 +44,10 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
44 |
from speechbrain.pretrained import SepformerSeparation as separator
|
45 |
import torchaudio
|
46 |
|
47 |
-
model = separator.from_hparams(source="speechbrain/sepformer-wsj02mix", savedir='
|
48 |
|
49 |
-
|
|
|
50 |
|
51 |
torchaudio.save("source1hat.wav", est_sources[:, :, 0].detach().cpu(), 8000)
|
52 |
torchaudio.save("source2hat.wav", est_sources[:, :, 1].detach().cpu(), 8000)
|
|
|
44 |
from speechbrain.pretrained import SepformerSeparation as separator
|
45 |
import torchaudio
|
46 |
|
47 |
+
model = separator.from_hparams(source="speechbrain/sepformer-wsj02mix", savedir='sepformer-wsj02mix')
|
48 |
|
49 |
+
# for custom file, change path
|
50 |
+
est_sources = model.separate_file(path='speechbrain/sepformer-wsj02mix/test_mixture.wav')
|
51 |
|
52 |
torchaudio.save("source1hat.wav", est_sources[:, :, 0].detach().cpu(), 8000)
|
53 |
torchaudio.save("source2hat.wav", est_sources[:, :, 1].detach().cpu(), 8000)
|