feat: add duration field to dataset entries and update related components for display and processing
This commit is contained in:
@@ -66,7 +66,7 @@ export async function downloadFilteredEntries(
|
||||
const row = [
|
||||
`"${entry.externalId}"`,
|
||||
entry.fileName,
|
||||
'',
|
||||
entry.durationMs?.toString() || '',
|
||||
entry.utteranceId || '',
|
||||
`"${(entry.utteranceText || '').replace(/"/g, '""')}"`,
|
||||
entry.speakerId,
|
||||
|
||||
@@ -136,6 +136,7 @@ export async function processDatasetEntries(
|
||||
fileName: relativePath,
|
||||
dialect: row.dialect,
|
||||
iteration: parseInt(row.iteration, 10),
|
||||
durationMs: row.duration_ms ? parseInt(row.duration_ms, 10) : undefined,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user