Skip to content

Conversation

kushagrob
Copy link

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

Copy link

changeset-bot bot commented Aug 23, 2025

⚠️ No Changeset found

Latest commit: b634e9b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@toubatbrian toubatbrian left a 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');
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants