Skip to content

Commit

Permalink
Fix code sample
Browse files Browse the repository at this point in the history
fixes #124
  • Loading branch information
ynop committed May 18, 2020
1 parent 25eb6ee commit 5f3847a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ esc50 = audiomate.Corpus.load('/local/path', reader='esc-50')
# e.g. Read the audio signal and the label of specific sample/utterance
utterance = esc50.utterances['1-100032-A-0']
samples = utterance.read_samples()
label = utterance.label_lists[audiomate.corpus.LL_SOUND_CLASS][0].value
label_list = utterance.label_lists[audiomate.corpus.LL_SOUND_CLASS]

for label in label_list:
print(label.start, label.value)
```

Furthermore it provides tools for interacting with datasets
Expand Down

0 comments on commit 5f3847a

Please sign in to comment.