Android Tutorial Walkie Talkie - Audio streaming over Wifi or Bluetooth

Discussion in 'Tutorials & Examples' started by Erel, Jun 30, 2013.

Thread Status:
Not open for further replies.
  1. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread in the questions forum.
     
  2. ciapw

    ciapw Member Licensed User

    Hi.. can I use this example to implement voice communication between my android phone and nanopi neo 2 (there will be microphone and loudspeaker attached on the nanopi neo 2 as well) ? So both of the phone and nanopi neo 2 can both receive and transmit voice messages?
    If it couldn't . How to implement this?
    Thank you. I am looking forward to your comments.
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    This example works on Android. It sends or receives raw PCM data. You can build a similar solution that runs on a different client. It will work if you use the same protocol.
     
  4. ciapw

    ciapw Member Licensed User

    Do you mean the same protocol is the same wifi connection? IIf i am mistaken, please kindly explained it to me. Thanks a lot for your help :)
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    The data in this example is PCM data and it is sent with AsyncStreams in prefix mode.

    This is the protocol.
     
  6. ciapw

    ciapw Member Licensed User

    Hi Erel. I found this post written by you. If my data will be sent through I2C from button hardware to nanopi, i couldn't use AsyncStreams in prefix mode, could I?

     
    Last edited: Jul 30, 2017
  7. ciapw

    ciapw Member Licensed User

    Hi Philip .. Can we use UDP send and receive packet method by taking the data from mqtt broker? The idea will be like this :

    1.Person A press the button on the phone , the phone will record the message and when person A press the button again , the message will be sent through a MQTT broker (test.mosquitto.org)
    2. When a message is sent from A, NanoPi will get the message from test.mosquitto.org, NanoPi will playback the message so person B will hear it.

    Thankyou . I am looking forward to your reply:)
     
  8. cxdzbl

    cxdzbl Active Member Licensed User

    How can I make the recording do not save directly to byte, and then convert byte to audio file playback?
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    I'm sorry but I don't understand the question.
     
  10. Roland Obeng

    Roland Obeng New Member Licensed User

    the walkie talkie example above works perfectly.
    Please I want to ask if communication can be done through radio waves(channels) between two android devices instead of WiFi and Bluetooth.

    I would like an example if it is going to be possible

    Thanks
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    No. Android doesn't support such communication.
     
  12. Roland Obeng

    Roland Obeng New Member Licensed User

    Thanks
     
  13. deantangNYP

    deantangNYP Active Member Licensed User

    May i know how can i configure this WalkieTalkie example to operate in Cellular Network? (assuming i know the IP address of both the Android device)
    also, possible to have it in full duplex (ignoring the feedback)?
    Thanks
     
    Last edited: Jan 10, 2019
  14. DonManfred

    DonManfred Expert Licensed User

    It is never a good idea to post to existing threads.

    You should always create a new thread in the questionsforum for any question you have.
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice