Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microphone emit no sound to the others #3834

Open
HuguesDug opened this issue Apr 13, 2024 · 22 comments
Open

Microphone emit no sound to the others #3834

HuguesDug opened this issue Apr 13, 2024 · 22 comments
Labels
1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees) bug Something isn't working
Milestone

Comments

@HuguesDug
Copy link

Steps to reproduce

Receive a talk call
Answer the call, voice only
You hear the other participant, but it does not hear you
Toggling microphone mute/unmute does not change the problem

Expected behaviour

Both sides should hear each other

Actual behaviour

I was hearing perfectly the other, he was not.

On my side, an android phone, on the other side a iphone.
Having a call with the same participant on his phone, using the web version of talk, it works perfectly.
So, problem is from the android phone.

Authorizations have been checked, use of microphone is OK.

No error message.

Device brand and model

HUAWEI EML-L09 (P20)

Android version

28

Nextcloud Talk app version

18.1.0

Nextcloud server version

28.0.4

Talk version

18.0.6

Custom Signaling server configured

Yes (specify version in Additional Information)

Custom TURN server configured

Yes

Custom STUN server configured

Yes

Android logs

No response

Server log

Nothing on the server log that day

Additional information

No response

@HuguesDug HuguesDug added 0. Needs triage bug Something isn't working labels Apr 13, 2024
@mahibi
Copy link
Collaborator

mahibi commented Apr 17, 2024

Thanks for reporting @HuguesDug
Is there any chance you can try out the same setup but with an other smartphone? Just to try out it's related to the device...

@HuguesDug
Copy link
Author

I will see what I can do to test with another phone. But not easy to setup.

@mahibi
Copy link
Collaborator

mahibi commented Apr 19, 2024

I was now able to reproduce this with a Redmi Note 7.

NC talk android app version: 18.0.0 & 19.0.0RC4
Nextcloud server version: 29.0.0 RC5 & 30.0.0 dev

So it's something related to devices. So far no idea, i will investigate further..

@mahibi mahibi added 1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees) and removed 0. Needs triage labels Apr 19, 2024
@mahibi mahibi added this to the 19.0.0 milestone Apr 19, 2024
@HuguesDug
Copy link
Author

Super ! (as you are able to reproduce, you will have a chance to fix).

Good luck. Looking forward the Bug Fix

@mahibi mahibi modified the milestones: 19.0.0, 19.1.0 Apr 23, 2024
@buskjan
Copy link

buskjan commented May 26, 2024

I have the exact same issue. Mic not working on my Nokia 7.2. When using my tablet (Nokia T20) the mic is working.

@Selaron
Copy link

Selaron commented May 26, 2024

Same thing on Nokia 6.2.
As a workaround I installed Talk 17.0.2 from GitHub releases.

@buskjan
Copy link

buskjan commented May 26, 2024

@Selaron Did you downgrade?

@Selaron
Copy link

Selaron commented May 26, 2024

Yes I downgrade from 18 to 17, but I don't know the exact point release that made microphone stop working.

@buskjan
Copy link

buskjan commented May 27, 2024

Downgrade step by step to version 15.1.x with no success. I guess it's messages only until I get a new phone.
When reinstalling 19.0.0 I got a hint from the phone that I can use ptt in the call. Sadly, there is no icon for that.

@buskjan
Copy link

buskjan commented May 30, 2024

I downgraded step by step to version 15.1.x with no success. I guess it's messages only until I get a new phone. I also tried on an Fairphone 3+ and it was the same disapointing result as with the Nokia 7.2

@mahibi
Copy link
Collaborator

mahibi commented Jul 3, 2024

When reinstalling 19.0.0 I got a hint from the phone that I can use ptt in the call. Sadly, there is no icon for that.

Push to talk is when holding the muted mic button. Then it's unmuted while holding. It's kind of a "hidden feature", thus the hint. Anyway this is not related to the issue at all.

@mahibi
Copy link
Collaborator

mahibi commented Jul 3, 2024

I tried to find this out again but it turned out the mic on my redmi device was not working at all 🤯 (so also not for other apps). After a device restart it worked again and also for the Talk app calls. So i must assume i was never able to reproduce the actual problem of this github issue. This also explains why i was not able to find anything while debugging.
So bad news is: i don't have a device to reproduce.

What would help to narrow down this issue is if you could send the diagnosis report of the talk app
(Settings > Advanced category > Diagnosis > choose copy from upper right corner menu).

If you are using older app version where the issue does not occur (17.0.2 for @Selaron ?), the diagnosis screen is not available. Then please send these infos:

  • device
  • talk app version
  • server version
  • server talk version
  • external signaling server used?

@HuguesDug
Copy link
Author

Here it is

Méta-informations

Generation of system report

4 juil. 2024 03:47:30

Téléphone

Appareil

HUAWEI EML-L09

Version Android

28

Services Google Play

Les services Google Play sont disponibles

App

Nom de l’application

Nextcloud Talk

Version de l'app

v19.0.1

Build flavor

gplay

Paramètres pour la batterie

Optimisation de la batterie ignorée, tout va bien

Calls notification channel enabled?

Oui

Messages notification channel enabled?

Oui

Jeton de poussé Firebase

crYsz...

Latest firebase push token generation

Inconnu

Latest firebase push token fetch

4 juil. 2024 03:46:27

Utilisateurs enregistrés

1

Compte actuel

Serveur

https://xxxx.xxxx.free.fr/

Utilisateur

yyyyyyy xxxxxxx

User status enabled?

Oui

Server notification app installed?

Oui

Latest push registration at server

4 juil. 2024 03:46:29

Latest push registration at push proxy

4 juil. 2024 03:46:30

Version du serveur

29.0.3

Version du serveur Talk

19.0.4

Signaling Mode

Interne

@buskjan
Copy link

buskjan commented Jul 4, 2024

And another one from Jan B

Diagnosis

Generation of system report

juli 2024 08:02:30

Telefon

Enhet

HMD Global Nokia 7.2

Google Play services

Google Play services are not available.
Notifications are not supported

App

Appnamn

Nextcloud Talk

App version

v19.0.1

Build flavor

generic

Registrerade anvandare

1

Nuvarande konto

Server

https://xxx.xxx.xxx/

User

N N

User status enabled?

Ja

Server notification app installed?

Ja

Server version

29.0.3

Server Talk version

19.0.4

Signaling Mode

Internal

@muchachagrande
Copy link

Meta-información

Generación del reporte del sistema

10 jul. 2024 14:59:54

Teléfono

Dispositivo

samsung SM-T561

Versión de Android

25

Servicios de Google Play

Los servicios de Google Play no están disponibles. Las notificaciones no están soportadas

Aplicación

Nombre de la app

Nextcloud Talk

Versión de la App

v19.0.1

Build flavor

gplay

Usuarios registrados

1

Cuenta actual

Servidor

https://cloud.example.com

Usuario

Casa

¿Los estados de usuario están habilitados?

¿La app de notificaciones de servidor está instalada?

Versión del servidor

29.0.3

Versión de Talk del servidor

19.0.4

Modo de señalización

Externo

@muchachagrande
Copy link

Meta-información

Generación del reporte del sistema

10 jul 2024 3:05:46 p. m.

Teléfono

Dispositivo

Raspberry Pi 4

Versión de Android

34

Servicios de Google Play

Los servicios de Google Play no están disponibles. Las notificaciones no están soportadas

Aplicación

Nombre de la app

Nextcloud Talk

Versión de la App

v18.1.0

Build flavor

generic

Usuarios registrados

1

Cuenta actual

Servidor

https://cloud.example.com

Usuario

Casa

¿Los estados de usuario están habilitados?

¿La app de notificaciones de servidor está instalada?

Versión del servidor

29.0.3

Versión de Talk del servidor

19.0.4

Modo de señalización

Externo

@Selaron
Copy link

Selaron commented Jul 25, 2024

Meta-Information

Erzeugung des Systemberichts

25.07.2024 21:10:41

Telefon

Gerät

HMD Global Nokia 6.2

Android-Version

30

Google Play-Dienste

Google Play-Dienste sind verfügbar

App

App-Name

Nextcloud Talk

App-Version

v19.0.1

Build flavor

gplay

Batterie-Einstellungen

Die Batterieoptimierung wird nicht ignoriert. Dies sollte geändert werden!

Anrufbenachrichtigungskanal aktiviert?

Ja

Nachrichtenbenachrichtigungskanal aktiviert?

Ja

Firebase-Push-Token

dZOlZ...

Neueste Firebase-Push-Token-Generation

Unbekannt

Neuester Firebase-Push-Token-Abruf

25.07.2024 21:02:52

Registrierte Benutzer

2

Aktuelles Konto

Server

yes

Benutzer

Me

Benutzerstatus aktiviert?

Ja

Server-Benachrichtigungs-App installiert?

Ja

Aktuelle Push-Registrierung am Server

25.07.2024 21:03:00

Aktuelle Push-Registrierung beim Push-Proxy

25.07.2024 21:03:01

Serverversion

29.0.3

Serverversion von Talk

19.0.7

Signalisierungsmodus

Tried both: Intern and Extern, no sound thru microphone

Version 17.1.0RC1 is the first version after 17.0.2 that silences the microphone, while 17.0.2 works well.

@madcollectordev
Copy link

Same problem with a Samsung S8 running Android 9 and Talk 19.0.1
Mic is enabled, with permission, but other callers can't hear anything. I will try 17.0.2 tonight

@binsentsu
Copy link

binsentsu commented Sep 10, 2024

Having same issue. Hereby the findings on my device (Motorola Moto G6 Plus, LineageOs21,Android 14) which can maybe help to find a solution: When the V19.0.1 is cleanly installed, the very first call has correct working microphone. All following calls don't have working microphone. When I then clear cache and data for the app, the same process can be repeated, so first call working, following calls not. Following tested versions all have this issue: 20.0.0-rc2, 19.0.1, 18.1.0, 17.1.3 and 17.1.0. Just like others mentioned, version 17.0.2 is working without microphone issues. So looks like it was introduced in 17.1.0.

@binsentsu
Copy link

binsentsu commented Sep 11, 2024

Was able to debug the application on the device. The culprit seems to be the startMicInputDetection() in the CallActivity. The very first time a call is started, the mic permission was not yet given, so the micInputAudioRecordThread was not initialized in this method. In this scenario audio came through. The following times, the micInputAudioRecordThread is initialized as the permission was given and the microphone input is thereby being additionally captured through micInputAudioRecorder. From then on, sound is not emitted to others. When I bridge the startMicInputDetection and skip its content, microphone is working every time. In 17.1.0 this extra micInputAudioRecordThread was also introduced, so this confirms the case. It's not an issue on other devices I own and I don't know much about the internals, but maybe some devices don't cope well with this kind of 'double' read of the microphone stream? I hope this info can lead you guys to a solution. Feel free to ping if tests would be necessary.

When issue occurs logcat is emitting following error:

2024-09-11 23:45:06.961 1070-15992 audio_hw_primary android.hardware.audio.service E start_input_stream: use case assigned already in use, stream(0xeea86310)usecase(20: audio-record)

@mahibi mahibi modified the milestones: 19.1.0, 20.0.1 Sep 14, 2024
@mahibi mahibi added this to the 20.0.2 milestone Sep 17, 2024
@alxrdn
Copy link

alxrdn commented Sep 17, 2024

For reference, I have the same issue on a Oneplus 3t

@mrtumnus
Copy link

I experienced this on a Motorola phone. Downgrading to 17.0.2 is working well so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants