Tanel commited on
Commit
2258b5a
1 Parent(s): c2dba9f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -1
README.md CHANGED
@@ -168,6 +168,11 @@ print(prediction)
168
  # The identified language ISO code is given in prediction[3]
169
  print(prediction[3])
170
  ['th']
 
 
 
 
 
171
  ```
172
 
173
  #### Limitations and bias
@@ -205,7 +210,7 @@ Error rate: 6% on the development dataset
205
  ```bibtex
206
  @inproceedings{valk2021slt,
207
  title={{VoxLingua107}: a Dataset for Spoken Language Recognition},
208
- author={J{\"o}rgen Valk and Tanel Alum{\"a}e},
209
  booktitle={Proc. IEEE SLT Workshop},
210
  year={2021},
211
  }
 
168
  # The identified language ISO code is given in prediction[3]
169
  print(prediction[3])
170
  ['th']
171
+
172
+ # Alternatively, use the utterance embedding extractor:
173
+ emb = language_id.encode_batch(signal_resampled)
174
+ print(emb.shape)
175
+ torch.Size([1, 1, 256])
176
  ```
177
 
178
  #### Limitations and bias
 
210
  ```bibtex
211
  @inproceedings{valk2021slt,
212
  title={{VoxLingua107}: a Dataset for Spoken Language Recognition},
213
+ author={J{\\"o}rgen Valk and Tanel Alum{\\"a}e},
214
  booktitle={Proc. IEEE SLT Workshop},
215
  year={2021},
216
  }