hola buen dia, escribo en este medio porque tengo ciertos detalles respecto al bluetooth. Al realizar llamadas con bluetooth la calidad del audio disminuye considerablemente (he intentado con varios auriculares y celulares) solo con un samsung A52 me ha funcionado bien, es de menor calidad pero aun es entendible el audio, sin embargo en la gran mayoria de otros casos es inestable el audio y la llamada en general.
Hello, good day. I am writing here because I have certain details regarding bluetooth. When making calls with bluetooth, the audio quality decreases considerably (I have tried with several headphones and cell phones) only with a Samsung A52 it has worked well for me, it is of lower quality but the audio is still understandable, however in the vast majority of other cases the audio and the call in general are unstable.
private fun initAudioManager() { audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager resetSco() audioManager.startBluetoothSco() } private fun resetSco() { audioManager.mode = AudioManager.MODE_IN_COMMUNICATION val audioTrack = AudioTrack( AudioManager.STREAM_VOICE_CALL, 8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, 16, MODE_STREAM ) audioTrack.play() audioManager.stopBluetoothSco() audioManager.isBluetoothScoOn = false audioManager.isSpeakerphoneOn = false audioManager.isWiredHeadsetOn = false
... View more