jkot commited on
Commit
96dd089
1 Parent(s): db42f9b

Update czech_parliament_plenary_hearings.py

Browse files
czech_parliament_plenary_hearings.py CHANGED
@@ -3,7 +3,6 @@ import os
3
  import tarfile
4
  import librosa
5
  import datasets
6
- import spacy
7
  _LICENSE = "https://creativecommons.org/licenses/by/4.0/"
8
  _HOMEPAGE = "https://lindat.mff.cuni.cz/repository/xmlui/handle/11234/1-3126"
9
  _DATASET_URL = "https://lindat.mff.cuni.cz/repository/xmlui/bitstream/handle/11234/1-3126/snemovna.tar.xz"
@@ -82,7 +81,8 @@ class CzechParliamentPlenaryHearings(GeneratorBasedBuilder):
82
  'id': id,
83
  'audio': {
84
  'path': audio_path,
85
- 'bytes': audio.tobytes()
 
86
  },
87
  'transcription': transcription,
88
  }
 
3
  import tarfile
4
  import librosa
5
  import datasets
 
6
  _LICENSE = "https://creativecommons.org/licenses/by/4.0/"
7
  _HOMEPAGE = "https://lindat.mff.cuni.cz/repository/xmlui/handle/11234/1-3126"
8
  _DATASET_URL = "https://lindat.mff.cuni.cz/repository/xmlui/bitstream/handle/11234/1-3126/snemovna.tar.xz"
 
81
  'id': id,
82
  'audio': {
83
  'path': audio_path,
84
+ 'array': audio.tobytes(),
85
+ 'sampling_rate': 48000
86
  },
87
  'transcription': transcription,
88
  }