diff --git a/android/app/build.gradle b/android/app/build.gradle index f3245d6a..ef926979 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -11,7 +11,7 @@ android { applicationId "com.compassconnections.app" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 132 + versionCode 133 versionName "1.32.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 82edecf5..21480fd4 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -88,6 +88,18 @@ + + + + + + + diff --git a/common/messages/de.json b/common/messages/de.json index 5e1a20b2..fc5b4a94 100644 --- a/common/messages/de.json +++ b/common/messages/de.json @@ -1076,6 +1076,7 @@ "profile.voice.review_transcript": "Das haben wir gehört. Sie müssen nichts aufräumen: Ähs, Fehlstarts und die Stellen, an denen Sie sich mitten im Satz korrigiert haben, übernehmen wir für Sie — nichts davon landet in Ihrem Profil. Zu korrigieren lohnt sich nur, was wir falsch verstanden haben: Namen und Orte sind die üblichen Verdächtigen.", "profile.voice.fill_profile": "Mein Profil ausfüllen", "profile.voice.error.permission": "Wir konnten nicht auf Ihr Mikrofon zugreifen. Erlauben Sie den Mikrofonzugriff in Ihrem Browser, und versuchen Sie es erneut.", + "profile.voice.error.permission_app": "Wir konnten nicht auf Ihr Mikrofon zugreifen. Erlauben Sie die Mikrofon-Berechtigung für Compass in Ihren Geräteeinstellungen, und versuchen Sie es erneut.", "profile.voice.error.unsupported": "Ihr Browser unterstützt keine Sprachaufnahme. Nutzen Sie stattdessen die Option Link oder Text.", "profile.voice.error.failed": "Die Aufnahme ist fehlgeschlagen. Bitte versuchen Sie es erneut.", "profile.voice.error.transcription": "Wir konnten Ihre Aufnahme nicht transkribieren. Sie ist noch da — versuchen Sie es erneut, oder füllen Sie Ihr Profil manuell aus.", diff --git a/common/messages/fr.json b/common/messages/fr.json index 7d90780a..1b1a0cb0 100644 --- a/common/messages/fr.json +++ b/common/messages/fr.json @@ -1075,6 +1075,7 @@ "profile.voice.review_transcript": "Voici ce que nous avons entendu. Pas besoin de le nettoyer : les hésitations, les faux départs, les fois où vous avez changé d'avis en cours de phrase sont gérés pour vous, et rien de tout cela ne se retrouvera sur votre profil. La seule chose à corriger, c'est ce que nous avons mal entendu : les noms et les lieux sont les suspects habituels.", "profile.voice.fill_profile": "Remplir mon profil", "profile.voice.error.permission": "Nous n'avons pas pu accéder à votre microphone. Autorisez l'accès au microphone dans votre navigateur, puis réessayez.", + "profile.voice.error.permission_app": "Nous n'avons pas pu accéder à votre microphone. Autorisez la permission Microphone pour Compass dans les réglages de votre appareil, puis réessayez.", "profile.voice.error.unsupported": "Votre navigateur ne prend pas en charge l'enregistrement vocal. Essayez plutôt l'option lien ou texte.", "profile.voice.error.failed": "L'enregistrement a échoué. Veuillez réessayer.", "profile.voice.error.transcription": "Nous n'avons pas pu transcrire votre enregistrement. Il est toujours là — réessayez, ou remplissez votre profil manuellement.", diff --git a/web/components/voice-autofill-section.tsx b/web/components/voice-autofill-section.tsx index e3ec200b..58a00efb 100644 --- a/web/components/voice-autofill-section.tsx +++ b/web/components/voice-autofill-section.tsx @@ -20,6 +20,7 @@ import { savePendingRecording, savePendingTranscript, } from 'web/lib/util/recording-store' +import {isAndroidApp} from 'web/lib/util/webview' function formatTime(totalSeconds: number) { const minutes = Math.floor(totalSeconds / 60) @@ -119,10 +120,17 @@ export function VoiceAutofillSection(props: { const errorMessage = recorder.error === 'permission' - ? t( - 'profile.voice.error.permission', - 'We could not access your microphone. Allow microphone access in your browser, then try again.', - ) + ? // In the Android app there is no browser to change a setting in: the prompt is Android's, and + // once denied it can only be undone from the app's own permission screen. + isAndroidApp() + ? t( + 'profile.voice.error.permission_app', + 'We could not access your microphone. Allow the Microphone permission for Compass in your device settings, then try again.', + ) + : t( + 'profile.voice.error.permission', + 'We could not access your microphone. Allow microphone access in your browser, then try again.', + ) : recorder.error === 'unsupported' ? t( 'profile.voice.error.unsupported',