B4A Question Recording incoming voice CALL_VOICE - Erel (first post)    Sep 02, 2019   (2 reactions) Not a simple task and unlikely to work on all phones.
You can use PhoneEvents with a foreground service to monitor the phone state. When there is an incoming call use AudioStreamer to record the MIC source: https://developer.android..AudioSource.html#MIC B4A Question Bluetooth audio mic - Erel (first post)    Feb 07, 2023 Are you able to capture audio from the headset with one of the other values: https://developer.android..AudioSource ?
If so then you can use two AudioStreamer objects. B4A Question Audio Recording W/O Mic - Erel (first post)    Nov 01, 2015 AudioStreamer captures audio from the microphone. The available sources are listed here: http://developer.android..AudioSource.html
You can't capture the internal streams. B4A Question Error with PhoneState - kalarius    Nov 23, 2023 End Sub Sub Activity_Create(FirstRun As Boolean) streamer.Initialize streamer.OutputFormat = AudioStreamer.OutputFormatDefault streamer.AudioSource = AudioStreamer.AudioSourceDefault Dim recordButton As Button recordButton.Initialize recordButton.Text = "Record" Ac B4A Question Audio Library v1.63 - IsInitialized ? - LucaMs (first post)    Sep 03, 2018 An AudioStreamer object must be inizialized, not the Audio library itself.
I don't know the library; try searching:
https://www.b4x./?query=audiostreamer+audiosource B4A Question Problem audioStream.VOLUME_MUSIC - Midimaster (first post)    Oct 18, 2020 Did you read this about the constants of Audio-Source?
https://developer.android..AudioSource.html
The mode 7 is interesting. But I have to tell you, I never used AudioStreamer with Initialize2
I'm again not 100% sure, that I understand your code, but why do you sent any Bytes to the (first) AudioS B4A Question record incoming call - Erel (first post)    Apr 12, 2016 Start with this example: https://www.b4x.-library-v1-5-new-audiostreamer-object.30550/
Call Initialize2 instead of Initialize and pass 4 (or try other values) for the audio source.
http://developer.android..AudioSource.html#VOICE_CALL B4A Library ExoPlayer - MediaPlayer / VideoView Alternative - Erel    Dec 25, 2023   (58 reactions) SimpleExoPlayer should be a process global variable.
Example of video playback from an asset file (same exact code will work with audio files as well):
Sub Process_Globals
Private player1 As SimpleExoPlayer
End Sub
Sub Globals
Private SimpleExoPlayerView1 As SimpleExoPlayerView
End Sub
Sub B4A Question bluetooth mic using AndroidVideoCapture - Erel (first post)    May 10, 2017 I'm not familiar with AndroidVideoCapture. It is worth trying it with AudioStreamer.
It allows you to choose the audio source (one of the values listed here: https://developer.android..AudioSource.html). Java Question Echo Cancellation libraries - Addo (first post)    Sep 14, 2021 its seems when i use audio source 7 "VOICE_COMMUNICATION" the echo reduced when i test it on api 11 and above
audiostream.Initialize2(7, "audiostream", cSAMPLE_RATE, True, cBitsPerSample, audiostream.VOLUME_MUSIC)
as the documentation refer in android developers website
https://developer.android. Page: 1   2   3   4   5   6   7   Powered by ColBERT |