Android Question Need like ( walkie-talkie-audio-streaming-over-wifi ) but "full duplex"

Adamdam

Active Member
Licensed User
Longtime User
Hi All,

Greetings,

I used this very good example:
https://www.b4x.com/android/forum/t...audio-streaming-over-wifi-or-bluetooth.30648/

It work very well in half-duplex ( one can speak at a time),
I need to make it work in "full duplex".

I change in its code by (delete constraint to listen/or speak only), it work but with very high echo interference between the two directions, and very very high noisy.

I think, I need to make two streaming for the two directions, right ?

Can any help to make full-duplex work well ?

best regards
 

sorex

Expert
Licensed User
Longtime User
a massive whistleling echo amplifying over time will be created indeed.

it might work with a headset/ear-mic-phone-thing as the volume is a lot lower (and going in the ear) so the microphone won't capture it again.
altho I'm not sure the received streaming sound will be played through it. I can test this tomorrow.

only an external microphone works fine for sure.
I used these mini MICs on my hallway sound monitoring system to improve sound (levels).

https://www.ebay.co.uk/i/360588468943?roken2=tf.pcGxhdWs=.g950.cpin.am&item=360588468943&version=B

But you'll need a directional one that only captures what's in front of it. (and prefered the opposite direction of the phone speaker)
 
Upvote 0

deantangNYP

Active Member
Licensed User
Longtime User
Hi All,

Greetings,

I used this very good example:
https://www.b4x.com/android/forum/t...audio-streaming-over-wifi-or-bluetooth.30648/

It work very well in half-duplex ( one can speak at a time),
I need to make it work in "full duplex".

I change in its code by (delete constraint to listen/or speak only), it work but with very high echo interference between the two directions, and very very high noisy.

I think, I need to make two streaming for the two directions, right ?

Can any help to make full-duplex work well ?

best regards

Hi Khairy, Can you share how you "delete constraint to listen/or speak only" ? i would like to try full duplex too. Thanks
 
Upvote 0

Adamdam

Active Member
Licensed User
Longtime User
Hi Khairy, Can you share how you "delete constraint to listen/or speak only" ? i would like to try full duplex too. Thanks

Hi deantang,

In the "connector.bas" file, at the function "astream_NewData" comment some rows as following:

Sub astream_NewData (Buffer() As Byte)
''If sendingAudio = False Then
'play the received audio data
audioStream.Write(Buffer)
''End If
End Sub

Best regards
 
Upvote 0

Similar Threads

Top