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

Long delay before audio plays #7

Open
peterfhannon opened this issue Oct 19, 2016 · 2 comments
Open

Long delay before audio plays #7

peterfhannon opened this issue Oct 19, 2016 · 2 comments
Labels

Comments

@peterfhannon
Copy link

peterfhannon commented Oct 19, 2016

Thanks for developing this! Unfortunately, when playing audio for the first time after enabling, there is a long delay before the audio starts playing. We have experimented with a text-to-speech app (speaking a single short sentence), playing from a huawei P8 to a Jaguar FX in car stereo and it is generally around 15 seconds. Playing music from the built-in music app takes around 8 seconds to start.
Any ideas why it is so long and what we could do about it?
Without using this app for sco routing, Facebook messenger VOIP app is almost instantaneous to start, as are the built-in phone app and a number of iOS apps.
Many thanks in advance

@sauravpradhan
Copy link
Owner

Hey @peterfhannon in the app there is no delay added. Even if there is delay it is to set mode and its of some 500-600ms i believe. Try playing a simple file using soundpool and let me know the results. I can debug further .

@sauravpradhan
Copy link
Owner

sauravpradhan commented Nov 7, 2016

Tested with my audio recorder/player app (https://github.com/sauravpradhan/Audio-recorder-player), APK-https://drive.google.com/file/d/0Byaspar4S5SEaThQMXo2azlHZms/view?usp=sharing .
This works absolutely fine with no delay. There is no delay added in the application. @peterfhannon Please debug from application side what might have gone wrong. What is the actual audio you are trying to play can you please clarify ? Might be the text to speech conversion is taking time !

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

No branches or pull requests

2 participants