-
-
Notifications
You must be signed in to change notification settings - Fork 14
How to stream and play PCM data returned from the backend? #363
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
Comments
Unfortunately is is not possible currently. Adding support for worklets, which is on our road map, will make it possible. We are planning to provide worklets support in 0.6.0. |
Thank you for your hard work |
@418442040 https://www.npmjs.com/package/pcm-player you can checkout this player, works for me |
You mean you used |
It is written only in js, so I am not sure if performance will be good enough |
Yes, exactly. However, keep in mind that recording in parallel can get tricky and buggy (I am not a react native expert), so consider this a workaround until better solutions become available. You can use the code from pcm-player and import react-native-audio-api. |
We have added microphone support in the 0.6.0-rc.2. Our implementation has some kind of callback which streams data to js. We have provided example app which records and plays audio data. You can check it here, it could be helpful in your case. |
Feature Request
The backend streams a large number of PCM fragments. How can I use react-native-audio-api to stream and play these PCM fragments in real time while they are being received? Is this achievable? This is just a consultation question. Thank you!
The text was updated successfully, but these errors were encountered: