Update README.md
Browse files
README.md
CHANGED
|
@@ -64,6 +64,9 @@ signal, fs =torchaudio.load('samples/audio_samples/example1.wav')
|
|
| 64 |
embeddings = classifier.encode_batch(signal)
|
| 65 |
```
|
| 66 |
|
|
|
|
|
|
|
|
|
|
| 67 |
### Inference on GPU
|
| 68 |
To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
|
| 69 |
|
|
|
|
| 64 |
embeddings = classifier.encode_batch(signal)
|
| 65 |
```
|
| 66 |
|
| 67 |
+
The system is trained with recordings sampled at 16kHz (single channel).
|
| 68 |
+
The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling *classify_file* if needed. Make sure your input tensor is compliant with the expected sampling rate if you use *encode_batch* and *classify_batch*.
|
| 69 |
+
|
| 70 |
### Inference on GPU
|
| 71 |
To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
|
| 72 |
|