File size: 478 Bytes
2681d11
 
 
 
 
 
b009820
2681d11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
tags:
- superb
- speaker-diarization
- benchmark:superb
library_name: superb
pipeline_tag: speech-segmentation
---

# Test for superb using hubert downstream SD

## Usage

```python
import io
import soundfile as sf
from urllib.request import urlopen
from model import PreTrainedModel

model = PreTrainedModel()
url = "https://huggingface.co/datasets/lewtun/s3prl-sd-dummy/raw/main/audio.wav"
data, samplerate = sf.read(io.BytesIO(urlopen(url).read()))
print(model(data))
```