worried-gold-23479
11/20/2025, 11:41 AMtall-airline-16756
11/20/2025, 12:40 PMAudioManager.shared.setManualRenderingMode(true).
• Then, activate the microphone track using room.localParticipant.setMicrophone(enabled: true).
• Finally, you can send your custom audio buffers through AudioManager.shared.mixer.capture(appAudio: yourAudioBuffer).
For Android (Android SDK):
• Create a LocalAudioTrack and set a custom audio buffer callback using setAudioBufferCallback().
• If you need more control, you might want to implement a custom AudioDeviceModule.
For other platforms:
• JavaScript SDK: Custom audio injection isn’t directly supported, but you might explore WebRTC-level options.
• Flutter SDK: Support is somewhat limited, so platform-specific solutions could be necessary.
• Rust SDK: Currently, there’s no direct support for injecting custom buffers.
Please feel free to share which platform you’re targeting or if you’d like me to guide you through any specific part in more detail—I’m here to help! Sources: src/room/track/options.ts | lib/src/preconnect/pre_connect_audio_buffer.dart | examples/local_audio/README.md | Tests/LiveKitAudioTests/AudioEngineTests.swift | livekit-android-sdk/src/main/java/io/livekit/android/room/track/LocalAudioT...