Commit
•
0be8248
1
Parent(s):
a9f1cf1
Update README.md
Browse files
README.md
CHANGED
@@ -272,7 +272,7 @@ import torchaudio
|
|
272 |
from speechbrain.inference.classifiers import EncoderClassifier
|
273 |
language_id = EncoderClassifier.from_hparams(source="speechbrain/lang-id-voxlingua107-ecapa", savedir="tmp")
|
274 |
# Download Thai language sample from Omniglot and cvert to suitable form
|
275 |
-
signal = language_id.load_audio("
|
276 |
prediction = language_id.classify_batch(signal)
|
277 |
print(prediction)
|
278 |
# (tensor([[-2.8646e+01, -3.0346e+01, -2.0748e+01, -2.9562e+01, -2.2187e+01,
|
|
|
272 |
from speechbrain.inference.classifiers import EncoderClassifier
|
273 |
language_id = EncoderClassifier.from_hparams(source="speechbrain/lang-id-voxlingua107-ecapa", savedir="tmp")
|
274 |
# Download Thai language sample from Omniglot and cvert to suitable form
|
275 |
+
signal = language_id.load_audio("speechbrain/lang-id-voxlingua107-ecapa/udhr_th.wav")
|
276 |
prediction = language_id.classify_batch(signal)
|
277 |
print(prediction)
|
278 |
# (tensor([[-2.8646e+01, -3.0346e+01, -2.0748e+01, -2.9562e+01, -2.2187e+01,
|