mirror of
https://github.com/jambonz/batch-speech-utils.git
synced 2026-01-25 02:08:27 +00:00
edit for es-lint
This commit is contained in:
4
index.js
4
index.js
@@ -1,5 +1,5 @@
|
||||
const { audioProcess } = require('./lib/transcription');
|
||||
const { redactSensitiveInfo } = require("./lib/audioRedaction");
|
||||
const { redactSensitiveInfo } = require('./lib/audioRedaction');
|
||||
const path = require('path');
|
||||
const fs = require('fs-extra');
|
||||
require('dotenv').config();
|
||||
@@ -22,7 +22,7 @@ async function processAndRedactAudio() {
|
||||
await fs.writeFile(outputPathJson, jsonContent, 'utf-8');
|
||||
console.dir({ analysis: [results] }, { depth: null });
|
||||
if (results && results.redactionTimestamps) {
|
||||
redactSensitiveInfo(results.redactionTimestamps,audioPath, outputPathAudio);
|
||||
redactSensitiveInfo(results.redactionTimestamps, audioPath, outputPathAudio);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error in main execution:', error);
|
||||
|
||||
Reference in New Issue
Block a user