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

Provide event to access raw audio stream #37

Open
nfiacco opened this issue Jun 5, 2024 · 4 comments
Open

Provide event to access raw audio stream #37

nfiacco opened this issue Jun 5, 2024 · 4 comments

Comments

@nfiacco
Copy link

nfiacco commented Jun 5, 2024

Would be great to have an audio event like this: https://docs.retellai.com/make-calls/web-call#listen-to-events

@nikhilro
Copy link
Contributor

nikhilro commented Jun 5, 2024

It's a good idea but what's your use case?

@nfiacco
Copy link
Author

nfiacco commented Jun 5, 2024

To show a visualizer element! Honestly just a way of accessing the Audio element/ref would fantastic— because then we'd have a way to control the playback more granularly in addition to being able show a visualization.

@tomashanecak
Copy link

Agreed, that would be a great feature. I am currently struggling with visualizing user audio input. When I try to modify the node module I get ocasional weird loud static noise from the assistant. I suppose it might be some concurrent access to audio stream causing it in my case :/

@nikhilro
Copy link
Contributor

nikhilro commented Jul 15, 2024

we expose volume level updates if that helps

you can likely expose more stuff from daily webrtc connection directly. sdk is a thin wrapper on it. code here: https://github.com/VapiAI/web/blob/main/vapi.ts

happy to merge any PRs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants