Merge pull request #137 from w-okada/recorder

generated data includes raw data
This commit is contained in:
w-okada 2023-02-09 04:21:18 +09:00 committed by GitHub
commit f7c9eff10a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -45,8 +45,7 @@ export const ExportController = () => {
const textData = targetCorpus.text[j]
const textHiraData = targetCorpus.text_hira[j]
// 生データ
// zip.file(`raw/${fileName}`, userData.micWavBlob);
// updateProgress(corpus.text.length * 6, processedNum++);
zip.file(`raw/${fileName}`, userData.micWavBlob);
// // 24Khzデータ
// const wav24Khz = convert48KhzTo24Khz(userData.micWavBlob);
@ -58,14 +57,11 @@ export const ExportController = () => {
const region = userData.region
const start = region ? region[0] : 0;
const end = region ? region[1] : 0;
// console.log("REGION", region)
// const wav24KhzTrim = convert48KhzTo24Khz(userData.micWavBlob, start, end);
// zip.file(`rawTrim24k/${fileName}`, wav24KhzTrim);
// updateProgress(corpus.text.length * 6, processedNum++);
const wav24KhzTrim = convert48KhzTo24Khz(userData.micWavBlob, start, end);
zip.file(`rawTrim24k/${fileName}`, wav24KhzTrim);
// VF生データ
zip.file(`00_myvoice/vf/${fileName}`, userData.vfWavBlob);
// updateProgress(corpus.text.length * 6, processedNum++);
// // VF 24Khzデータ
// const vfWav24Khz = convert48KhzTo24Khz(userData.vfWavBlob);
@ -75,7 +71,6 @@ export const ExportController = () => {
// VF Cropデータ
const vfWav24KhzTrim = convert48KhzTo24Khz(userData.vfWavBlob, start, end);
zip.file(`00_myvoice/wav/${fileName}`, vfWav24KhzTrim);
// updateProgress(corpus.text.length * 6, processedNum++);
// TXT
zip.file(`00_myvoice/text/${textFileName}`, textHiraData);