zello-channel-api
zello-channel-api copied to clipboard
How to play audio that sent from "Channel API" automatically in Android app
We are using "Consumer Zello" and "Channel API".
Audio than send from "Streaming voice messages" API is only recieved and notified in Android app but don't play automatically.
Would you tell us how to play automatically voice massage like as voice that sent from PTT button.
Our customers who are considering using "Zello work" need the "auto play" function. It would be helpful if you could answer early.
Thank you.
Voice message is played automatically in iOS app. Sorry for our unenough confirmation.
However, not played automatically in Android app. Please check Android app.
Thank you.
There should be no difference in how messages play in iOS or Android. Please verify that your status is set to Available in the app, and that you didn't accidentally mute sender or the channel. If the problem persists please send problem report from the app and update this ticket with the username and channel name, where you experienced the problem.
Thanks @agatx
I checked these, but are ok.(my status is online and channel is not mute.) And reproduce problem. I sent problem report.
My channel and username here
- channel:
- osworksjp-test-rtc
- 実験ちゃんねる
- username:
- sender: [email protected]
- receiver: rtc-tamura
I looked at the logs and it showed the Zello app status was set to Busy for most of your tests, which would explain the behavior you saw, which is as designed. If you want messages to play automatically the status must be Available. Please note that Android app has a feature, where it automatically changes status to Busy when the phone is in silent mode.
For your last test before sending the report you set status to Online but looks like the message was not sent completely and the sender disconnected right after trying to send it.
I noticed another issue too.
- Looks like you are sending audio packets much faster than real time. This won't work reliably. In your code you need to pace your packets to be close to real time (not much faster). For example if you send 20 ms of audio per packet you, you need to send them every 20 ms.
- This will likely also fix https://github.com/zelloptt/zello-channel-api/issues/87 for you.
Thank you so much @agatx
I tried with app status "Online", phone sound enabled and appended 20ms(frame size) wait between packets, but the result was same. (not played automatically, and received a part. received fully one time in 10 times.)
Channel name that used in test is "osworksjp-test2". Would you please check the log again?
Sorry to trouble you...