Open
Conversation
|
toubatbrian
reviewed
Aug 24, 2025
Contributor
There was a problem hiding this comment.
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?
toubatbrian
reviewed
Aug 24, 2025
| this.logger.warn('RoomIO audio input is enabled but input.audio is already set, ignoring..'); | ||
| } | ||
| if (!room) { | ||
| const { ChatCLI } = await import('./chat_cli.js'); |
Contributor
There was a problem hiding this comment.
why are we using dynamic import here?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test with
LIVEKIT_ENABLE_CONSOLE_MODE=true pnpm dlx tsx examples/src/basic_agent.ts consoleNode.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