quick-vr-30902
10/30/2025, 6:58 PMtall-airline-16756
10/30/2025, 6:58 PMtall-airline-16756
10/30/2025, 6:58 PMIngressAudioOptions and leave out IngressVideoOptions, and that will give you an audio-only stream.
If you’d like, I’m here to help you walk through the configuration or answer any questions you might have!
Sources: livekit/livekit_ingress.pb.go | packages/livekit-server-sdk/src/IngressClient.ts | lib/livekit/ingress_service_client.rb | livekit-protocol/src/livekit.rsquick-vr-30902
10/30/2025, 7:02 PMtall-airline-16756
10/30/2025, 7:03 PMIngressClient with your LiveKit server URL, API key, and secret. Here's how you can do it:
import { IngressClient, IngressInput } from 'livekit-server-sdk';
const ingressClient = new IngressClient(
process.env.LIVEKIT_URL,
process.env.LIVEKIT_API_KEY,
process.env.LIVEKIT_API_SECRET
);
1. Next, set up the ingress options specifically for audio-only by using IngressAudioOptions and leaving out any video settings. Here's an example:
const ingressOptions = {
roomName: 'my-audio-room',
participantIdentity: 'audio-streamer',
participantName: 'Audio Stream',
audio: {
name: 'Primary Audio',
source: 'MICROPHONE',
preset: 'OPUS_STEREO_96KBPS', // High-quality stereo preset
},
};
1. Finally, create the ingress with your preferred input type, such as RTMP:
const rtmpIngress = await ingressClient.createIngress(
IngressInput.RTMP_INPUT,
ingressOptions
);
console.log('Stream Key:', rtmpIngress.streamKey);
console.log('URL:', rtmpIngress.url);
And that's it! This will set up an audio-only ingress for you. If you'd like to explore custom audio encoding options or have any other questions, please feel free to ask—I'm here to help!
Sources: examples/receive-audio/index.ts | lib/livekit/ingress_service_client.rb | livekit-protocol/livekit/protocol/ingress.pyi | Stream import | LiveKit docsquick-vr-30902
10/30/2025, 7:04 PM