cemsubakan
commited on
Commit
•
fa26753
1
Parent(s):
4bf5a85
Update README.md
Browse files
README.md
CHANGED
@@ -41,13 +41,15 @@ Please notice that we encourage you to read our tutorials and learn more about [
|
|
41 |
from speechbrain.pretrained import SepformerSeparation as separator
|
42 |
import torchaudio
|
43 |
|
44 |
-
model = separator.from_hparams(source="speechbrain/sepformer-wham", savedir=
|
45 |
|
46 |
-
|
|
|
47 |
|
48 |
torchaudio.save("source1hat.wav", est_sources[:, :, 0].detach().cpu(), 8000)
|
49 |
torchaudio.save("source2hat.wav", est_sources[:, :, 1].detach().cpu(), 8000)
|
50 |
|
|
|
51 |
```
|
52 |
|
53 |
#### Referencing SpeechBrain
|
|
|
41 |
from speechbrain.pretrained import SepformerSeparation as separator
|
42 |
import torchaudio
|
43 |
|
44 |
+
model = separator.from_hparams(source="speechbrain/sepformer-wham", savedir='sepformer-wham')
|
45 |
|
46 |
+
# for custom file, change path
|
47 |
+
est_sources = model.separate_file(path='speechbrain/sepformer-wsj02mix/test_mixture.wav')
|
48 |
|
49 |
torchaudio.save("source1hat.wav", est_sources[:, :, 0].detach().cpu(), 8000)
|
50 |
torchaudio.save("source2hat.wav", est_sources[:, :, 1].detach().cpu(), 8000)
|
51 |
|
52 |
+
|
53 |
```
|
54 |
|
55 |
#### Referencing SpeechBrain
|