anjalyjayakrishnan
commited on
Commit
•
7f8aa66
1
Parent(s):
714f678
fix
Browse files
sample.py
CHANGED
@@ -153,10 +153,10 @@ class Test(datasets.GeneratorBasedBuilder):
|
|
153 |
data_df = pd.read_csv(f,sep=',')
|
154 |
transcripts = []
|
155 |
for index,row in data_df.iterrows():
|
156 |
-
samplerate, audio_data = wavfile.read(
|
157 |
yield key, {
|
158 |
"sentence": row["sentence"],
|
159 |
"path": row["path"],
|
160 |
-
"audio":{"path":
|
161 |
}
|
162 |
key+=1
|
|
|
153 |
data_df = pd.read_csv(f,sep=',')
|
154 |
transcripts = []
|
155 |
for index,row in data_df.iterrows():
|
156 |
+
samplerate, audio_data = wavfile.read(row["path"])
|
157 |
yield key, {
|
158 |
"sentence": row["sentence"],
|
159 |
"path": row["path"],
|
160 |
+
"audio":{"path": row["path"], "bytes": audio_data}
|
161 |
}
|
162 |
key+=1
|