Update text-to-speech.md (#31269)

SpeechBrain usage has changed
This commit is contained in:
Jack Yang 2024-06-07 08:59:22 +12:00 committed by GitHub
parent 3b4d3d09fd
commit a3d351c00f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -281,7 +281,7 @@ containing the corresponding speaker embedding.
```py ```py
>>> import os >>> import os
>>> import torch >>> import torch
>>> from speechbrain.pretrained import EncoderClassifier >>> from speechbrain.inference.classifiers import EncoderClassifier
>>> spk_model_name = "speechbrain/spkrec-xvect-voxceleb" >>> spk_model_name = "speechbrain/spkrec-xvect-voxceleb"