Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add realtime buffer size for voice agent #397

Open
rachwalk opened this issue Jan 31, 2025 · 0 comments
Open

Add realtime buffer size for voice agent #397

rachwalk opened this issue Jan 31, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@rachwalk
Copy link
Contributor

Is your feature request related to a problem? Please describe.
As described in this comment: #393 (comment) the VoiceRecognitionAgent src/rai/rai/agents/voice_agent.py currently uses a set size for sample buffer:

        with self.sample_buffer_lock:
            self.sample_buffer.append(indata)
            if not self.recording_started and len(self.sample_buffer) > 5:
                self.sample_buffer = self.sample_buffer[-5:]

It could be beneficial to be able to configure that size during runtime.

Describe the solution you'd like
A connector for configuration could be added, with the agent receiving messages during runtime and setting appropriate parameter based on what it receives.

Describe alternatives you've considered
All alternatives require some form of a runtime communication with the Agent process, which in turn given the current RAI API would require a connector.

Additional context
N/A

@rachwalk rachwalk added the enhancement New feature or request label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant