Update README.md
#2
by
iswarpatel
- opened
README.md
CHANGED
@@ -109,7 +109,7 @@ Or save them as a `.wav` file using a third-party library, e.g. `scipy`:
|
|
109 |
```python
|
110 |
import scipy
|
111 |
|
112 |
-
sampling_rate = model.
|
113 |
scipy.io.wavfile.write("bark_out.wav", rate=sampling_rate, data=speech_values.cpu().numpy().squeeze())
|
114 |
```
|
115 |
|
|
|
109 |
```python
|
110 |
import scipy
|
111 |
|
112 |
+
sampling_rate = model.generation_config.sample_rate
|
113 |
scipy.io.wavfile.write("bark_out.wav", rate=sampling_rate, data=speech_values.cpu().numpy().squeeze())
|
114 |
```
|
115 |
|