add output example
Browse files
README.md
CHANGED
@@ -69,6 +69,14 @@ classifier = foreign_class(
|
|
69 |
)
|
70 |
diary = classifier.diarize_file("speechbrain/emotion-diarization-wavlm-large/example.wav")
|
71 |
print(diary)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
```
|
73 |
The output will contain a dictionary of emotion components and their boundaries.
|
74 |
|
|
|
69 |
)
|
70 |
diary = classifier.diarize_file("speechbrain/emotion-diarization-wavlm-large/example.wav")
|
71 |
print(diary)
|
72 |
+
|
73 |
+
# {
|
74 |
+
# 'speechbrain/emotion-diarization-wavlm-large/example.wav':
|
75 |
+
# [
|
76 |
+
# {'start': 0.0, 'end': 1.94, 'emotion': 'n'}, # n -> neutral
|
77 |
+
# {'start': 1.94, 'end': 4.48, 'emotion': 'h'} # h -> happy
|
78 |
+
# ]
|
79 |
+
# }
|
80 |
```
|
81 |
The output will contain a dictionary of emotion components and their boundaries.
|
82 |
|