@@ -0,0 +1,13 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import os from 'node:os';
|
||||
|
||||
export function voiceSettings() {
|
||||
let config = {};
|
||||
try { config = JSON.parse(fs.readFileSync(path.join(process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config'), 'jarvis/config.json'), 'utf8')); } catch {}
|
||||
return {
|
||||
command: process.env.JARVIS_WAKE_COMMAND || config.wake_command || '',
|
||||
phrases: [config.wake_phrase || 'hey jarvis', 'jarvis', 'okay jarvis'],
|
||||
ttsEnabled: config.tts_enabled !== false,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user