-
Notifications
You must be signed in to change notification settings - Fork 144
Console mode support #632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Console mode support #632
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @kushagrob, I'm getting the following error after pnpm i
and pnpm build
:
Brians-MacBook-Pro agents-js % LIVEKIT_ENABLE_CONSOLE_MODE=true pnpm dlx tsx examples/src/basic_agent.ts console
node:events:485
throw er; // Unhandled 'error' event
^
Error: spawn sox ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on AudioIO instance at:
at AudioOutputStream.<anonymous> (/Users/toubatbrian/Documents/GitHub/agents-js/agents/src/voice/native_audio.ts:494:12)
at AudioOutputStream.emit (node:events:507:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn sox',
path: 'sox',
spawnargs: [
'-r',
'24000',
'-c',
'1',
'-b',
'16',
'-e',
'signed-integer',
'-t',
'raw',
'-',
'-d'
]
}
Node.js v23.11.0
Can you take a look?
this.logger.warn('RoomIO audio input is enabled but input.audio is already set, ignoring..'); | ||
} | ||
if (!room) { | ||
const { ChatCLI } = await import('./chat_cli.js'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we using dynamic import here?
Test with
LIVEKIT_ENABLE_CONSOLE_MODE=true pnpm dlx tsx examples/src/basic_agent.ts console
Node.js stream bindings using sox for Mac, ffmpeg for Windows, and arecord/aplay for Linux.
Mock inference executor for now to keep things simple
No noise/echo cancellation yet