Skip to content

Commit

Permalink
fix(config): Add gladia log file as config key, fix gladia default co…
Browse files Browse the repository at this point in the history
…nfigs
  • Loading branch information
lfzawacki committed Nov 24, 2023
1 parent 4e2714d commit 139dd86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const fs = require('fs');

let GLADIA_PROXY_PROCESS;
const runGladiaProxy = () => {
const outputFile = 'gladia-proxy.log';
const outputFile = config.get('log.gladiaProxy');

const outputStream = fs.createWriteStream(outputFile);

Expand Down
3 changes: 2 additions & 1 deletion config/default.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ log:
filename: log
level: info
stdout: true
gladiaProxy: gladia-proxy.log

redis:
host: 0.0.0.0
Expand Down Expand Up @@ -37,7 +38,7 @@ vosk:
# the start/end messages right

gladia:
startMessage: '{"x_gladia_key": "", "sample_rate": 0, "bit_depth": 16, "model_type": "accurate" }'
startMessage: '{"x_gladia_key": "", "sample_rate": 0, "bit_depth": 16, "model_type": "fast", "endpointing": 300 }'
endMessage: '{}'
server: ws://localhost:8777
proxy:
Expand Down

0 comments on commit 139dd86

Please sign in to comment.