HearText – Appeler, lire et répondre, tout simplement
FR

Accueil › Android : appels au premier plan

Appels au premier plan (Android)

HearText est une application d’appel pour les personnes sourdes et malentendantes : appeler et recevoir des appels, avec un sous-titrage en direct de ce que dit l’autre personne. L’utilisateur répond en écrivant (une voix numérique prononce le texte) ou avec sa propre voix.

Vidéo

Un appel entrant avec la notification d’appel, la réponse, puis l’appel dans l’application : l’état de l’appel, le sous-titrage en direct et la voix numérique qui prononce la phrase d’accueil. Les données personnelles (numéro de téléphone, nom et photo de fond d’écran) sont floutées ; la vidéo n’a pas de son.

FOREGROUND_SERVICE_PHONE_CALL

HearText gère les appels téléphoniques (VoIP) via l’API Telecom d’Android, comme application d’appel autogérée (ConnectionService avec MANAGE_OWN_CALLS).

  • Lors d’un appel entrant, l’application affiche un écran d’appel en plein écran, même sur l’écran verrouillé.
  • Après la réponse, et lors d’un appel sortant, l’appel fonctionne comme service au premier plan, avec une notification d’appel en cours (avec un bouton pour raccrocher).
  • Ainsi, l’appel reste connecté et le sous-titrage en direct continue d’arriver, même quand l’utilisateur verrouille l’écran ou passe à une autre application.
  • La tâche démarre directement sur une action de l’utilisateur (répondre ou appeler). Elle ne peut pas être interrompue ou reprise plus tard : sinon, l’appel est coupé.

FOREGROUND_SERVICE_MICROPHONE

Pendant un appel, l’utilisateur peut parler avec sa propre voix (mode « Parler »). Le micro envoie cette parole en direct à l’interlocuteur et la transforme en texte pour le fil de la conversation.

  • Le micro est utilisé seulement pendant un appel actif que l’utilisateur a lancé ou accepté lui-même. Il s’arrête dès que l’appel se termine.
  • Si l’écran est verrouillé ou si une autre application est ouverte, le micro doit continuer à fonctionner ; sinon, l’interlocuteur n’entend plus rien. C’est pourquoi il fonctionne dans le service d’appel au premier plan.
  • L’audio n’est pas enregistré.

Appareil photo

HearText n’utilise pas l’appareil photo et ne fait pas d’appels vidéo. La mention FOREGROUND_SERVICE_CAMERA venait d’un composant d’appel vidéo dans une bibliothèque utilisée (écran d’appel) ; ce composant a été retiré de l’application.

Summary (English)

HearText is a calling app for deaf and hard-of-hearing people with live captions of the other person's speech. It is a self-managed calling app (ConnectionService, MANAGE_OWN_CALLS).

  • FOREGROUND_SERVICE_PHONE_CALL: an ongoing call (incoming, answered from a full-screen ringing screen, or outgoing) runs as a foreground service with an ongoing-call notification and hang-up action, so the call stays connected and captions keep arriving when the screen is locked or another app is opened. It starts on user action and cannot be paused or deferred without dropping the call.
  • FOREGROUND_SERVICE_MICROPHONE: during a call the user can speak with their own voice ("Talk" mode). The microphone streams to the other party only during an active call and stops when the call ends; it must keep working when the screen is locked. Audio is not stored.
  • Video: incoming call notification, answering, and the ongoing call with call status, live captions and the digital voice speaking the opening message. Personal details (phone number, name, wallpaper) are blurred; the video has no sound.
  • Camera: not used. The camera service type came from a video-call option in a third-party ringing-screen library and has been removed.