P Philip Prins Active Member Licensed User Longtime User Feb 21, 2024 #1 Hello , Is there a way to record audio from the microphone without the threading library? Regards Philip
Hello , Is there a way to record audio from the microphone without the threading library? Regards Philip
stevel05 Expert Licensed User Longtime User Feb 21, 2024 #2 Have a look at this version Thread '[B4j] jAudioRecord2' https://www.b4x.com/android/forum/threads/b4j-jaudiorecord2.142154/ Upvote 0
Have a look at this version Thread '[B4j] jAudioRecord2' https://www.b4x.com/android/forum/threads/b4j-jaudiorecord2.142154/
P Philip Prins Active Member Licensed User Longtime User Feb 21, 2024 #3 Hello Steve, I have looked at it but could not figure out to send the audio in a byte array. I use AudioRecord and send the AR buffer over UDP to a server. But there is a rattling noise on the receiving end. When i send the same from an Android device the audio is clear. Upvote 0
Hello Steve, I have looked at it but could not figure out to send the audio in a byte array. I use AudioRecord and send the AR buffer over UDP to a server. But there is a rattling noise on the receiving end. When i send the same from an Android device the audio is clear.
stevel05 Expert Licensed User Longtime User Feb 21, 2024 #4 Philip Prins said: But there is a rattling noise on the receiving end. Click to expand... If the rattling are clicks and pops, it may not be fast enough to capture the audio on the Gui thread, and will need the threading library. Upvote 0
Philip Prins said: But there is a rattling noise on the receiving end. Click to expand... If the rattling are clicks and pops, it may not be fast enough to capture the audio on the Gui thread, and will need the threading library.
stevel05 Expert Licensed User Longtime User Feb 21, 2024 #5 For streaming you will probably get better performance with the AudioStreamer object from the Audio Library: https://www.b4x.com/android/forum/threads/audio-library-v1-5-new-audiostreamer-object.30550/ Upvote 0
For streaming you will probably get better performance with the AudioStreamer object from the Audio Library: https://www.b4x.com/android/forum/threads/audio-library-v1-5-new-audiostreamer-object.30550/
P Philip Prins Active Member Licensed User Longtime User Feb 21, 2024 #6 stevel05 said: For streaming you will probably get better performance with the AudioStreamer object from the Audio Library: https://www.b4x.com/android/forum/threads/audio-library-v1-5-new-audiostreamer-object.30550/ Click to expand... Hello Steve, I works on the Android side. On the B4J side i use the example from you with threading. With one exception that i use a OPUS library to convert the PCM to OPUS. Upvote 0
stevel05 said: For streaming you will probably get better performance with the AudioStreamer object from the Audio Library: https://www.b4x.com/android/forum/threads/audio-library-v1-5-new-audiostreamer-object.30550/ Click to expand... Hello Steve, I works on the Android side. On the B4J side i use the example from you with threading. With one exception that i use a OPUS library to convert the PCM to OPUS.
stevel05 Expert Licensed User Longtime User Feb 21, 2024 #7 I am not familiar with opus, but if it's adding more processing to the chain it could quite easily cause latency in the signal path. Upvote 0
I am not familiar with opus, but if it's adding more processing to the chain it could quite easily cause latency in the signal path.
P Philip Prins Active Member Licensed User Longtime User Feb 21, 2024 #8 I will try without OPUS. So there is no other alternative without threading? Upvote 0
stevel05 Expert Licensed User Longtime User Feb 21, 2024 #9 Philip Prins said: So there is no other alternative without threading? Click to expand... The AudioStreamer I linked to earlier. Upvote 0
Philip Prins said: So there is no other alternative without threading? Click to expand... The AudioStreamer I linked to earlier.
P Philip Prins Active Member Licensed User Longtime User Feb 21, 2024 #10 stevel05 said: The AudioStreamer I linked to earlier. Click to expand... Can this be used with B4J on a PC? Upvote 0
stevel05 said: The AudioStreamer I linked to earlier. Click to expand... Can this be used with B4J on a PC?
stevel05 Expert Licensed User Longtime User Feb 21, 2024 #11 Sorry linked to the wrong one, you could.try this one https://www.b4x.com/android/forum/threads/jaudiostreamer-library.146107/ Upvote 0
Sorry linked to the wrong one, you could.try this one https://www.b4x.com/android/forum/threads/jaudiostreamer-library.146107/
P Philip Prins Active Member Licensed User Longtime User Feb 21, 2024 #12 Thanks Steve, I will try that one Upvote 0