这是indexloc提供的服务,不要输入任何密码
Skip to content

🔈 Can't Access LiveKit AudioStream Data for Runtime Analysis in Unity #97

@chiddyBenno

Description

@chiddyBenno

Hi LiveKit team,

I'm trying to access remote audio data from AudioStream in Unity for real-time analysis (e.g. lip-sync or visualizers). The audio plays correctly via RtcAudioSource, but the actual sample data seems inaccessible.

I tried using OnAudioFilterRead on the AudioSource, but it returns only zeros — likely because LiveKit bypasses Unity’s standard audio pipeline. The internal OnAudioRead() in AudioStream does receive sample data, but it's not exposed publicly.

Feature Request:
Could you expose the most recent audio samples or amplitude via a public event/property (e.g. CurrentAmplitude)? This would allow external systems to react to the incoming audio in real-time without modifying the SDK.

Thanks for considering this!
Benjamin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions