Skip to content

Feature Request: Allow Selective Track Subscription for VoiceAssistant #1399

@boussaidev

Description

@boussaidev

Description: Currently, the VoiceAssistant automatically subscribes to all participant audio tracks when instantiated, even when AutoSubscribe.SUBSCRIBE_NONE is used. This behavior prevents the ability to selectively subscribe to specific tracks and ignore others.

In use cases like the WebRTC web app, there is a need for the voice assistant to subscribe only to a specific participant's audio track, while ensuring that the other participant cannot hear the audio. The track should have a unique identifier (e.g., a custom name) so that the agent can subscribe to it while other participants' audio is ignored.

Proposed Solution: It would be beneficial if the VoiceAssistant instance could support more granular control over track subscriptions. Specifically, adding a feature to allow the agent to subscribe to specific tracks based on a unique identifier, while ignoring other tracks.

This would allow better flexibility in managing track subscriptions and would be especially useful for applications where private communication with the agent is required without broadcasting audio to other participants.

Use Case:

In a WebRTC web app, a user can interact with the voice assistant while ensuring the other participant does not hear the audio.
The agent can subscribe to a participant's specific audio track using its unique name or identifier, while other tracks are ignored.
Benefits:

Enhanced control over which audio tracks the agent subscribes to.
Improved privacy and user experience in scenarios with multiple participants.
Would love to see this functionality added to the VoiceAssistant!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions