Update README.md
Browse files
README.md
CHANGED
@@ -177,11 +177,11 @@ where each line is a dictionary containing the following fields:
|
|
177 |
|
178 |
### Getting Diarization Results
|
179 |
To perform speaker diarization and get a list of speaker-marked speech segments in the format 'begin_seconds, end_seconds, speaker_index', simply use:
|
180 |
-
```
|
181 |
predicted_segments = diar_model.diarize(audio=audio_input, batch_size=1)
|
182 |
```
|
183 |
To obtain tensors of speaker activity probabilities, use:
|
184 |
-
```
|
185 |
predicted_segments, predicted_probs = diar_model.diarize(audio=audio_input, batch_size=1, include_tensor_outputs=True)
|
186 |
```
|
187 |
|
|
|
177 |
|
178 |
### Getting Diarization Results
|
179 |
To perform speaker diarization and get a list of speaker-marked speech segments in the format 'begin_seconds, end_seconds, speaker_index', simply use:
|
180 |
+
```python3
|
181 |
predicted_segments = diar_model.diarize(audio=audio_input, batch_size=1)
|
182 |
```
|
183 |
To obtain tensors of speaker activity probabilities, use:
|
184 |
+
```python3
|
185 |
predicted_segments, predicted_probs = diar_model.diarize(audio=audio_input, batch_size=1, include_tensor_outputs=True)
|
186 |
```
|
187 |
|