// Assess one recording and print what the API returned. // // export TONEPERFECT_API_KEY=tp_live_... // node examples/assess-file.mjs hello.wav 你好 zh-CN // node examples/assess-file.mjs sunny.wav "I like sunny days" en-US import { TonePerfect, TonePerfectError } from '../index.mjs'; // in your project: './vendor/toneperfect/index.mjs' const [path, text, language = 'zh-CN'] = process.argv.slice(2); if (!path || !text) { console.error('usage: node examples/assess-file.mjs