zello-channel-api icon indicating copy to clipboard operation
zello-channel-api copied to clipboard

How to play audio that sent from "Channel API" automatically in Android app

Open shtamura opened this issue 4 years ago • 5 comments

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.

shtamura avatar Jan 07 '20 09:01 shtamura

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.

shtamura avatar Jan 08 '20 06:01 shtamura

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.

agatx avatar Jan 08 '20 06:01 agatx

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:

shtamura avatar Jan 08 '20 07:01 shtamura

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.

agatx avatar Jan 08 '20 23:01 agatx

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...

shtamura avatar Jan 10 '20 06:01 shtamura