mirror of
https://github.com/jambonz/batch-speech-utils.git
synced 2026-01-25 02:08:27 +00:00
entry point change
This commit is contained in:
19
index.js
19
index.js
@@ -1,7 +1,14 @@
|
||||
const { getTranscription } = require('./lib/transcribe');
|
||||
const { getRedactedAudio } = require('./lib/redact');
|
||||
|
||||
module.exports = {
|
||||
getTranscription,
|
||||
getRedactedAudio
|
||||
const noopLogger = {
|
||||
info: () => {},
|
||||
debug: () => {},
|
||||
error: () => {}
|
||||
};
|
||||
|
||||
module.exports = (logger) => {
|
||||
logger = logger || noopLogger;
|
||||
|
||||
return {
|
||||
transcribe: require('./lib/transcribe').bind(null, logger),
|
||||
redact: require('./lib/redact').bind(null, logger)
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user