Opt-in wake word: on-device keyword spotting in a microphone foreground service
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
- Engine: sherpa-onnx 2.0.1 keyword spotter (Apache-2.0) with the English zipformer-gigaspeech-3.3M KWS model (Apache-2.0, int8), fetched hash-pinned by scripts/fetch-wakeword.py into app/libs and src/full/assets (gitignored); CI and release run it. `full` flavour only (abiFilters arm64-v8a, armeabi-v7a, x86_64); `fdroid` has a stub engine and Settings says why. ProGuard keeps com.k2fsa.sherpa.onnx (JNI reads fields by name). - WakeWordService (foregroundServiceType microphone): persistent notification with Stop; audio only to the engine in memory; pauses while the sheet is up (AssistPresence), in battery saver, and with the screen off unless Settings says otherwise. On the word: the sheet opens listening through LembasAssistService.showSession when LLeMbas is the assistant, else the activity, else a "tap to ask" notification. - No microphone service at boot: WakeBootReceiver posts "tap to listen again"; MainActivity restarts a service the phone stopped. - Settings › Assistant › Wake word: switch (off), four built-in English phrases (BPE-tokenized with the model's bpe.model), screen-on only, battery-optimisation page; privacy and cost text. - The sheet's "no wake word" line now points at the setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
31 files changed
+1181
-22
No files matched your search
@@ -37,6 +37,10 @@ jobs:
|
||||
echo "369ad2b789f95a011f807e1fcb690ccef80bd7cd014fd139e73ae82dcc0baeab ktlint.jar" | sha256sum -c
|
||||
java -jar ktlint.jar "app/src/**/*.kt" "*.kts" "app/*.kts"
|
||||
|
||||
# The wake-word engine and model for the full build, hash-pinned (never in the repository).
|
||||
- name: Wake-word engine (hash-pinned)
|
||||
run: python3 scripts/fetch-wakeword.py
|
||||
|
||||
- uses: gradle/actions/wrapper-validation@v4
|
||||
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
@@ -43,6 +43,10 @@ jobs:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
|
||||
# The wake-word engine and model for the full build, hash-pinned (never in the repository).
|
||||
- name: Wake-word engine (hash-pinned)
|
||||
run: python3 scripts/fetch-wakeword.py
|
||||
|
||||
- uses: gradle/actions/wrapper-validation@v4
|
||||
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
@@ -16,3 +16,6 @@ local.properties
|
||||
.kotlin/
|
||||
# Python
|
||||
__pycache__/
|
||||
# The wake-word engine and model: fetched by scripts/fetch-wakeword.py, never committed
|
||||
/app/libs/
|
||||
/app/src/full/assets/wakeword/
|
||||
@@ -18,6 +18,14 @@ is in alpha and releases come off `main`.
|
||||
say nothing for a few seconds. The sheet says *In conversation* while it lasts. With a
|
||||
Bluetooth headset connected, its microphone is used, so the conversation can stay in your ear.
|
||||
Settings › Assistant › *Keep a spoken conversation going* (on; it needs voice replies).
|
||||
- **A wake word, if you want one** (off by default). Settings › Assistant › *Wake word*: say
|
||||
"Hey Lembas" (or one of three other English phrases) and the assistant opens, listening, over
|
||||
whatever is on screen. It listens on the phone with an open-source engine (sherpa-onnx) and a
|
||||
small on-device model; nothing leaves the phone before the word, and a notification is up the
|
||||
whole time it listens. It pauses in battery saver, while the assistant is open, and -- unless
|
||||
you change it -- with the screen off. Settings explains what it costs in battery and how to
|
||||
keep a phone's battery optimisation from stopping it. Not in the F-Droid build, which builds
|
||||
every library from source.
|
||||
- **Code in colour.** The file viewer highlights a source file by its language (as the server
|
||||
names it), and a reply's code blocks by their fence's language: comments, strings, numbers,
|
||||
keywords, type names, and markup's tags and attributes, in the theme's own colours in Shire
|
||||
|
||||
@@ -82,6 +82,8 @@ android {
|
||||
create("full") {
|
||||
dimension = "distribution"
|
||||
buildConfigField("boolean", "SELF_UPDATE", "true")
|
||||
// The wake-word engine's native code: phones and the 64-bit emulator, not 32-bit x86.
|
||||
ndk { abiFilters += listOf("arm64-v8a", "armeabi-v7a", "x86_64") }
|
||||
}
|
||||
create("fdroid") {
|
||||
dimension = "distribution"
|
||||
@@ -156,6 +158,10 @@ dependencies {
|
||||
implementation(libs.markwon.tables)
|
||||
implementation(libs.markwon.strikethrough)
|
||||
implementation(libs.unifiedpush.connector)
|
||||
// The wake-word engine, sherpa-onnx (Apache-2.0), in the `full` build only: its prebuilt Android
|
||||
// library, fetched hash-pinned by scripts/fetch-wakeword.py (never committed). The `fdroid`
|
||||
// build, which F-Droid builds from source, has no engine (src/fdroid/.../wake/Engine.kt).
|
||||
add("fullImplementation", files("libs/sherpa-onnx-2.0.1.aar"))
|
||||
|
||||
testImplementation(libs.junit)
|
||||
testImplementation(libs.kotlinx.coroutines.test)
|
||||
|
||||
Vendored
+3
@@ -17,3 +17,6 @@
|
||||
-dontwarn org.conscrypt.**
|
||||
-dontwarn org.bouncycastle.**
|
||||
-dontwarn org.openjsse.**
|
||||
|
||||
# The wake-word engine's JNI reads its config classes' fields by name.
|
||||
-keep class com.k2fsa.sherpa.onnx.** { *; }
|
||||
@@ -0,0 +1,14 @@
|
||||
package eu.llembas.android.wake
|
||||
|
||||
import android.content.Context
|
||||
|
||||
/**
|
||||
* The F-Droid build has no wake-word engine: F-Droid builds every library from source, and the
|
||||
* engine (sherpa-onnx, Apache-2.0) comes to the other build as its project's prebuilt Android
|
||||
* library. Settings says so; everything else about the wake word is the same code in both.
|
||||
*/
|
||||
object WakeEngine {
|
||||
const val AVAILABLE = false
|
||||
|
||||
fun create(context: Context, phrase: WakePhrase): WakeDetector? = null
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package eu.llembas.android.wake
|
||||
|
||||
import android.content.Context
|
||||
import com.k2fsa.sherpa.onnx.FeatureConfig
|
||||
import com.k2fsa.sherpa.onnx.KeywordSpotter
|
||||
import com.k2fsa.sherpa.onnx.KeywordSpotterConfig
|
||||
import com.k2fsa.sherpa.onnx.OnlineModelConfig
|
||||
import com.k2fsa.sherpa.onnx.OnlineStream
|
||||
import com.k2fsa.sherpa.onnx.OnlineTransducerModelConfig
|
||||
import java.io.File
|
||||
|
||||
/**
|
||||
* The wake-word engine: sherpa-onnx's keyword spotter (Apache-2.0) with its small English model
|
||||
* (a 3.3M-parameter zipformer, int8, Apache-2.0), both fetched hash-pinned at build time by
|
||||
* `scripts/fetch-wakeword.py`. It runs on the phone's CPU, one thread, on the 16 kHz samples the
|
||||
* service hands it; nothing leaves the phone.
|
||||
*
|
||||
* The model's files are copied out of the APK's assets once, into the app's no-backup files, so
|
||||
* the engine reads them as files beside a keywords file written for the chosen phrase.
|
||||
*/
|
||||
object WakeEngine {
|
||||
const val AVAILABLE = true
|
||||
|
||||
private val FILES = listOf("encoder.int8.onnx", "decoder.int8.onnx", "joiner.int8.onnx", "tokens.txt")
|
||||
|
||||
fun create(context: Context, phrase: WakePhrase): WakeDetector? = runCatching {
|
||||
val dir = File(context.noBackupFilesDir, "wakeword").apply { mkdirs() }
|
||||
for (name in FILES) {
|
||||
val target = File(dir, name)
|
||||
val size = context.assets.openFd("wakeword/$name").use { it.length }
|
||||
if (!target.exists() || (size >= 0 && target.length() != size)) {
|
||||
context.assets.open("wakeword/$name").use { input -> target.outputStream().use { input.copyTo(it) } }
|
||||
}
|
||||
}
|
||||
val keywords = File(dir, "keywords.txt").apply { writeText("${phrase.tokens} @${phrase.id}\n") }
|
||||
val config = KeywordSpotterConfig(
|
||||
featConfig = FeatureConfig(sampleRate = RATE, featureDim = 80),
|
||||
modelConfig = OnlineModelConfig(
|
||||
transducer = OnlineTransducerModelConfig(
|
||||
encoder = File(dir, "encoder.int8.onnx").path,
|
||||
decoder = File(dir, "decoder.int8.onnx").path,
|
||||
joiner = File(dir, "joiner.int8.onnx").path,
|
||||
),
|
||||
tokens = File(dir, "tokens.txt").path,
|
||||
modelType = "zipformer2",
|
||||
numThreads = 1,
|
||||
),
|
||||
keywordsFile = keywords.path,
|
||||
)
|
||||
SherpaDetector(KeywordSpotter(null, config))
|
||||
}.getOrNull()
|
||||
|
||||
private const val RATE = 16_000
|
||||
|
||||
private class SherpaDetector(private val spotter: KeywordSpotter) : WakeDetector {
|
||||
private val stream: OnlineStream = spotter.createStream()
|
||||
|
||||
override fun accept(samples: FloatArray): Boolean {
|
||||
stream.acceptWaveform(samples, RATE)
|
||||
while (spotter.isReady(stream)) {
|
||||
spotter.decode(stream)
|
||||
if (spotter.getResult(stream).keyword.isNotBlank()) {
|
||||
spotter.reset(stream)
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
override fun release() {
|
||||
stream.release()
|
||||
spotter.release()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,11 @@
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
<!-- A spoken conversation through a Bluetooth headset: its microphone made the route. -->
|
||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
||||
<!-- The wake word (opt-in): a microphone foreground service, and "tap to listen again"
|
||||
after a restart. -->
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
|
||||
<queries>
|
||||
<!-- UnifiedPush distributors (ntfy and others) are found by this action. -->
|
||||
@@ -151,6 +156,21 @@
|
||||
</intent-filter>
|
||||
</service>
|
||||
|
||||
<!-- The wake word: listens only while its notification is up (wake/WakeWordService.kt). -->
|
||||
<service
|
||||
android:name=".wake.WakeWordService"
|
||||
android:exported="false"
|
||||
android:foregroundServiceType="microphone" />
|
||||
|
||||
<receiver
|
||||
android:name=".wake.WakeBootReceiver"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
||||
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<receiver
|
||||
android:name=".push.CardActionReceiver"
|
||||
android:exported="false" />
|
||||
|
||||
@@ -54,6 +54,9 @@ import eu.llembas.android.ui.settings.SettingsScreen
|
||||
import eu.llembas.android.ui.signin.SignInScreen
|
||||
import eu.llembas.android.ui.theme.LembasTheme
|
||||
import eu.llembas.android.update.ReleaseCheck
|
||||
import eu.llembas.android.wake.WakeBootReceiver
|
||||
import eu.llembas.android.wake.WakeEngine
|
||||
import eu.llembas.android.wake.WakeWordService
|
||||
import kotlinx.coroutines.flow.distinctUntilChanged
|
||||
import kotlinx.coroutines.flow.first
|
||||
import kotlinx.coroutines.flow.map
|
||||
@@ -75,6 +78,10 @@ class MainActivity : ComponentActivity() {
|
||||
super.onCreate(savedInstanceState)
|
||||
take(intent)
|
||||
followLanguage()
|
||||
// A wake word that is on, but whose service the phone stopped: it listens again.
|
||||
lifecycleScope.launch {
|
||||
if (WakeEngine.AVAILABLE && lembas.instances.prefs.first().wakeWord) runCatching { WakeWordService.start(this@MainActivity) }
|
||||
}
|
||||
// At most once a day, and only while Settings › About says so (update/ReleaseCheck.kt).
|
||||
lifecycleScope.launch { runCatching { ReleaseCheck(this@MainActivity).daily() } }
|
||||
if (Build.VERSION.SDK_INT >= 33 &&
|
||||
@@ -115,6 +122,11 @@ class MainActivity : ComponentActivity() {
|
||||
}
|
||||
|
||||
private fun take(intent: Intent?) {
|
||||
// "Tap to listen again" after a restart: the app is on screen now, so the microphone
|
||||
// service may start.
|
||||
if (intent?.getBooleanExtra(WakeBootReceiver.EXTRA_RESUME, false) == true) {
|
||||
lifecycleScope.launch { if (lembas.instances.prefs.first().wakeWord) WakeWordService.start(this@MainActivity) }
|
||||
}
|
||||
val chat = intent?.getStringExtra(Notifications.EXTRA_CHAT)
|
||||
val schedule = intent?.getStringExtra(Notifications.EXTRA_SCHEDULE)
|
||||
val run = intent?.getStringExtra(Notifications.EXTRA_RUN)
|
||||
|
||||
@@ -17,6 +17,7 @@ import eu.llembas.android.AppLanguage
|
||||
import eu.llembas.android.auth.Prefs
|
||||
import eu.llembas.android.lembas
|
||||
import eu.llembas.android.ui.theme.LembasTheme
|
||||
import eu.llembas.android.wake.AssistPresence
|
||||
|
||||
/** What a way into the sheet asks for. */
|
||||
enum class Opening {
|
||||
@@ -72,6 +73,7 @@ class AssistActivity : ComponentActivity() {
|
||||
controller = AssistController(this, lifecycleScope)
|
||||
keyguard = getSystemService(KeyguardManager::class.java)
|
||||
locked.value = keyguard.isKeyguardLocked
|
||||
AssistPresence.shown()
|
||||
take(intent)
|
||||
setContent {
|
||||
val prefs by lembas.instances.prefs.collectAsState(initial = Prefs())
|
||||
@@ -146,6 +148,7 @@ class AssistActivity : ComponentActivity() {
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
AssistPresence.hidden()
|
||||
controller.close()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ import androidx.savedstate.setViewTreeSavedStateRegistryOwner
|
||||
import eu.llembas.android.AppLanguage
|
||||
import eu.llembas.android.lembas
|
||||
import eu.llembas.android.ui.theme.LembasTheme
|
||||
import eu.llembas.android.wake.AssistPresence
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.SupervisorJob
|
||||
@@ -41,7 +42,28 @@ import kotlinx.coroutines.runBlocking
|
||||
* there is no hotword here -- Android keeps always-on hotword detection for the system's own
|
||||
* preinstalled assistant (`CAPTURE_AUDIO_HOTWORD` is a privileged permission).
|
||||
*/
|
||||
class LembasAssistService : VoiceInteractionService()
|
||||
class LembasAssistService : VoiceInteractionService() {
|
||||
override fun onReady() {
|
||||
super.onReady()
|
||||
current = this
|
||||
}
|
||||
|
||||
override fun onShutdown() {
|
||||
if (current === this) current = null
|
||||
super.onShutdown()
|
||||
}
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* The service while the system has it bound -- while LLeMbas is the phone's assistant. The
|
||||
* wake word opens the sheet through it ([showSession]), which Android allows from the
|
||||
* background, as it does for the power button.
|
||||
*/
|
||||
@Volatile
|
||||
var current: LembasAssistService? = null
|
||||
private set
|
||||
}
|
||||
}
|
||||
|
||||
class LembasAssistSessionService : VoiceInteractionSessionService() {
|
||||
override fun onNewSession(args: Bundle?): VoiceInteractionSession = LembasAssistSession(this)
|
||||
@@ -109,7 +131,9 @@ class LembasAssistSession(context: Context) :
|
||||
override fun onShow(args: Bundle?, showFlags: Int) {
|
||||
super.onShow(args, showFlags)
|
||||
registry.currentState = Lifecycle.State.RESUMED
|
||||
controller.opened(locked())
|
||||
AssistPresence.shown()
|
||||
// The wake word asks for the sheet listening, whatever Settings says about opening.
|
||||
controller.opened(locked(), listen = args?.getBoolean(AssistActivity.EXTRA_LISTEN) == true)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,6 +143,7 @@ class LembasAssistSession(context: Context) :
|
||||
*/
|
||||
override fun onHide() {
|
||||
super.onHide()
|
||||
AssistPresence.hidden()
|
||||
controller.close()
|
||||
scope.cancel()
|
||||
scope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)
|
||||
|
||||
@@ -445,7 +445,7 @@ private fun Starting(state: AssistUiState, actions: AssistActions, locked: Boole
|
||||
}
|
||||
Column(verticalArrangement = Arrangement.spacedBy(4.dp)) {
|
||||
Text(stringResource(R.string.assist_help), style = MaterialTheme.typography.bodySmall, color = palette.inkFaint)
|
||||
Text(stringResource(R.string.assist_no_wake_word), style = MaterialTheme.typography.bodySmall, color = palette.inkFaint)
|
||||
Text(stringResource(R.string.assist_wake_word_hint), style = MaterialTheme.typography.bodySmall, color = palette.inkFaint)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,6 +87,12 @@ data class Prefs(
|
||||
val assistantListens: Boolean = true,
|
||||
/** After a spoken answer is read aloud, listen again: a spoken conversation. */
|
||||
val assistantConversation: Boolean = true,
|
||||
/** Listen for a wake word on the phone (WakeWordService). Off until the person turns it on. */
|
||||
val wakeWord: Boolean = false,
|
||||
/** Which of WakePhrases.all. */
|
||||
val wakePhrase: String = "hey_lembas",
|
||||
/** Listen only while the screen is on. */
|
||||
val wakeScreenOnly: Boolean = true,
|
||||
val assistantModel: String = "",
|
||||
val lastAssistChat: String = "",
|
||||
val lastAssistTitle: String = "",
|
||||
|
||||
@@ -2,9 +2,13 @@
|
||||
|
||||
package eu.llembas.android.ui.settings
|
||||
|
||||
import android.Manifest
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
import android.provider.Settings
|
||||
import androidx.activity.compose.rememberLauncherForActivityResult
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Box
|
||||
@@ -26,10 +30,12 @@ import androidx.compose.material.icons.automirrored.filled.ArrowBack
|
||||
import androidx.compose.material.icons.automirrored.filled.Logout
|
||||
import androidx.compose.material.icons.filled.Add
|
||||
import androidx.compose.material.icons.filled.Assistant
|
||||
import androidx.compose.material.icons.filled.BatteryAlert
|
||||
import androidx.compose.material.icons.filled.CheckCircle
|
||||
import androidx.compose.material.icons.filled.Dns
|
||||
import androidx.compose.material.icons.filled.Download
|
||||
import androidx.compose.material.icons.filled.Forum
|
||||
import androidx.compose.material.icons.filled.Hearing
|
||||
import androidx.compose.material.icons.filled.Info
|
||||
import androidx.compose.material.icons.filled.Mic
|
||||
import androidx.compose.material.icons.filled.Notifications
|
||||
@@ -38,6 +44,7 @@ import androidx.compose.material.icons.filled.Palette
|
||||
import androidx.compose.material.icons.filled.PhoneAndroid
|
||||
import androidx.compose.material.icons.filled.RecordVoiceOver
|
||||
import androidx.compose.material.icons.filled.Science
|
||||
import androidx.compose.material.icons.filled.ScreenLockPortrait
|
||||
import androidx.compose.material.icons.filled.SystemUpdate
|
||||
import androidx.compose.material.icons.filled.Timer
|
||||
import androidx.compose.material.icons.filled.Translate
|
||||
@@ -72,6 +79,7 @@ import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.core.content.ContextCompat
|
||||
import eu.llembas.android.AppLanguage
|
||||
import eu.llembas.android.BuildConfig
|
||||
import eu.llembas.android.R
|
||||
@@ -88,6 +96,9 @@ import eu.llembas.android.update.UpdateResult
|
||||
import eu.llembas.android.update.Updater
|
||||
import eu.llembas.android.update.checksUpdates
|
||||
import eu.llembas.android.update.offersBetas
|
||||
import eu.llembas.android.wake.WakeEngine
|
||||
import eu.llembas.android.wake.WakePhrases
|
||||
import eu.llembas.android.wake.WakeWordService
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
/** What the settings page does; every action has a do-nothing default for the screenshots. */
|
||||
@@ -104,6 +115,10 @@ interface SettingsActions {
|
||||
fun voiceInput(value: String) {}
|
||||
fun assistantListens(on: Boolean) {}
|
||||
fun assistantConversation(on: Boolean) {}
|
||||
fun wakeWord(on: Boolean) {}
|
||||
fun wakePhrase(id: String) {}
|
||||
fun wakeScreenOnly(on: Boolean) {}
|
||||
fun batterySettings() {}
|
||||
fun readAloud(on: Boolean) {}
|
||||
fun checkUpdate() {}
|
||||
fun openRelease() {}
|
||||
@@ -128,6 +143,8 @@ data class SettingsState(
|
||||
val beta: Boolean = false,
|
||||
/** Whether the phone has a speech recogniser of its own (Settings › Voice input › Phone). */
|
||||
val phoneRecognizer: Boolean = false,
|
||||
/** Whether this build has a wake-word engine (the F-Droid build has none). */
|
||||
val wakeAvailable: Boolean = false,
|
||||
)
|
||||
|
||||
@Composable
|
||||
@@ -143,6 +160,15 @@ fun SettingsScreen(onBack: () -> Unit, onAddInstance: () -> Unit) {
|
||||
var updateFound by remember { mutableStateOf<UpdateOffer?>(null) }
|
||||
val beta = remember { AppVersion.parse(BuildConfig.VERSION_NAME)?.isBeta ?: false }
|
||||
val distributors = remember { Push.distributors(context) }
|
||||
// The wake word needs the microphone before it can be turned on.
|
||||
val micForWake = rememberLauncherForActivityResult(ActivityResultContracts.RequestPermission()) { granted ->
|
||||
if (granted) {
|
||||
scope.launch {
|
||||
store.savePrefs { it.copy(wakeWord = true) }
|
||||
WakeWordService.start(context)
|
||||
}
|
||||
}
|
||||
}
|
||||
val actions = remember {
|
||||
object : SettingsActions {
|
||||
override fun use(instance: Instance) {
|
||||
@@ -202,6 +228,36 @@ fun SettingsScreen(onBack: () -> Unit, onAddInstance: () -> Unit) {
|
||||
scope.launch { store.savePrefs { it.copy(assistantConversation = on) } }
|
||||
}
|
||||
|
||||
override fun wakeWord(on: Boolean) {
|
||||
val mic = ContextCompat.checkSelfPermission(context, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED
|
||||
when {
|
||||
on && !mic -> micForWake.launch(Manifest.permission.RECORD_AUDIO)
|
||||
|
||||
on -> scope.launch {
|
||||
store.savePrefs { it.copy(wakeWord = true) }
|
||||
WakeWordService.start(context)
|
||||
}
|
||||
|
||||
else -> scope.launch {
|
||||
store.savePrefs { it.copy(wakeWord = false) }
|
||||
WakeWordService.stop(context)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun wakePhrase(id: String) {
|
||||
scope.launch { store.savePrefs { it.copy(wakePhrase = id) } }
|
||||
}
|
||||
|
||||
override fun wakeScreenOnly(on: Boolean) {
|
||||
scope.launch { store.savePrefs { it.copy(wakeScreenOnly = on) } }
|
||||
}
|
||||
|
||||
// The list of apps the phone's battery optimisation leaves alone; no permission needed to open it.
|
||||
override fun batterySettings() {
|
||||
runCatching { context.startActivity(Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) }
|
||||
}
|
||||
|
||||
override fun readAloud(on: Boolean) {
|
||||
scope.launch { store.savePrefs { it.copy(readAloudSpoken = on) } }
|
||||
}
|
||||
@@ -256,6 +312,7 @@ fun SettingsScreen(onBack: () -> Unit, onAddInstance: () -> Unit) {
|
||||
selfUpdate = BuildConfig.SELF_UPDATE,
|
||||
beta = beta,
|
||||
phoneRecognizer = remember { PhoneRecognizer.available(context) },
|
||||
wakeAvailable = WakeEngine.AVAILABLE,
|
||||
),
|
||||
actions,
|
||||
onBack,
|
||||
@@ -431,12 +488,13 @@ fun SettingsContent(state: SettingsState, actions: SettingsActions, onBack: () -
|
||||
)
|
||||
}
|
||||
Text(
|
||||
stringResource(R.string.assistant_samsung) + "\n\n" + stringResource(R.string.assist_no_wake_word),
|
||||
stringResource(R.string.assistant_samsung),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = palette.inkFaint,
|
||||
modifier = Modifier.padding(horizontal = 16.dp, vertical = 8.dp),
|
||||
)
|
||||
}
|
||||
item { WakeWordGroup(state, actions) }
|
||||
item {
|
||||
// Which recogniser turns speech into words: the instance's or the phone's -- what
|
||||
// each one is, and where the recording goes, said in the row itself.
|
||||
@@ -518,6 +576,59 @@ fun SettingsContent(state: SettingsState, actions: SettingsActions, onBack: () -
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The wake word: off until turned on; the phrase (the engine's own, English); only while the
|
||||
* screen is on; and what it costs and why a phone may stop it, said before it is turned on.
|
||||
*/
|
||||
@Composable
|
||||
private fun WakeWordGroup(state: SettingsState, actions: SettingsActions) {
|
||||
val palette = LocalPalette.current
|
||||
val on = state.prefs.wakeWord && state.wakeAvailable
|
||||
Group(stringResource(R.string.wake_word)) {
|
||||
SettingRow(
|
||||
Icons.Filled.Hearing,
|
||||
stringResource(R.string.wake_word_listen),
|
||||
subtitle = stringResource(if (state.wakeAvailable) R.string.wake_word_line else R.string.wake_word_unavailable),
|
||||
enabled = state.wakeAvailable,
|
||||
onClick = { actions.wakeWord(!on) },
|
||||
trailing = { Switch(checked = on, enabled = state.wakeAvailable, onCheckedChange = actions::wakeWord) },
|
||||
)
|
||||
if (state.wakeAvailable) {
|
||||
WakePhrases.all.forEach { phrase ->
|
||||
Rule()
|
||||
SettingRow(
|
||||
Icons.Filled.RecordVoiceOver,
|
||||
"“${phrase.words}”",
|
||||
showIcon = false,
|
||||
onClick = { actions.wakePhrase(phrase.id) },
|
||||
trailing = { RadioButton(selected = state.prefs.wakePhrase == phrase.id, onClick = { actions.wakePhrase(phrase.id) }) },
|
||||
)
|
||||
}
|
||||
Rule()
|
||||
SettingRow(
|
||||
Icons.Filled.ScreenLockPortrait,
|
||||
stringResource(R.string.wake_screen_only),
|
||||
subtitle = stringResource(R.string.wake_screen_only_line),
|
||||
onClick = { actions.wakeScreenOnly(!state.prefs.wakeScreenOnly) },
|
||||
trailing = { Switch(checked = state.prefs.wakeScreenOnly, onCheckedChange = actions::wakeScreenOnly) },
|
||||
)
|
||||
Rule()
|
||||
SettingRow(
|
||||
Icons.Filled.BatteryAlert,
|
||||
stringResource(R.string.wake_battery),
|
||||
subtitle = stringResource(R.string.wake_battery_line),
|
||||
onClick = actions::batterySettings,
|
||||
)
|
||||
}
|
||||
}
|
||||
Text(
|
||||
stringResource(R.string.wake_word_privacy) + "\n\n" + stringResource(R.string.wake_word_cost),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = palette.inkFaint,
|
||||
modifier = Modifier.padding(horizontal = 16.dp, vertical = 8.dp),
|
||||
)
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun Group(title: String, content: @Composable () -> Unit) {
|
||||
val palette = LocalPalette.current
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
package eu.llembas.android.wake
|
||||
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import kotlinx.coroutines.flow.asStateFlow
|
||||
import kotlinx.coroutines.flow.update
|
||||
|
||||
/**
|
||||
* A wake word the engine ships: what the person says ([words]), the engine's spelling of it
|
||||
* ([tokens], the model's BPE pieces, worked out once with its `bpe.model` -- the phone has no
|
||||
* tokenizer), and the id Settings keeps.
|
||||
*
|
||||
* Only phrases from this list can be chosen: an open-vocabulary spotter hears any phrase it can
|
||||
* spell, but how well each one works was not measured, and a free text box would invite one that
|
||||
* fires on every other sentence. English only: the model is trained on English speech.
|
||||
*/
|
||||
data class WakePhrase(val id: String, val words: String, val tokens: String)
|
||||
|
||||
object WakePhrases {
|
||||
val all = listOf(
|
||||
WakePhrase("hey_lembas", "Hey Lembas", "▁HE Y ▁LE M B AS"),
|
||||
WakePhrase("ok_lembas", "OK Lembas", "▁O K ▁LE M B AS"),
|
||||
WakePhrase("hello_lembas", "Hello Lembas", "▁HE LL O ▁LE M B AS"),
|
||||
WakePhrase("hey_assistant", "Hey Assistant", "▁HE Y ▁AS S IST ANT"),
|
||||
)
|
||||
|
||||
val default: WakePhrase get() = all.first()
|
||||
|
||||
fun byId(id: String): WakePhrase = all.firstOrNull { it.id == id } ?: default
|
||||
}
|
||||
|
||||
/**
|
||||
* The engine, as the service sees it: 16 kHz mono samples in, the phrase out when it was heard.
|
||||
* Everything happens on the phone; [accept] neither records nor sends anything.
|
||||
*/
|
||||
interface WakeDetector {
|
||||
/** Feed [samples] (-1..1); true when the wake word ended in them. */
|
||||
fun accept(samples: FloatArray): Boolean
|
||||
|
||||
fun release()
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the assistant's sheet is up -- the wake-word service lets go of the microphone while
|
||||
* it is, and takes it back once the sheet is gone. Counted, since the session and the activity
|
||||
* can overlap for a moment when one hands over to the other.
|
||||
*/
|
||||
object AssistPresence {
|
||||
private val _open = MutableStateFlow(0)
|
||||
val open: StateFlow<Int> = _open.asStateFlow()
|
||||
|
||||
fun shown() = _open.update { it + 1 }
|
||||
|
||||
fun hidden() = _open.update { (it - 1).coerceAtLeast(0) }
|
||||
}
|
||||
|
||||
/** Why listening for the wake word is paused, or [None]: what the notification and Settings say. */
|
||||
enum class WakePause { None, ScreenOff, BatterySaver, Assistant, NoMicrophone }
|
||||
|
||||
/**
|
||||
* When the service listens, from what the phone is doing: never while the sheet is up (it has the
|
||||
* microphone), never in battery saver (the person asked the phone to spare power), and -- when
|
||||
* Settings says so, the default -- only while the screen is on.
|
||||
*/
|
||||
fun wakePause(screenOn: Boolean, screenOnly: Boolean, batterySaver: Boolean, sheetOpen: Boolean, micAllowed: Boolean): WakePause = when {
|
||||
!micAllowed -> WakePause.NoMicrophone
|
||||
sheetOpen -> WakePause.Assistant
|
||||
batterySaver -> WakePause.BatterySaver
|
||||
screenOnly && !screenOn -> WakePause.ScreenOff
|
||||
else -> WakePause.None
|
||||
}
|
||||
@@ -0,0 +1,300 @@
|
||||
package eu.llembas.android.wake
|
||||
|
||||
import android.Manifest
|
||||
import android.app.Notification
|
||||
import android.app.NotificationChannel
|
||||
import android.app.NotificationManager
|
||||
import android.app.PendingIntent
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.IntentFilter
|
||||
import android.content.pm.PackageManager
|
||||
import android.content.pm.ServiceInfo
|
||||
import android.media.AudioFormat
|
||||
import android.media.AudioRecord
|
||||
import android.media.MediaRecorder
|
||||
import android.os.Bundle
|
||||
import android.os.PowerManager
|
||||
import androidx.core.app.NotificationCompat
|
||||
import androidx.core.app.ServiceCompat
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.lifecycle.LifecycleService
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import eu.llembas.android.MainActivity
|
||||
import eu.llembas.android.R
|
||||
import eu.llembas.android.assist.AssistActivity
|
||||
import eu.llembas.android.assist.LembasAssistService
|
||||
import eu.llembas.android.lembas
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.combine
|
||||
import kotlinx.coroutines.flow.distinctUntilChanged
|
||||
import kotlinx.coroutines.flow.first
|
||||
import kotlinx.coroutines.isActive
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
/**
|
||||
* Listening for the wake word: opt-in (Settings › Assistant › Wake word), off by default.
|
||||
*
|
||||
* A `microphone` foreground service with its notification up the whole time it runs -- Android
|
||||
* lets an app hear the microphone in the background only that way, and only once the person has
|
||||
* started it from the app. The audio goes to the on-device engine ([WakeEngine]) in memory and
|
||||
* nowhere else; it is not kept, and nothing is sent anywhere until the word is heard. Then the
|
||||
* microphone is let go and the assistant opens, listening, as the power button would open it.
|
||||
*
|
||||
* It pauses itself (the notification says why) while the assistant's sheet is up, in battery
|
||||
* saver, and -- unless Settings says otherwise -- while the screen is off; it goes on once the
|
||||
* reason is gone. It cannot start itself at boot (Android forbids a microphone service there):
|
||||
* [WakeBootReceiver] posts "tap to listen again" instead.
|
||||
*/
|
||||
class WakeWordService : LifecycleService() {
|
||||
private val screenOn = MutableStateFlow(true)
|
||||
private val batterySaver = MutableStateFlow(false)
|
||||
private var listening: Job? = null
|
||||
private var detector: WakeDetector? = null
|
||||
private var phraseId: String? = null
|
||||
|
||||
private val receiver = object : BroadcastReceiver() {
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
when (intent.action) {
|
||||
Intent.ACTION_SCREEN_ON -> screenOn.value = true
|
||||
Intent.ACTION_SCREEN_OFF -> screenOn.value = false
|
||||
PowerManager.ACTION_POWER_SAVE_MODE_CHANGED -> batterySaver.value = power().isPowerSaveMode
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
channel(this)
|
||||
screenOn.value = power().isInteractive
|
||||
batterySaver.value = power().isPowerSaveMode
|
||||
ContextCompat.registerReceiver(
|
||||
this,
|
||||
receiver,
|
||||
IntentFilter().apply {
|
||||
addAction(Intent.ACTION_SCREEN_ON)
|
||||
addAction(Intent.ACTION_SCREEN_OFF)
|
||||
addAction(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED)
|
||||
},
|
||||
ContextCompat.RECEIVER_NOT_EXPORTED,
|
||||
)
|
||||
}
|
||||
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
super.onStartCommand(intent, flags, startId)
|
||||
if (intent?.action == ACTION_STOP) {
|
||||
lifecycleScope.launch {
|
||||
lembas.instances.savePrefs { it.copy(wakeWord = false) }
|
||||
stopSelf()
|
||||
}
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
// The notification first: Android stops a foreground service that is slow to show one.
|
||||
ServiceCompat.startForeground(this, NOTIFICATION_ID, notification(null, WakePause.None), ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE)
|
||||
if (listening == null) follow()
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
|
||||
/** Listen, or pause, as the phone and Settings change; stop when Settings turns it off. */
|
||||
private fun follow() {
|
||||
listening = lifecycleScope.launch {
|
||||
combine(lembas.instances.prefs, screenOn, batterySaver, AssistPresence.open) { prefs, on, saver, open ->
|
||||
if (!prefs.wakeWord) {
|
||||
null
|
||||
} else {
|
||||
prefs.wakePhrase to wakePause(on, prefs.wakeScreenOnly, saver, open > 0, micAllowed())
|
||||
}
|
||||
}.distinctUntilChanged().collect { now ->
|
||||
if (now == null) {
|
||||
stopSelf()
|
||||
return@collect
|
||||
}
|
||||
val (id, pause) = now
|
||||
val phrase = WakePhrases.byId(id)
|
||||
notify(phrase, pause)
|
||||
hearing?.cancel()
|
||||
hearing = if (pause == WakePause.None) launch { hear(phrase) } else null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var hearing: Job? = null
|
||||
|
||||
@android.annotation.SuppressLint("MissingPermission")
|
||||
private suspend fun hear(phrase: WakePhrase) {
|
||||
val engine = withContext(Dispatchers.Default) {
|
||||
if (phraseId != phrase.id) {
|
||||
detector?.release()
|
||||
detector = WakeEngine.create(this@WakeWordService, phrase)
|
||||
phraseId = phrase.id
|
||||
}
|
||||
detector
|
||||
} ?: return notify(phrase, WakePause.NoMicrophone)
|
||||
val min = AudioRecord.getMinBufferSize(RATE, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT)
|
||||
val audio = runCatching {
|
||||
AudioRecord(MediaRecorder.AudioSource.VOICE_RECOGNITION, RATE, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, maxOf(min, RATE))
|
||||
}.getOrNull() ?: return
|
||||
var heard = false
|
||||
withContext(Dispatchers.IO) {
|
||||
try {
|
||||
audio.startRecording()
|
||||
val chunk = ShortArray(RATE / 10)
|
||||
val samples = FloatArray(chunk.size)
|
||||
while (isActive && !heard) {
|
||||
val read = audio.read(chunk, 0, chunk.size)
|
||||
if (read <= 0) continue
|
||||
for (i in 0 until read) samples[i] = chunk[i] / 32768f
|
||||
heard = engine.accept(if (read == chunk.size) samples else samples.copyOf(read))
|
||||
}
|
||||
} finally {
|
||||
runCatching { audio.stop() }
|
||||
audio.release()
|
||||
}
|
||||
}
|
||||
if (heard) wake()
|
||||
}
|
||||
|
||||
/**
|
||||
* The word was heard: the assistant opens listening. Through the voice-interaction service
|
||||
* when LLeMbas is the phone's assistant (Android lets it open the sheet from the background),
|
||||
* else as an activity; and if Android refuses that too, a notification to tap.
|
||||
*/
|
||||
private fun wake() {
|
||||
AssistPresence.shown() // the microphone is the sheet's from here, until it says it is gone
|
||||
val shownBySystem = LembasAssistService.current?.let { service ->
|
||||
runCatching { service.showSession(Bundle().apply { putBoolean(AssistActivity.EXTRA_LISTEN, true) }, 0) }.isSuccess
|
||||
} ?: false
|
||||
val opened = shownBySystem || runCatching { startActivity(AssistActivity.listening(this).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) }.isSuccess
|
||||
if (!opened) {
|
||||
getSystemService(NotificationManager::class.java).notify(
|
||||
HEARD_ID,
|
||||
NotificationCompat.Builder(this, CHANNEL)
|
||||
.setSmallIcon(R.drawable.ic_notification)
|
||||
.setContentTitle(getString(R.string.wake_heard))
|
||||
.setContentIntent(PendingIntent.getActivity(this, 1, AssistActivity.listening(this), PendingIntent.FLAG_IMMUTABLE))
|
||||
.setAutoCancel(true)
|
||||
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
||||
.build(),
|
||||
)
|
||||
}
|
||||
// Released by the sheet as it shows and hides; if nothing opened, at once.
|
||||
lifecycleScope.launch {
|
||||
delay(SHEET_GRACE_MS)
|
||||
AssistPresence.hidden()
|
||||
}
|
||||
}
|
||||
|
||||
private fun notify(phrase: WakePhrase, pause: WakePause) {
|
||||
getSystemService(NotificationManager::class.java).notify(NOTIFICATION_ID, notification(phrase, pause))
|
||||
}
|
||||
|
||||
/** What the persistent notification says: the phrase it listens for, or why it is paused. Nothing from the account. */
|
||||
private fun notification(phrase: WakePhrase?, pause: WakePause): Notification {
|
||||
val title = when (pause) {
|
||||
WakePause.None -> getString(R.string.wake_listening_for, (phrase ?: WakePhrases.default).words)
|
||||
WakePause.ScreenOff -> getString(R.string.wake_paused_screen)
|
||||
WakePause.BatterySaver -> getString(R.string.wake_paused_battery)
|
||||
WakePause.Assistant -> getString(R.string.wake_paused_assistant)
|
||||
WakePause.NoMicrophone -> getString(R.string.wake_paused_microphone)
|
||||
}
|
||||
val stop = PendingIntent.getService(this, 2, Intent(this, WakeWordService::class.java).setAction(ACTION_STOP), PendingIntent.FLAG_IMMUTABLE)
|
||||
val open = PendingIntent.getActivity(this, 3, Intent(this, MainActivity::class.java), PendingIntent.FLAG_IMMUTABLE)
|
||||
return NotificationCompat.Builder(this, CHANNEL)
|
||||
.setSmallIcon(R.drawable.ic_notification)
|
||||
.setContentTitle(title)
|
||||
.setContentText(getString(R.string.wake_notification_line))
|
||||
.setOngoing(true)
|
||||
.setSilent(true)
|
||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||
.setContentIntent(open)
|
||||
.addAction(0, getString(R.string.wake_stop), stop)
|
||||
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE)
|
||||
.build()
|
||||
}
|
||||
|
||||
private fun micAllowed() = ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED
|
||||
|
||||
private fun power() = getSystemService(PowerManager::class.java)
|
||||
|
||||
override fun onDestroy() {
|
||||
hearing?.cancel()
|
||||
listening?.cancel()
|
||||
runCatching { unregisterReceiver(receiver) }
|
||||
detector?.release()
|
||||
detector = null
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val CHANNEL = "wake_word"
|
||||
private const val NOTIFICATION_ID = 7001
|
||||
private const val HEARD_ID = 7002
|
||||
private const val RATE = 16_000
|
||||
private const val SHEET_GRACE_MS = 3_000L
|
||||
const val ACTION_STOP = "eu.llembas.android.action.WAKE_STOP"
|
||||
|
||||
/** Start listening. Only from the app on screen: Android allows a microphone service from there. */
|
||||
fun start(context: Context) {
|
||||
ContextCompat.startForegroundService(context, Intent(context, WakeWordService::class.java))
|
||||
}
|
||||
|
||||
fun stop(context: Context) {
|
||||
context.stopService(Intent(context, WakeWordService::class.java))
|
||||
}
|
||||
|
||||
fun channel(context: Context) {
|
||||
context.getSystemService(NotificationManager::class.java).createNotificationChannel(
|
||||
NotificationChannel(CHANNEL, context.getString(R.string.channel_wake), NotificationManager.IMPORTANCE_LOW),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* After a restart: Android does not let a microphone service start at boot, so a wake word that
|
||||
* was on says "tap to listen again" -- the tap opens the app, which starts it.
|
||||
*/
|
||||
class WakeBootReceiver : BroadcastReceiver() {
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
if (intent.action != Intent.ACTION_BOOT_COMPLETED && intent.action != Intent.ACTION_MY_PACKAGE_REPLACED) return
|
||||
val pending = goAsync()
|
||||
CoroutineScope(Dispatchers.Default).launch {
|
||||
try {
|
||||
val prefs = context.lembas.instances.prefs.first()
|
||||
if (!prefs.wakeWord || !WakeEngine.AVAILABLE) return@launch
|
||||
if (ContextCompat.checkSelfPermission(context, Manifest.permission.POST_NOTIFICATIONS) != PackageManager.PERMISSION_GRANTED) return@launch
|
||||
WakeWordService.channel(context)
|
||||
val open = PendingIntent.getActivity(
|
||||
context,
|
||||
4,
|
||||
Intent(context, MainActivity::class.java).putExtra(EXTRA_RESUME, true).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),
|
||||
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
|
||||
)
|
||||
context.getSystemService(NotificationManager::class.java).notify(
|
||||
RESUME_ID,
|
||||
NotificationCompat.Builder(context, WakeWordService.CHANNEL)
|
||||
.setSmallIcon(R.drawable.ic_notification)
|
||||
.setContentTitle(context.getString(R.string.wake_resume))
|
||||
.setContentText(context.getString(R.string.wake_resume_line))
|
||||
.setContentIntent(open)
|
||||
.setAutoCancel(true)
|
||||
.build(),
|
||||
)
|
||||
} finally {
|
||||
pending.finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
/** On MainActivity's intent: start listening for the wake word again. */
|
||||
const val EXTRA_RESUME = "eu.llembas.android.WAKE_RESUME"
|
||||
const val RESUME_ID = 7003
|
||||
}
|
||||
}
|
||||
@@ -377,7 +377,6 @@
|
||||
<string name="assist_quick_explain_prompt">Vysvětli, co je na mé obrazovce.</string>
|
||||
<string name="assist_continue">Pokračovat v poslední konverzaci</string>
|
||||
<string name="assist_help">Podržením tlačítka napájení otevřete asistenta nad libovolnou aplikací; nebo použijte dlaždici v Rychlém nastavení.</string>
|
||||
<string name="assist_no_wake_word">Budicí slovo není: na běžném Androidu je naslouchání budicímu slovu vyhrazeno asistentovi zabudovanému v telefonu.</string>
|
||||
<string name="assist_connecting">Připojování…</string>
|
||||
<string name="assist_offline">%1$s není dostupná</string>
|
||||
<string name="assist_no_model">Žádný model</string>
|
||||
@@ -396,6 +395,28 @@
|
||||
<string name="assist_stop_words">stop|dost|to je vše|to je všechno|konec|nashledanou|díky to je vše|zrušit|stop stop</string>
|
||||
<string name="assistant_conversation">Pokračovat v mluveném rozhovoru</string>
|
||||
<string name="assistant_conversation_line">Po přečtení mluvené odpovědi asistent znovu poslouchá — dokud neřeknete „stop“, neklepnete na Ukončit nebo pár sekund nic neřeknete. Funguje i se sluchátky.</string>
|
||||
<string name="assist_wake_word_hint">Budicí slovo jen pokud chcete: Nastavení › Asistent › Budicí slovo zapne vlastní slovo LLeMbas, přímo v tomto telefonu.</string>
|
||||
<string name="channel_wake">Budicí slovo</string>
|
||||
<string name="wake_word">Budicí slovo</string>
|
||||
<string name="wake_word_listen">Naslouchat budicímu slovu</string>
|
||||
<string name="wake_word_line">Ve výchozím stavu vypnuto. Řekněte frázi a asistent se otevře a poslouchá, nad jakoukoli aplikací na obrazovce.</string>
|
||||
<string name="wake_word_unavailable">V tomto sestavení není. Sestavení pro F-Droid nemá modul pro budicí slovo, protože F-Droid sestavuje každou knihovnu ze zdrojů; sestavení z llembas.eu ho má.</string>
|
||||
<string name="wake_screen_only">Jen při zapnuté obrazovce</string>
|
||||
<string name="wake_screen_only_line">Vypnuto: poslouchá i při zhasnuté obrazovce, za cenu vyšší spotřeby baterie.</string>
|
||||
<string name="wake_battery">Nechat běžet na pozadí</string>
|
||||
<string name="wake_battery_line">Některé telefony (Samsung, Xiaomi, Huawei, OnePlus a další) kvůli baterii zastavují aplikace na pozadí, a s nimi i budicí slovo. Zde vyjměte LLeMbas z optimalizace baterie; dontkillmyapp.com vysvětluje nastavení vašeho telefonu.</string>
|
||||
<string name="wake_word_privacy">Před vyslovením slova nic neopustí telefon. Zvuk z mikrofonu jde jen do modulu pro budicí slovo v telefonu a neukládá se; po celou dobu naslouchání je vidět oznámení. Fráze jsou anglické; modul je sherpa-onnx (open source).</string>
|
||||
<string name="wake_word_cost">Stojí to baterii: mikrofon zůstává zapnutý a procesor telefonu kontroluje každý okamžik zvuku, bez úsporného čipu, který používá vestavěný asistent. Pozastaví se v úsporném režimu, když je asistent otevřený, a pokud to nezměníte, i při zhasnuté obrazovce. Po restartu ho znovu spustíte klepnutím na oznámení.</string>
|
||||
<string name="wake_listening_for">Naslouchám frázi „%1$s“</string>
|
||||
<string name="wake_notification_line">Dokud ji neřeknete, nic neopustí telefon.</string>
|
||||
<string name="wake_paused_screen">Budicí slovo pozastaveno: obrazovka je zhasnutá</string>
|
||||
<string name="wake_paused_battery">Budicí slovo pozastaveno: je zapnutý úsporný režim</string>
|
||||
<string name="wake_paused_assistant">Budicí slovo je pozastaveno, dokud je asistent otevřený</string>
|
||||
<string name="wake_paused_microphone">Budicí slovo pozastaveno: mikrofon nebo modul není k dispozici</string>
|
||||
<string name="wake_stop">Přestat naslouchat</string>
|
||||
<string name="wake_heard">Slyšel jsem vás. Klepněte a ptejte se.</string>
|
||||
<string name="wake_resume">Znovu naslouchat budicímu slovu</string>
|
||||
<string name="wake_resume_line">Telefon se restartoval. Klepnutím znovu spustíte naslouchání.</string>
|
||||
<string name="assist_recogniser_failed">Rozpoznávání řeči v telefonu se zastavilo. Zkuste to znovu nebo zvolte LLeMbas v Nastavení › Hlasový vstup.</string>
|
||||
<string name="assistant_listens">Začít poslouchat, když se asistent otevře</string>
|
||||
<string name="voice_input">Hlasový vstup</string>
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
<string name="assist_quick_explain_prompt">Erkläre, was auf meinem Bildschirm ist.</string>
|
||||
<string name="assist_continue">Letzten Chat fortsetzen</string>
|
||||
<string name="assist_help">Halten Sie die Ein-/Aus-Taste, um den Assistenten über jeder App zu öffnen, oder nutzen Sie die Kachel in den Schnelleinstellungen.</string>
|
||||
<string name="assist_no_wake_word">Es gibt kein Aktivierungswort: Auf normalem Android ist das Lauschen darauf dem im Telefon eingebauten Assistenten vorbehalten.</string>
|
||||
<string name="assist_connecting">Verbinden…</string>
|
||||
<string name="assist_offline">%1$s ist nicht erreichbar</string>
|
||||
<string name="assist_no_model">Kein Modell</string>
|
||||
@@ -396,6 +395,28 @@
|
||||
<string name="assist_stop_words">stopp|stop|das wars|das war\'s|das ist alles|genug|ende|tschüss|auf wiedersehen|danke das wars|abbrechen</string>
|
||||
<string name="assistant_conversation">Ein gesprochenes Gespräch fortführen</string>
|
||||
<string name="assistant_conversation_line">Nachdem eine gesprochene Antwort vorgelesen wurde, hört der Assistent wieder zu — bis du „Stopp“ sagst, auf Beenden tippst oder ein paar Sekunden nichts sagst. Funktioniert mit einem Headset.</string>
|
||||
<string name="assist_wake_word_hint">Kein Aktivierungswort, außer du willst eines: Einstellungen › Assistent › Aktivierungswort schaltet das eigene von LLeMbas ein, auf diesem Telefon.</string>
|
||||
<string name="channel_wake">Aktivierungswort</string>
|
||||
<string name="wake_word">Aktivierungswort</string>
|
||||
<string name="wake_word_listen">Auf ein Aktivierungswort hören</string>
|
||||
<string name="wake_word_line">Standardmäßig aus. Sag den Satz, und der Assistent öffnet sich zuhörend über der App auf dem Bildschirm.</string>
|
||||
<string name="wake_word_unavailable">Nicht in diesem Build. Der F-Droid-Build hat keine Aktivierungswort-Engine, weil F-Droid jede Bibliothek aus dem Quellcode baut; der Build von llembas.eu hat eine.</string>
|
||||
<string name="wake_screen_only">Nur bei eingeschaltetem Bildschirm</string>
|
||||
<string name="wake_screen_only_line">Aus: Es hört auch bei ausgeschaltetem Bildschirm zu, was mehr Akku kostet.</string>
|
||||
<string name="wake_battery">Im Hintergrund laufen lassen</string>
|
||||
<string name="wake_battery_line">Manche Telefone (Samsung, Xiaomi, Huawei, OnePlus und andere) beenden Hintergrund-Apps, um Akku zu sparen, und damit auch das Aktivierungswort. Nimm LLeMbas hier von der Akku-Optimierung aus; dontkillmyapp.com erklärt die Einstellungen deines Telefons.</string>
|
||||
<string name="wake_word_privacy">Vor dem Wort verlässt nichts das Telefon. Der Ton des Mikrofons geht nur an die Aktivierungswort-Engine auf dem Telefon und wird nicht gespeichert; die Benachrichtigung bleibt sichtbar, solange es zuhört. Die Sätze sind englisch; die Engine ist sherpa-onnx (Open Source).</string>
|
||||
<string name="wake_word_cost">Es kostet Akku: Das Mikrofon bleibt an, und der Prozessor des Telefons prüft jeden Moment Ton, ohne den Stromspar-Chip, den der eingebaute Assistent nutzt. Es pausiert im Energiesparmodus, während der Assistent offen ist und, wenn du es nicht änderst, bei ausgeschaltetem Bildschirm. Nach einem Neustart tippe auf seine Benachrichtigung, um es wieder zu starten.</string>
|
||||
<string name="wake_listening_for">Hört auf „%1$s“</string>
|
||||
<string name="wake_notification_line">Bis du es sagst, verlässt nichts das Telefon.</string>
|
||||
<string name="wake_paused_screen">Aktivierungswort pausiert: Bildschirm aus</string>
|
||||
<string name="wake_paused_battery">Aktivierungswort pausiert: Energiesparmodus ist an</string>
|
||||
<string name="wake_paused_assistant">Aktivierungswort pausiert, solange der Assistent offen ist</string>
|
||||
<string name="wake_paused_microphone">Aktivierungswort pausiert: Mikrofon oder Engine nicht verfügbar</string>
|
||||
<string name="wake_stop">Nicht mehr zuhören</string>
|
||||
<string name="wake_heard">Gehört. Tippe, um zu fragen.</string>
|
||||
<string name="wake_resume">Wieder auf das Aktivierungswort hören</string>
|
||||
<string name="wake_resume_line">Das Telefon wurde neu gestartet. Tippe, um wieder zuzuhören.</string>
|
||||
<string name="assist_recogniser_failed">Die Spracherkennung des Telefons hat angehalten. Versuchen Sie es erneut oder wählen Sie LLeMbas unter Einstellungen › Spracheingabe.</string>
|
||||
<string name="assistant_listens">Beim Öffnen des Assistenten zuhören</string>
|
||||
<string name="voice_input">Spracheingabe</string>
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
<string name="assist_quick_explain_prompt">Explica lo que hay en mi pantalla.</string>
|
||||
<string name="assist_continue">Continuar el último chat</string>
|
||||
<string name="assist_help">Mantenga pulsado el botón de encendido para abrir el asistente sobre cualquier app, o use el mosaico de Ajustes rápidos.</string>
|
||||
<string name="assist_no_wake_word">No hay palabra de activación: en Android estándar, escucharla está reservado al asistente integrado en el teléfono.</string>
|
||||
<string name="assist_connecting">Conectando…</string>
|
||||
<string name="assist_offline">No se puede contactar con %1$s</string>
|
||||
<string name="assist_no_model">Sin modelo</string>
|
||||
@@ -396,6 +395,28 @@
|
||||
<string name="assist_stop_words">para|stop|basta|eso es todo|ya está|adiós|terminar|fin|gracias eso es todo|cancelar</string>
|
||||
<string name="assistant_conversation">Mantener una conversación hablada</string>
|
||||
<string name="assistant_conversation_line">Después de leer en voz alta una respuesta hablada, el asistente vuelve a escuchar, hasta que digas «para», toques Terminar o no digas nada durante unos segundos. Funciona con auriculares.</string>
|
||||
<string name="assist_wake_word_hint">Sin palabra de activación salvo que quieras una: Ajustes › Asistente › Palabra de activación activa la propia de LLeMbas, en este teléfono.</string>
|
||||
<string name="channel_wake">Palabra de activación</string>
|
||||
<string name="wake_word">Palabra de activación</string>
|
||||
<string name="wake_word_listen">Escuchar una palabra de activación</string>
|
||||
<string name="wake_word_line">Desactivado por defecto. Di la frase y el asistente se abre escuchando, sobre la app que esté en pantalla.</string>
|
||||
<string name="wake_word_unavailable">No en esta versión. La versión de F-Droid no tiene motor de palabra de activación, porque F-Droid compila cada biblioteca desde el código fuente; la de llembas.eu sí lo tiene.</string>
|
||||
<string name="wake_screen_only">Solo con la pantalla encendida</string>
|
||||
<string name="wake_screen_only_line">Desactivado: también escucha con la pantalla apagada, con más gasto de batería.</string>
|
||||
<string name="wake_battery">Dejar que funcione en segundo plano</string>
|
||||
<string name="wake_battery_line">Algunos teléfonos (Samsung, Xiaomi, Huawei, OnePlus y otros) detienen las apps en segundo plano para ahorrar batería, y con ellas la palabra de activación. Excluye aquí a LLeMbas de la optimización de batería; dontkillmyapp.com explica los ajustes de tu teléfono.</string>
|
||||
<string name="wake_word_privacy">Nada sale del teléfono antes de la palabra. El sonido del micrófono va solo al motor de palabra de activación del teléfono y no se guarda; la notificación se mantiene mientras escucha. Las frases están en inglés; el motor es sherpa-onnx (código abierto).</string>
|
||||
<string name="wake_word_cost">Gasta batería: el micrófono sigue encendido y el procesador del teléfono revisa cada instante de sonido, sin el chip de bajo consumo que usa el asistente integrado. Se pausa en ahorro de batería, mientras el asistente está abierto y, salvo que lo cambies, con la pantalla apagada. Tras reiniciar, toca su notificación para volver a iniciarlo.</string>
|
||||
<string name="wake_listening_for">Escuchando «%1$s»</string>
|
||||
<string name="wake_notification_line">Nada sale del teléfono hasta que lo digas.</string>
|
||||
<string name="wake_paused_screen">Palabra de activación en pausa: la pantalla está apagada</string>
|
||||
<string name="wake_paused_battery">Palabra de activación en pausa: ahorro de batería activado</string>
|
||||
<string name="wake_paused_assistant">Palabra de activación en pausa mientras el asistente está abierto</string>
|
||||
<string name="wake_paused_microphone">Palabra de activación en pausa: el micrófono o el motor no están disponibles</string>
|
||||
<string name="wake_stop">Dejar de escuchar</string>
|
||||
<string name="wake_heard">Te he oído. Toca para preguntar.</string>
|
||||
<string name="wake_resume">Volver a escuchar la palabra de activación</string>
|
||||
<string name="wake_resume_line">El teléfono se reinició. Toca para volver a escuchar.</string>
|
||||
<string name="assist_recogniser_failed">El reconocimiento de voz del teléfono se detuvo. Inténtelo de nuevo o elija LLeMbas en Ajustes › Entrada de voz.</string>
|
||||
<string name="assistant_listens">Empezar a escuchar al abrir el asistente</string>
|
||||
<string name="voice_input">Entrada de voz</string>
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
<string name="assist_quick_explain_prompt">Explique ce qui est sur mon écran.</string>
|
||||
<string name="assist_continue">Reprendre la dernière conversation</string>
|
||||
<string name="assist_help">Maintenez le bouton marche/arrêt pour ouvrir l’assistant par-dessus n’importe quelle app, ou utilisez la tuile des Réglages rapides.</string>
|
||||
<string name="assist_no_wake_word">Pas de mot d’activation : sur Android standard, l’écoute d’un tel mot est réservée à l’assistant intégré au téléphone.</string>
|
||||
<string name="assist_connecting">Connexion…</string>
|
||||
<string name="assist_offline">%1$s est injoignable</string>
|
||||
<string name="assist_no_model">Aucun modèle</string>
|
||||
@@ -396,6 +395,28 @@
|
||||
<string name="assist_stop_words">stop|arrête|c\'est tout|ça suffit|au revoir|fin|terminé|merci c\'est tout|annuler</string>
|
||||
<string name="assistant_conversation">Poursuivre une conversation orale</string>
|
||||
<string name="assistant_conversation_line">Après la lecture d’une réponse orale, l’assistant écoute à nouveau — jusqu’à ce que vous disiez « stop », touchiez Terminer ou ne disiez rien pendant quelques secondes. Fonctionne avec un casque.</string>
|
||||
<string name="assist_wake_word_hint">Pas de mot d’activation sauf si vous en voulez un : Paramètres › Assistant › Mot d’activation active celui de LLeMbas, sur ce téléphone.</string>
|
||||
<string name="channel_wake">Mot d’activation</string>
|
||||
<string name="wake_word">Mot d’activation</string>
|
||||
<string name="wake_word_listen">Écouter un mot d’activation</string>
|
||||
<string name="wake_word_line">Désactivé par défaut. Dites la phrase et l’assistant s’ouvre en écoute, par-dessus l’app à l’écran.</string>
|
||||
<string name="wake_word_unavailable">Pas dans cette version. La version F-Droid n’a pas de moteur de mot d’activation, car F-Droid compile chaque bibliothèque depuis les sources ; celle de llembas.eu en a un.</string>
|
||||
<string name="wake_screen_only">Seulement écran allumé</string>
|
||||
<string name="wake_screen_only_line">Désactivé : il écoute aussi écran éteint, au prix de plus de batterie.</string>
|
||||
<string name="wake_battery">Le laisser tourner en arrière-plan</string>
|
||||
<string name="wake_battery_line">Certains téléphones (Samsung, Xiaomi, Huawei, OnePlus et d’autres) arrêtent les apps en arrière-plan pour économiser la batterie, et le mot d’activation avec. Exemptez ici LLeMbas de l’optimisation de la batterie ; dontkillmyapp.com explique les réglages de votre téléphone.</string>
|
||||
<string name="wake_word_privacy">Rien ne quitte le téléphone avant le mot. Le son du micro ne va qu’au moteur de mot d’activation du téléphone et n’est pas conservé ; la notification reste affichée tant qu’il écoute. Les phrases sont en anglais ; le moteur est sherpa-onnx (open source).</string>
|
||||
<string name="wake_word_cost">Cela consomme de la batterie : le micro reste allumé et le processeur du téléphone examine chaque instant de son, sans la puce basse consommation de l’assistant intégré. Il se met en pause en économie de batterie, quand l’assistant est ouvert et, sauf si vous le changez, écran éteint. Après un redémarrage, touchez sa notification pour le relancer.</string>
|
||||
<string name="wake_listening_for">À l’écoute de « %1$s »</string>
|
||||
<string name="wake_notification_line">Rien ne quitte le téléphone avant que vous le disiez.</string>
|
||||
<string name="wake_paused_screen">Mot d’activation en pause : écran éteint</string>
|
||||
<string name="wake_paused_battery">Mot d’activation en pause : économiseur de batterie activé</string>
|
||||
<string name="wake_paused_assistant">Mot d’activation en pause pendant que l’assistant est ouvert</string>
|
||||
<string name="wake_paused_microphone">Mot d’activation en pause : micro ou moteur indisponible</string>
|
||||
<string name="wake_stop">Arrêter l’écoute</string>
|
||||
<string name="wake_heard">Entendu. Touchez pour demander.</string>
|
||||
<string name="wake_resume">Écouter à nouveau le mot d’activation</string>
|
||||
<string name="wake_resume_line">Le téléphone a redémarré. Touchez pour reprendre l’écoute.</string>
|
||||
<string name="assist_recogniser_failed">La reconnaissance vocale du téléphone s’est arrêtée. Réessayez, ou choisissez LLeMbas dans Réglages › Saisie vocale.</string>
|
||||
<string name="assistant_listens">Écouter dès l’ouverture de l’assistant</string>
|
||||
<string name="voice_input">Saisie vocale</string>
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
<string name="assist_quick_explain_prompt">Magyarázd el, mi van a képernyőmön.</string>
|
||||
<string name="assist_continue">Az utolsó csevegés folytatása</string>
|
||||
<string name="assist_help">Tartsa lenyomva a bekapcsológombot, hogy bármely alkalmazás fölött megnyissa az asszisztenst, vagy használja a Gyorsbeállítások csempét.</string>
|
||||
<string name="assist_no_wake_word">Ébresztőszó nincs: a gyári Androidon az ébresztőszó figyelése a telefonba épített asszisztensé.</string>
|
||||
<string name="assist_connecting">Csatlakozás…</string>
|
||||
<string name="assist_offline">%1$s nem érhető el</string>
|
||||
<string name="assist_no_model">Nincs modell</string>
|
||||
@@ -396,6 +395,28 @@
|
||||
<string name="assist_stop_words">állj|stop|ennyi|ennyi volt|elég|vége|viszlát|köszönöm ennyi|mégse</string>
|
||||
<string name="assistant_conversation">Szóbeli beszélgetés folytatása</string>
|
||||
<string name="assistant_conversation_line">Egy szóbeli válasz felolvasása után az asszisztens újra figyel — amíg nem mondod, hogy „állj”, nem koppintasz a Befejezésre, vagy néhány másodpercig nem szólsz. Headsettel is működik.</string>
|
||||
<string name="assist_wake_word_hint">Nincs ébresztőszó, hacsak nem kérsz: Beállítások › Asszisztens › Ébresztőszó bekapcsolja a LLeMbas sajátját, ezen a telefonon.</string>
|
||||
<string name="channel_wake">Ébresztőszó</string>
|
||||
<string name="wake_word">Ébresztőszó</string>
|
||||
<string name="wake_word_listen">Ébresztőszó figyelése</string>
|
||||
<string name="wake_word_line">Alapból ki van kapcsolva. Mondd ki a kifejezést, és az asszisztens figyelve megnyílik a képernyőn lévő alkalmazás fölött.</string>
|
||||
<string name="wake_word_unavailable">Ebben a változatban nincs. Az F-Droid-változatban nincs ébresztőszó-motor, mert az F-Droid minden könyvtárat forrásból fordít; a llembas.eu-s változatban van.</string>
|
||||
<string name="wake_screen_only">Csak bekapcsolt képernyőnél</string>
|
||||
<string name="wake_screen_only_line">Kikapcsolva kikapcsolt képernyőnél is figyel, ami több akkumulátort fogyaszt.</string>
|
||||
<string name="wake_battery">Futhasson a háttérben</string>
|
||||
<string name="wake_battery_line">Egyes telefonok (Samsung, Xiaomi, Huawei, OnePlus és mások) az akkumulátor kímélése miatt leállítják a háttéralkalmazásokat, és velük az ébresztőszót is. Itt vedd ki a LLeMbast az akkumulátor-optimalizálásból; a dontkillmyapp.com elmagyarázza a telefonod beállításait.</string>
|
||||
<string name="wake_word_privacy">A szó előtt semmi nem hagyja el a telefont. A mikrofon hangja csak a telefonon futó ébresztőszó-motorhoz jut, és nem tárolódik; amíg figyel, az értesítés végig látható. A kifejezések angolok; a motor a sherpa-onnx (nyílt forráskódú).</string>
|
||||
<string name="wake_word_cost">Akkumulátorba kerül: a mikrofon bekapcsolva marad, és a telefon processzora minden hangpillanatot ellenőriz, a beépített asszisztens energiatakarékos chipje nélkül. Energiatakarékos módban, nyitott asszisztensnél és — ha nem változtatod meg — kikapcsolt képernyőnél szünetel. Újraindítás után koppints az értesítésére az újraindításhoz.</string>
|
||||
<string name="wake_listening_for">Figyeli: „%1$s”</string>
|
||||
<string name="wake_notification_line">Amíg ki nem mondod, semmi nem hagyja el a telefont.</string>
|
||||
<string name="wake_paused_screen">Ébresztőszó szünetel: a képernyő ki van kapcsolva</string>
|
||||
<string name="wake_paused_battery">Ébresztőszó szünetel: be van kapcsolva az energiatakarékos mód</string>
|
||||
<string name="wake_paused_assistant">Az ébresztőszó szünetel, amíg az asszisztens nyitva van</string>
|
||||
<string name="wake_paused_microphone">Ébresztőszó szünetel: a mikrofon vagy a motor nem érhető el</string>
|
||||
<string name="wake_stop">Figyelés leállítása</string>
|
||||
<string name="wake_heard">Hallottalak. Koppints a kérdezéshez.</string>
|
||||
<string name="wake_resume">Ébresztőszó figyelése újra</string>
|
||||
<string name="wake_resume_line">A telefon újraindult. Koppints a figyelés folytatásához.</string>
|
||||
<string name="assist_recogniser_failed">A telefon beszédfelismerője leállt. Próbálja újra, vagy válassza a LLeMbast a Beállítások › Hangbevitel alatt.</string>
|
||||
<string name="assistant_listens">Hallgatás indítása az asszisztens megnyitásakor</string>
|
||||
<string name="voice_input">Hangbevitel</string>
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
<string name="assist_quick_explain_prompt">Spiega cosa c’è sul mio schermo.</string>
|
||||
<string name="assist_continue">Continua l’ultima chat</string>
|
||||
<string name="assist_help">Tenga premuto il tasto di accensione per aprire l’assistente sopra qualsiasi app, oppure usi il riquadro delle Impostazioni rapide.</string>
|
||||
<string name="assist_no_wake_word">Non c’è una parola di attivazione: su Android standard, l’ascolto di una tale parola è riservato all’assistente integrato nel telefono.</string>
|
||||
<string name="assist_connecting">Connessione…</string>
|
||||
<string name="assist_offline">%1$s non è raggiungibile</string>
|
||||
<string name="assist_no_model">Nessun modello</string>
|
||||
@@ -396,6 +395,28 @@
|
||||
<string name="assist_stop_words">basta|stop|è tutto|fine|ciao|arrivederci|grazie è tutto|annulla|smetti</string>
|
||||
<string name="assistant_conversation">Continuare una conversazione a voce</string>
|
||||
<string name="assistant_conversation_line">Dopo aver letto ad alta voce una risposta a voce, l’assistente ascolta di nuovo, finché non dici «basta», tocchi Termina o non dici nulla per qualche secondo. Funziona con le cuffie.</string>
|
||||
<string name="assist_wake_word_hint">Nessuna parola di attivazione, a meno che tu non la voglia: Impostazioni › Assistente › Parola di attivazione attiva quella di LLeMbas, su questo telefono.</string>
|
||||
<string name="channel_wake">Parola di attivazione</string>
|
||||
<string name="wake_word">Parola di attivazione</string>
|
||||
<string name="wake_word_listen">Ascolta una parola di attivazione</string>
|
||||
<string name="wake_word_line">Disattivata per impostazione predefinita. Di’ la frase e l’assistente si apre in ascolto, sopra l’app sullo schermo.</string>
|
||||
<string name="wake_word_unavailable">Non in questa build. La build F-Droid non ha un motore per la parola di attivazione, perché F-Droid compila ogni libreria dal sorgente; la build di llembas.eu ce l’ha.</string>
|
||||
<string name="wake_screen_only">Solo a schermo acceso</string>
|
||||
<string name="wake_screen_only_line">Disattivato: ascolta anche a schermo spento, con più consumo di batteria.</string>
|
||||
<string name="wake_battery">Lascialo funzionare in background</string>
|
||||
<string name="wake_battery_line">Alcuni telefoni (Samsung, Xiaomi, Huawei, OnePlus e altri) fermano le app in background per risparmiare batteria, e con loro la parola di attivazione. Escludi qui LLeMbas dall’ottimizzazione della batteria; dontkillmyapp.com spiega le impostazioni del tuo telefono.</string>
|
||||
<string name="wake_word_privacy">Niente lascia il telefono prima della parola. Il suono del microfono va solo al motore della parola di attivazione sul telefono e non viene conservato; la notifica resta visibile finché ascolta. Le frasi sono in inglese; il motore è sherpa-onnx (open source).</string>
|
||||
<string name="wake_word_cost">Consuma batteria: il microfono resta acceso e il processore del telefono esamina ogni istante di suono, senza il chip a basso consumo usato dall’assistente integrato. Si mette in pausa con il risparmio energetico, mentre l’assistente è aperto e, se non lo cambi, a schermo spento. Dopo un riavvio, tocca la sua notifica per riavviarlo.</string>
|
||||
<string name="wake_listening_for">In ascolto di «%1$s»</string>
|
||||
<string name="wake_notification_line">Niente lascia il telefono finché non lo dici.</string>
|
||||
<string name="wake_paused_screen">Parola di attivazione in pausa: schermo spento</string>
|
||||
<string name="wake_paused_battery">Parola di attivazione in pausa: risparmio energetico attivo</string>
|
||||
<string name="wake_paused_assistant">Parola di attivazione in pausa mentre l’assistente è aperto</string>
|
||||
<string name="wake_paused_microphone">Parola di attivazione in pausa: microfono o motore non disponibili</string>
|
||||
<string name="wake_stop">Smetti di ascoltare</string>
|
||||
<string name="wake_heard">Ti ho sentito. Tocca per chiedere.</string>
|
||||
<string name="wake_resume">Ascolta di nuovo la parola di attivazione</string>
|
||||
<string name="wake_resume_line">Il telefono si è riavviato. Tocca per ricominciare ad ascoltare.</string>
|
||||
<string name="assist_recogniser_failed">Il riconoscimento vocale del telefono si è fermato. Riprovi, oppure scelga LLeMbas in Impostazioni › Input vocale.</string>
|
||||
<string name="assistant_listens">Inizia ad ascoltare all’apertura dell’assistente</string>
|
||||
<string name="voice_input">Input vocale</string>
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
<string name="assist_quick_explain_prompt">Wyjaśnij, co jest na moim ekranie.</string>
|
||||
<string name="assist_continue">Kontynuuj ostatni czat</string>
|
||||
<string name="assist_help">Przytrzymaj przycisk zasilania, aby otworzyć asystenta nad dowolną aplikacją, albo użyj kafelka w Szybkich ustawieniach.</string>
|
||||
<string name="assist_no_wake_word">Nie ma słowa wybudzającego: w zwykłym Androidzie nasłuchiwanie go jest zarezerwowane dla asystenta wbudowanego w telefon.</string>
|
||||
<string name="assist_connecting">Łączenie…</string>
|
||||
<string name="assist_offline">%1$s jest nieosiągalna</string>
|
||||
<string name="assist_no_model">Brak modelu</string>
|
||||
@@ -396,6 +395,28 @@
|
||||
<string name="assist_stop_words">stop|wystarczy|to wszystko|koniec|do widzenia|dzięki to wszystko|anuluj|przestań</string>
|
||||
<string name="assistant_conversation">Prowadź rozmowę głosową</string>
|
||||
<string name="assistant_conversation_line">Po odczytaniu odpowiedzi na głos asystent znów słucha — dopóki nie powiesz „stop”, nie dotkniesz Zakończ albo nie będziesz milczeć przez kilka sekund. Działa ze słuchawkami.</string>
|
||||
<string name="assist_wake_word_hint">Bez słowa aktywującego, chyba że chcesz: Ustawienia › Asystent › Słowo aktywujące włącza własne słowo LLeMbas, na tym telefonie.</string>
|
||||
<string name="channel_wake">Słowo aktywujące</string>
|
||||
<string name="wake_word">Słowo aktywujące</string>
|
||||
<string name="wake_word_listen">Nasłuchuj słowa aktywującego</string>
|
||||
<string name="wake_word_line">Domyślnie wyłączone. Powiedz frazę, a asystent otworzy się i zacznie słuchać, nad aplikacją na ekranie.</string>
|
||||
<string name="wake_word_unavailable">Nie w tej wersji. Wersja z F-Droid nie ma silnika słowa aktywującego, bo F-Droid buduje każdą bibliotekę ze źródeł; wersja z llembas.eu go ma.</string>
|
||||
<string name="wake_screen_only">Tylko przy włączonym ekranie</string>
|
||||
<string name="wake_screen_only_line">Wyłączone: słucha także przy wyłączonym ekranie, kosztem baterii.</string>
|
||||
<string name="wake_battery">Pozwól działać w tle</string>
|
||||
<string name="wake_battery_line">Niektóre telefony (Samsung, Xiaomi, Huawei, OnePlus i inne) zatrzymują aplikacje w tle, by oszczędzać baterię, a z nimi słowo aktywujące. Wyłącz tu LLeMbas z optymalizacji baterii; dontkillmyapp.com wyjaśnia ustawienia Twojego telefonu.</string>
|
||||
<string name="wake_word_privacy">Nic nie opuszcza telefonu przed słowem. Dźwięk z mikrofonu trafia tylko do silnika słowa aktywującego w telefonie i nie jest zapisywany; powiadomienie jest widoczne przez cały czas nasłuchiwania. Frazy są po angielsku; silnik to sherpa-onnx (open source).</string>
|
||||
<string name="wake_word_cost">Zużywa baterię: mikrofon pozostaje włączony, a procesor telefonu sprawdza każdą chwilę dźwięku, bez energooszczędnego układu, którego używa wbudowany asystent. Wstrzymuje się w trybie oszczędzania baterii, gdy asystent jest otwarty, i — jeśli tego nie zmienisz — przy wyłączonym ekranie. Po ponownym uruchomieniu dotknij jego powiadomienia, by znów zaczął.</string>
|
||||
<string name="wake_listening_for">Nasłuchuje „%1$s”</string>
|
||||
<string name="wake_notification_line">Nic nie opuszcza telefonu, dopóki tego nie powiesz.</string>
|
||||
<string name="wake_paused_screen">Słowo aktywujące wstrzymane: ekran jest wyłączony</string>
|
||||
<string name="wake_paused_battery">Słowo aktywujące wstrzymane: oszczędzanie baterii jest włączone</string>
|
||||
<string name="wake_paused_assistant">Słowo aktywujące wstrzymane, gdy asystent jest otwarty</string>
|
||||
<string name="wake_paused_microphone">Słowo aktywujące wstrzymane: mikrofon lub silnik jest niedostępny</string>
|
||||
<string name="wake_stop">Przestań słuchać</string>
|
||||
<string name="wake_heard">Słyszę. Dotknij, aby zapytać.</string>
|
||||
<string name="wake_resume">Znów nasłuchuj słowa aktywującego</string>
|
||||
<string name="wake_resume_line">Telefon uruchomił się ponownie. Dotknij, aby znów słuchać.</string>
|
||||
<string name="assist_recogniser_failed">Rozpoznawanie mowy w telefonie przestało działać. Spróbuj ponownie albo wybierz LLeMbas w Ustawienia › Wprowadzanie głosowe.</string>
|
||||
<string name="assistant_listens">Zacznij słuchać po otwarciu asystenta</string>
|
||||
<string name="voice_input">Wprowadzanie głosowe</string>
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
<string name="assist_quick_explain_prompt">Vysvetli, čo je na mojej obrazovke.</string>
|
||||
<string name="assist_continue">Pokračovať v poslednej konverzácii</string>
|
||||
<string name="assist_help">Podržaním tlačidla napájania otvoríte asistenta nad ľubovoľnou aplikáciou; alebo použite dlaždicu v Rýchlych nastaveniach.</string>
|
||||
<string name="assist_no_wake_word">Budiace slovo nie je: na bežnom Androide je počúvanie budiaceho slova vyhradené asistentovi zabudovanému v telefóne.</string>
|
||||
<string name="assist_connecting">Pripája sa…</string>
|
||||
<string name="assist_offline">%1$s je nedostupná</string>
|
||||
<string name="assist_no_model">Žiadny model</string>
|
||||
@@ -396,6 +395,28 @@
|
||||
<string name="assist_stop_words">stop|dosť|to je všetko|koniec|dovidenia|ďakujem to je všetko|zrušiť|prestaň</string>
|
||||
<string name="assistant_conversation">Pokračovať v hovorenom rozhovore</string>
|
||||
<string name="assistant_conversation_line">Po prečítaní hovorenej odpovede asistent znova počúva — kým nepoviete „stop“, neťuknete na Ukončiť alebo pár sekúnd nič nepoviete. Funguje aj so slúchadlami.</string>
|
||||
<string name="assist_wake_word_hint">Budiace slovo len ak chcete: Nastavenia › Asistent › Budiace slovo zapne vlastné slovo LLeMbas, priamo v tomto telefóne.</string>
|
||||
<string name="channel_wake">Budiace slovo</string>
|
||||
<string name="wake_word">Budiace slovo</string>
|
||||
<string name="wake_word_listen">Počúvať budiace slovo</string>
|
||||
<string name="wake_word_line">Predvolene vypnuté. Povedzte frázu a asistent sa otvorí a počúva, nad akoukoľvek aplikáciou na obrazovke.</string>
|
||||
<string name="wake_word_unavailable">V tomto zostavení nie je. Zostavenie pre F-Droid nemá modul pre budiace slovo, pretože F-Droid zostavuje každú knižnicu zo zdrojov; zostavenie z llembas.eu ho má.</string>
|
||||
<string name="wake_screen_only">Len pri zapnutej obrazovke</string>
|
||||
<string name="wake_screen_only_line">Vypnuté: počúva aj pri zhasnutej obrazovke, za cenu vyššej spotreby batérie.</string>
|
||||
<string name="wake_battery">Nechať bežať na pozadí</string>
|
||||
<string name="wake_battery_line">Niektoré telefóny (Samsung, Xiaomi, Huawei, OnePlus a ďalšie) kvôli batérii zastavujú aplikácie na pozadí, a s nimi aj budiace slovo. Tu vyjmite LLeMbas z optimalizácie batérie; dontkillmyapp.com vysvetľuje nastavenia vášho telefónu.</string>
|
||||
<string name="wake_word_privacy">Pred vyslovením slova nič neopustí telefón. Zvuk z mikrofónu ide len do modulu pre budiace slovo v telefóne a neukladá sa; počas celého počúvania je viditeľné oznámenie. Frázy sú anglické; modul je sherpa-onnx (open source).</string>
|
||||
<string name="wake_word_cost">Stojí to batériu: mikrofón zostáva zapnutý a procesor telefónu kontroluje každý okamih zvuku, bez úsporného čipu, ktorý používa vstavaný asistent. Pozastaví sa v úspornom režime, keď je asistent otvorený, a ak to nezmeníte, aj pri zhasnutej obrazovke. Po reštarte ho znova spustíte ťuknutím na oznámenie.</string>
|
||||
<string name="wake_listening_for">Počúvam frázu „%1$s“</string>
|
||||
<string name="wake_notification_line">Kým ju nepoviete, nič neopustí telefón.</string>
|
||||
<string name="wake_paused_screen">Budiace slovo pozastavené: obrazovka je zhasnutá</string>
|
||||
<string name="wake_paused_battery">Budiace slovo pozastavené: je zapnutý úsporný režim</string>
|
||||
<string name="wake_paused_assistant">Budiace slovo je pozastavené, kým je asistent otvorený</string>
|
||||
<string name="wake_paused_microphone">Budiace slovo pozastavené: mikrofón alebo modul nie je k dispozícii</string>
|
||||
<string name="wake_stop">Prestať počúvať</string>
|
||||
<string name="wake_heard">Počul som vás. Ťuknite a pýtajte sa.</string>
|
||||
<string name="wake_resume">Znova počúvať budiace slovo</string>
|
||||
<string name="wake_resume_line">Telefón sa reštartoval. Ťuknutím znova spustíte počúvanie.</string>
|
||||
<string name="assist_recogniser_failed">Rozpoznávanie reči v telefóne sa zastavilo. Skúste to znova alebo zvoľte LLeMbas v Nastaveniach › Hlasový vstup.</string>
|
||||
<string name="assistant_listens">Začať počúvať, keď sa asistent otvorí</string>
|
||||
<string name="voice_input">Hlasový vstup</string>
|
||||
|
||||
@@ -379,7 +379,6 @@
|
||||
<string name="assist_quick_explain_prompt">Explain what is on my screen.</string>
|
||||
<string name="assist_continue">Continue the last chat</string>
|
||||
<string name="assist_help">Hold the power button to open the assistant over any app, or use the Quick Settings tile.</string>
|
||||
<string name="assist_no_wake_word">There is no wake word: on stock Android, listening for one is kept for the assistant built into the phone.</string>
|
||||
<string name="assist_connecting">Connecting…</string>
|
||||
<string name="assist_offline">%1$s cannot be reached</string>
|
||||
<string name="assist_no_model">No model</string>
|
||||
@@ -398,6 +397,28 @@
|
||||
<string name="assist_stop_words">stop|that\'s all|that is all|that\'s it|goodbye|bye|enough|end|thank you that\'s all|cancel</string>
|
||||
<string name="assistant_conversation">Keep a spoken conversation going</string>
|
||||
<string name="assistant_conversation_line">After a spoken answer is read aloud, the assistant listens again — until you say “stop”, tap End, or say nothing for a few seconds. Works with a headset.</string>
|
||||
<string name="assist_wake_word_hint">No wake word unless you want one: Settings › Assistant › Wake word turns on LLeMbas\'s own, on this phone.</string>
|
||||
<string name="channel_wake">Wake word</string>
|
||||
<string name="wake_word">Wake word</string>
|
||||
<string name="wake_word_listen">Listen for a wake word</string>
|
||||
<string name="wake_word_line">Off by default. Say the phrase and the assistant opens, listening, over whatever app is on screen.</string>
|
||||
<string name="wake_word_unavailable">Not in this build. The F-Droid build has no wake-word engine, because F-Droid builds every library from source; the build from llembas.eu has one.</string>
|
||||
<string name="wake_screen_only">Only while the screen is on</string>
|
||||
<string name="wake_screen_only_line">Off: it listens with the screen off too, at more cost to the battery.</string>
|
||||
<string name="wake_battery">Let it run in the background</string>
|
||||
<string name="wake_battery_line">Some phones (Samsung, Xiaomi, Huawei, OnePlus and others) stop background apps to save battery, and the wake word with them. Exempt LLeMbas from battery optimisation here; dontkillmyapp.com explains your phone\'s own settings.</string>
|
||||
<string name="wake_word_privacy">Nothing leaves the phone before the word. The microphone\'s sound goes only to the wake-word engine on the phone and is not kept, and the notification stays up the whole time it listens. The phrases are English; the engine is sherpa-onnx (open source).</string>
|
||||
<string name="wake_word_cost">It costs battery: the microphone stays on and the phone\'s processor checks every moment of sound, without the low-power chip the built-in assistant uses. It pauses in battery saver, while the assistant is open and, unless you change it, with the screen off. After a restart, tap its notification to start it again.</string>
|
||||
<string name="wake_listening_for">Listening for “%1$s”</string>
|
||||
<string name="wake_notification_line">Nothing leaves the phone until you say it.</string>
|
||||
<string name="wake_paused_screen">Wake word paused: the screen is off</string>
|
||||
<string name="wake_paused_battery">Wake word paused: battery saver is on</string>
|
||||
<string name="wake_paused_assistant">Wake word paused while the assistant is open</string>
|
||||
<string name="wake_paused_microphone">Wake word paused: the microphone or the engine is not available</string>
|
||||
<string name="wake_stop">Stop listening</string>
|
||||
<string name="wake_heard">Heard you. Tap to ask.</string>
|
||||
<string name="wake_resume">Listen for the wake word again</string>
|
||||
<string name="wake_resume_line">The phone restarted. Tap to start listening again.</string>
|
||||
<string name="assist_recogniser_failed">The phone\'s speech recogniser stopped. Try again, or choose LLeMbas under Settings › Voice input.</string>
|
||||
<string name="assistant_listens">Start listening when the assistant opens</string>
|
||||
<string name="voice_input">Voice input</string>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package eu.llembas.android
|
||||
|
||||
import eu.llembas.android.wake.WakePause
|
||||
import eu.llembas.android.wake.WakePhrases
|
||||
import eu.llembas.android.wake.wakePause
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class WakeTest {
|
||||
@Test
|
||||
fun itListensOnlyWhenNothingStandsInTheWay() {
|
||||
assertEquals(WakePause.None, wakePause(screenOn = true, screenOnly = true, batterySaver = false, sheetOpen = false, micAllowed = true))
|
||||
assertEquals(WakePause.ScreenOff, wakePause(screenOn = false, screenOnly = true, batterySaver = false, sheetOpen = false, micAllowed = true))
|
||||
// Told to listen with the screen off too.
|
||||
assertEquals(WakePause.None, wakePause(screenOn = false, screenOnly = false, batterySaver = false, sheetOpen = false, micAllowed = true))
|
||||
assertEquals(WakePause.BatterySaver, wakePause(screenOn = true, screenOnly = true, batterySaver = true, sheetOpen = false, micAllowed = true))
|
||||
// The sheet has the microphone.
|
||||
assertEquals(WakePause.Assistant, wakePause(screenOn = true, screenOnly = true, batterySaver = true, sheetOpen = true, micAllowed = true))
|
||||
assertEquals(WakePause.NoMicrophone, wakePause(screenOn = true, screenOnly = true, batterySaver = false, sheetOpen = false, micAllowed = false))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun phrasesAreSpelledInTheModelsPieces() {
|
||||
assertEquals("hey_lembas", WakePhrases.byId("nonsense").id)
|
||||
// Every piece of the spelling starts a word with ▁ or continues one; no spaces inside a word.
|
||||
for (phrase in WakePhrases.all) {
|
||||
assertTrue(phrase.tokens.startsWith("▁"))
|
||||
assertEquals(phrase.words.split(' ').size, phrase.tokens.split(' ').count { it.startsWith("▁") })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -362,6 +362,7 @@ object Fakes {
|
||||
version = "1.0.0-beta.3",
|
||||
selfUpdate = true,
|
||||
phoneRecognizer = true,
|
||||
wakeAvailable = true,
|
||||
)
|
||||
|
||||
// The assistant's sheet, as it opens and as it answers.
|
||||
|
||||
Executable
+83
@@ -0,0 +1,83 @@
|
||||
#!/usr/bin/env python3
|
||||
"""The wake-word engine and its model, for the `full` build -- fetched, never committed.
|
||||
|
||||
scripts/fetch-wakeword.py download (or check) both, hash-pinned
|
||||
|
||||
The engine is sherpa-onnx (Apache-2.0, k2-fsa): its Android library, as the project publishes it
|
||||
on its GitHub releases (onnxruntime inside, MIT). The model is its English keyword spotter,
|
||||
`sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01` (Apache-2.0, trained with icefall), of
|
||||
which the int8 encoder, decoder and joiner and the token table go into the APK's assets.
|
||||
|
||||
Neither file is in the repository: prebuilt binaries are not source. CI runs this before Gradle;
|
||||
an F-Droid build, which builds every library from source, uses the `fdroid` flavour, which has
|
||||
no engine (`app/src/fdroid/.../wake/Engine.kt`). Every download is checked against the SHA-256
|
||||
below before anything is written where the build reads it.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import io
|
||||
import sys
|
||||
import tarfile
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
VERSION = "2.0.1"
|
||||
AAR_URL = f"https://github.com/k2-fsa/sherpa-onnx/releases/download/v{VERSION}/sherpa-onnx-{VERSION}.aar"
|
||||
AAR_SHA = "a8d09d1d32f3eb8520482c6d3d43fae674681c5b050385967c70a3c2c9bf0ee7"
|
||||
AAR = ROOT / "app/libs" / f"sherpa-onnx-{VERSION}.aar"
|
||||
|
||||
MODEL = "sherpa-onnx-kws-zipformer-gigaspeech-3.3M-2024-01-01"
|
||||
MODEL_URL = f"https://github.com/k2-fsa/sherpa-onnx/releases/download/kws-models/{MODEL}.tar.bz2"
|
||||
MODEL_SHA = "f170013b4716e41b62b9bfd809687c207cef798ef9bc6534d524e17af9b6561a"
|
||||
ASSETS = ROOT / "app/src/full/assets/wakeword"
|
||||
# The file in the archive -> its name in the assets, and its SHA-256.
|
||||
FILES = {
|
||||
"encoder-epoch-12-avg-2-chunk-16-left-64.int8.onnx": ("encoder.int8.onnx", "1e721676515bcd42a186979733981213c66c80db680e1cc582dfedf3be76e678"),
|
||||
"decoder-epoch-12-avg-2-chunk-16-left-64.int8.onnx": ("decoder.int8.onnx", "e40ff43297abe815e8898494c17e71bba2152d9d40fa3eb803f75d0f7533329a"),
|
||||
"joiner-epoch-12-avg-2-chunk-16-left-64.int8.onnx": ("joiner.int8.onnx", "eae9da0c7e1e6c6a3f4cc42d167899c388f6c6701b94cb96320e4f55df79624c"),
|
||||
"tokens.txt": ("tokens.txt", "fd2ded4050a55d2b1578870ba8697d02371980217806b7558bd0a5cc60f3ba53"),
|
||||
}
|
||||
|
||||
|
||||
def sha(data: bytes) -> str:
|
||||
return hashlib.sha256(data).hexdigest()
|
||||
|
||||
|
||||
def download(url: str, expected: str) -> bytes:
|
||||
for attempt in range(5):
|
||||
try:
|
||||
with urllib.request.urlopen(url, timeout=120) as response:
|
||||
data = response.read()
|
||||
break
|
||||
except OSError as e: # GitHub's release assets answer 5xx for minutes at a time
|
||||
if attempt == 4:
|
||||
sys.exit(f"fetch-wakeword: {url}: {e}")
|
||||
if sha(data) != expected:
|
||||
sys.exit(f"fetch-wakeword: {url} is not the pinned file (sha256 {sha(data)})")
|
||||
return data
|
||||
|
||||
|
||||
def main() -> None:
|
||||
if not (AAR.exists() and sha(AAR.read_bytes()) == AAR_SHA):
|
||||
AAR.parent.mkdir(parents=True, exist_ok=True)
|
||||
AAR.write_bytes(download(AAR_URL, AAR_SHA))
|
||||
print(f"fetch-wakeword: {AAR.relative_to(ROOT)}")
|
||||
wanted = {ASSETS / name: digest for name, digest in FILES.values()}
|
||||
if all(p.exists() and sha(p.read_bytes()) == d for p, d in wanted.items()):
|
||||
print("fetch-wakeword: engine and model are in place")
|
||||
return
|
||||
archive = tarfile.open(fileobj=io.BytesIO(download(MODEL_URL, MODEL_SHA)), mode="r:bz2")
|
||||
ASSETS.mkdir(parents=True, exist_ok=True)
|
||||
for source, (name, digest) in FILES.items():
|
||||
data = archive.extractfile(f"{MODEL}/{source}").read()
|
||||
if sha(data) != digest:
|
||||
sys.exit(f"fetch-wakeword: {source} in the archive is not the pinned file")
|
||||
(ASSETS / name).write_bytes(data)
|
||||
print(f"fetch-wakeword: {ASSETS.relative_to(ROOT)} ({len(FILES)} files)")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
+22
-1
@@ -404,7 +404,6 @@ STRINGS: dict[str, str] = {
|
||||
"assist_quick_explain_prompt": "Explain what is on my screen.",
|
||||
"assist_continue": "Continue the last chat",
|
||||
"assist_help": "Hold the power button to open the assistant over any app, or use the Quick Settings tile.",
|
||||
"assist_no_wake_word": "There is no wake word: on stock Android, listening for one is kept for the assistant built into the phone.",
|
||||
"assist_connecting": "Connecting…",
|
||||
"assist_offline": "%1$s cannot be reached",
|
||||
"assist_no_model": "No model",
|
||||
@@ -423,6 +422,28 @@ STRINGS: dict[str, str] = {
|
||||
"assist_stop_words": "stop|that's all|that is all|that's it|goodbye|bye|enough|end|thank you that's all|cancel",
|
||||
"assistant_conversation": "Keep a spoken conversation going",
|
||||
"assistant_conversation_line": "After a spoken answer is read aloud, the assistant listens again — until you say “stop”, tap End, or say nothing for a few seconds. Works with a headset.",
|
||||
"assist_wake_word_hint": "No wake word unless you want one: Settings › Assistant › Wake word turns on LLeMbas's own, on this phone.",
|
||||
"channel_wake": "Wake word",
|
||||
"wake_word": "Wake word",
|
||||
"wake_word_listen": "Listen for a wake word",
|
||||
"wake_word_line": "Off by default. Say the phrase and the assistant opens, listening, over whatever app is on screen.",
|
||||
"wake_word_unavailable": "Not in this build. The F-Droid build has no wake-word engine, because F-Droid builds every library from source; the build from llembas.eu has one.",
|
||||
"wake_screen_only": "Only while the screen is on",
|
||||
"wake_screen_only_line": "Off: it listens with the screen off too, at more cost to the battery.",
|
||||
"wake_battery": "Let it run in the background",
|
||||
"wake_battery_line": "Some phones (Samsung, Xiaomi, Huawei, OnePlus and others) stop background apps to save battery, and the wake word with them. Exempt LLeMbas from battery optimisation here; dontkillmyapp.com explains your phone's own settings.",
|
||||
"wake_word_privacy": "Nothing leaves the phone before the word. The microphone's sound goes only to the wake-word engine on the phone and is not kept, and the notification stays up the whole time it listens. The phrases are English; the engine is sherpa-onnx (open source).",
|
||||
"wake_word_cost": "It costs battery: the microphone stays on and the phone's processor checks every moment of sound, without the low-power chip the built-in assistant uses. It pauses in battery saver, while the assistant is open and, unless you change it, with the screen off. After a restart, tap its notification to start it again.",
|
||||
"wake_listening_for": "Listening for “%1$s”",
|
||||
"wake_notification_line": "Nothing leaves the phone until you say it.",
|
||||
"wake_paused_screen": "Wake word paused: the screen is off",
|
||||
"wake_paused_battery": "Wake word paused: battery saver is on",
|
||||
"wake_paused_assistant": "Wake word paused while the assistant is open",
|
||||
"wake_paused_microphone": "Wake word paused: the microphone or the engine is not available",
|
||||
"wake_stop": "Stop listening",
|
||||
"wake_heard": "Heard you. Tap to ask.",
|
||||
"wake_resume": "Listen for the wake word again",
|
||||
"wake_resume_line": "The phone restarted. Tap to start listening again.",
|
||||
"assist_recogniser_failed": "The phone's speech recogniser stopped. Try again, or choose LLeMbas under Settings › Voice input.",
|
||||
"assistant_listens": "Start listening when the assistant opens",
|
||||
"voice_input": "Voice input",
|
||||
|
||||
+176
-8
@@ -27,7 +27,6 @@
|
||||
"assist_help": "Podržením tlačítka napájení otevřete asistenta nad libovolnou aplikací; nebo použijte dlaždici v Rychlém nastavení.",
|
||||
"assist_hint": "Zeptejte se na cokoli",
|
||||
"assist_no_model": "Žádný model",
|
||||
"assist_no_wake_word": "Budicí slovo není: na běžném Androidu je naslouchání budicímu slovu vyhrazeno asistentovi zabudovanému v telefonu.",
|
||||
"assist_offline": "%1$s není dostupná",
|
||||
"assist_open_app": "Otevřít aplikaci",
|
||||
"assist_open_in_app": "Pokračovat v aplikaci",
|
||||
@@ -51,6 +50,7 @@
|
||||
"assist_use_screen": "Použít obrazovku",
|
||||
"assist_voice_reply_off": "Hlasová odpověď je vypnutá",
|
||||
"assist_voice_reply_on": "Hlasová odpověď je zapnutá",
|
||||
"assist_wake_word_hint": "Budicí slovo jen pokud chcete: Nastavení › Asistent › Budicí slovo zapne vlastní slovo LLeMbas, přímo v tomto telefonu.",
|
||||
"assist_writing_down": "Zapisuji, co jste řekli…",
|
||||
"assistant_conversation": "Pokračovat v mluveném rozhovoru",
|
||||
"assistant_conversation_line": "Po přečtení mluvené odpovědi asistent znovu poslouchá — dokud neřeknete „stop“, neklepnete na Ukončit nebo pár sekund nic neřeknete. Funguje i se sluchátky.",
|
||||
@@ -72,6 +72,7 @@
|
||||
"channel_scheduled": "Výsledky naplánovaných úloh",
|
||||
"channel_scheduled_failures": "Selhání naplánovaných úloh",
|
||||
"channel_updates": "Aktualizace aplikace",
|
||||
"channel_wake": "Budicí slovo",
|
||||
"chats_agents": "Chaty s agentem",
|
||||
"chats_earlier": "Dříve",
|
||||
"chats_found_in_messages": "Ve zprávách",
|
||||
@@ -230,6 +231,26 @@
|
||||
"voice_input_phone": "Telefon (Google nebo systémový)",
|
||||
"voice_input_phone_line": "Vlastní rozpoznávání řeči v telefonu. Slova se objevují, jak mluvíte; nahrávka jde tam, kam ji to rozpoznávání pošle.",
|
||||
"voice_input_phone_none": "Tento telefon nemá vlastní rozpoznávání řeči.",
|
||||
"wake_battery": "Nechat běžet na pozadí",
|
||||
"wake_battery_line": "Některé telefony (Samsung, Xiaomi, Huawei, OnePlus a další) kvůli baterii zastavují aplikace na pozadí, a s nimi i budicí slovo. Zde vyjměte LLeMbas z optimalizace baterie; dontkillmyapp.com vysvětluje nastavení vašeho telefonu.",
|
||||
"wake_heard": "Slyšel jsem vás. Klepněte a ptejte se.",
|
||||
"wake_listening_for": "Naslouchám frázi „%1$s“",
|
||||
"wake_notification_line": "Dokud ji neřeknete, nic neopustí telefon.",
|
||||
"wake_paused_assistant": "Budicí slovo je pozastaveno, dokud je asistent otevřený",
|
||||
"wake_paused_battery": "Budicí slovo pozastaveno: je zapnutý úsporný režim",
|
||||
"wake_paused_microphone": "Budicí slovo pozastaveno: mikrofon nebo modul není k dispozici",
|
||||
"wake_paused_screen": "Budicí slovo pozastaveno: obrazovka je zhasnutá",
|
||||
"wake_resume": "Znovu naslouchat budicímu slovu",
|
||||
"wake_resume_line": "Telefon se restartoval. Klepnutím znovu spustíte naslouchání.",
|
||||
"wake_screen_only": "Jen při zapnuté obrazovce",
|
||||
"wake_screen_only_line": "Vypnuto: poslouchá i při zhasnuté obrazovce, za cenu vyšší spotřeby baterie.",
|
||||
"wake_stop": "Přestat naslouchat",
|
||||
"wake_word": "Budicí slovo",
|
||||
"wake_word_cost": "Stojí to baterii: mikrofon zůstává zapnutý a procesor telefonu kontroluje každý okamžik zvuku, bez úsporného čipu, který používá vestavěný asistent. Pozastaví se v úsporném režimu, když je asistent otevřený, a pokud to nezměníte, i při zhasnuté obrazovce. Po restartu ho znovu spustíte klepnutím na oznámení.",
|
||||
"wake_word_line": "Ve výchozím stavu vypnuto. Řekněte frázi a asistent se otevře a poslouchá, nad jakoukoli aplikací na obrazovce.",
|
||||
"wake_word_listen": "Naslouchat budicímu slovu",
|
||||
"wake_word_privacy": "Před vyslovením slova nic neopustí telefon. Zvuk z mikrofonu jde jen do modulu pro budicí slovo v telefonu a neukládá se; po celou dobu naslouchání je vidět oznámení. Fráze jsou anglické; modul je sherpa-onnx (open source).",
|
||||
"wake_word_unavailable": "V tomto sestavení není. Sestavení pro F-Droid nemá modul pro budicí slovo, protože F-Droid sestavuje každou knihovnu ze zdrojů; sestavení z llembas.eu ho má.",
|
||||
"widget_description": "Ptejte se hlasem nebo textem, nebo pokračujte v poslední konverzaci s asistentem. Neukazuje nic z vašeho účtu.",
|
||||
"widget_hint": "Zeptejte se na cokoli",
|
||||
"widget_speak": "Mluvit"
|
||||
@@ -262,7 +283,6 @@
|
||||
"assist_help": "Halten Sie die Ein-/Aus-Taste, um den Assistenten über jeder App zu öffnen, oder nutzen Sie die Kachel in den Schnelleinstellungen.",
|
||||
"assist_hint": "Fragen Sie irgendetwas",
|
||||
"assist_no_model": "Kein Modell",
|
||||
"assist_no_wake_word": "Es gibt kein Aktivierungswort: Auf normalem Android ist das Lauschen darauf dem im Telefon eingebauten Assistenten vorbehalten.",
|
||||
"assist_offline": "%1$s ist nicht erreichbar",
|
||||
"assist_open_app": "App öffnen",
|
||||
"assist_open_in_app": "In der App fortsetzen",
|
||||
@@ -286,6 +306,7 @@
|
||||
"assist_use_screen": "Bildschirm verwenden",
|
||||
"assist_voice_reply_off": "Sprachantwort ist aus",
|
||||
"assist_voice_reply_on": "Sprachantwort ist an",
|
||||
"assist_wake_word_hint": "Kein Aktivierungswort, außer du willst eines: Einstellungen › Assistent › Aktivierungswort schaltet das eigene von LLeMbas ein, auf diesem Telefon.",
|
||||
"assist_writing_down": "Ihr Gesagtes wird aufgeschrieben…",
|
||||
"assistant_conversation": "Ein gesprochenes Gespräch fortführen",
|
||||
"assistant_conversation_line": "Nachdem eine gesprochene Antwort vorgelesen wurde, hört der Assistent wieder zu — bis du „Stopp“ sagst, auf Beenden tippst oder ein paar Sekunden nichts sagst. Funktioniert mit einem Headset.",
|
||||
@@ -307,6 +328,7 @@
|
||||
"channel_scheduled": "Geplante Ergebnisse",
|
||||
"channel_scheduled_failures": "Geplante Fehler",
|
||||
"channel_updates": "App-Updates",
|
||||
"channel_wake": "Aktivierungswort",
|
||||
"chats_agents": "Agenten-Chats",
|
||||
"chats_earlier": "Früher",
|
||||
"chats_found_in_messages": "In den Nachrichten",
|
||||
@@ -466,6 +488,26 @@
|
||||
"voice_input_phone": "Telefon (Google oder das System)",
|
||||
"voice_input_phone_line": "Die eigene Spracherkennung des Telefons. Die Wörter erscheinen beim Sprechen; die Aufnahme geht dorthin, wohin diese Erkennung sie schickt.",
|
||||
"voice_input_phone_none": "Dieses Telefon hat keine eigene Spracherkennung.",
|
||||
"wake_battery": "Im Hintergrund laufen lassen",
|
||||
"wake_battery_line": "Manche Telefone (Samsung, Xiaomi, Huawei, OnePlus und andere) beenden Hintergrund-Apps, um Akku zu sparen, und damit auch das Aktivierungswort. Nimm LLeMbas hier von der Akku-Optimierung aus; dontkillmyapp.com erklärt die Einstellungen deines Telefons.",
|
||||
"wake_heard": "Gehört. Tippe, um zu fragen.",
|
||||
"wake_listening_for": "Hört auf „%1$s“",
|
||||
"wake_notification_line": "Bis du es sagst, verlässt nichts das Telefon.",
|
||||
"wake_paused_assistant": "Aktivierungswort pausiert, solange der Assistent offen ist",
|
||||
"wake_paused_battery": "Aktivierungswort pausiert: Energiesparmodus ist an",
|
||||
"wake_paused_microphone": "Aktivierungswort pausiert: Mikrofon oder Engine nicht verfügbar",
|
||||
"wake_paused_screen": "Aktivierungswort pausiert: Bildschirm aus",
|
||||
"wake_resume": "Wieder auf das Aktivierungswort hören",
|
||||
"wake_resume_line": "Das Telefon wurde neu gestartet. Tippe, um wieder zuzuhören.",
|
||||
"wake_screen_only": "Nur bei eingeschaltetem Bildschirm",
|
||||
"wake_screen_only_line": "Aus: Es hört auch bei ausgeschaltetem Bildschirm zu, was mehr Akku kostet.",
|
||||
"wake_stop": "Nicht mehr zuhören",
|
||||
"wake_word": "Aktivierungswort",
|
||||
"wake_word_cost": "Es kostet Akku: Das Mikrofon bleibt an, und der Prozessor des Telefons prüft jeden Moment Ton, ohne den Stromspar-Chip, den der eingebaute Assistent nutzt. Es pausiert im Energiesparmodus, während der Assistent offen ist und, wenn du es nicht änderst, bei ausgeschaltetem Bildschirm. Nach einem Neustart tippe auf seine Benachrichtigung, um es wieder zu starten.",
|
||||
"wake_word_line": "Standardmäßig aus. Sag den Satz, und der Assistent öffnet sich zuhörend über der App auf dem Bildschirm.",
|
||||
"wake_word_listen": "Auf ein Aktivierungswort hören",
|
||||
"wake_word_privacy": "Vor dem Wort verlässt nichts das Telefon. Der Ton des Mikrofons geht nur an die Aktivierungswort-Engine auf dem Telefon und wird nicht gespeichert; die Benachrichtigung bleibt sichtbar, solange es zuhört. Die Sätze sind englisch; die Engine ist sherpa-onnx (Open Source).",
|
||||
"wake_word_unavailable": "Nicht in diesem Build. Der F-Droid-Build hat keine Aktivierungswort-Engine, weil F-Droid jede Bibliothek aus dem Quellcode baut; der Build von llembas.eu hat eine.",
|
||||
"widget_description": "Per Sprache oder Text fragen oder den letzten Assistenten-Chat fortsetzen. Zeigt nichts aus Ihrem Konto.",
|
||||
"widget_hint": "Frag mich alles",
|
||||
"widget_speak": "Sprechen"
|
||||
@@ -498,7 +540,6 @@
|
||||
"assist_help": "Mantenga pulsado el botón de encendido para abrir el asistente sobre cualquier app, o use el mosaico de Ajustes rápidos.",
|
||||
"assist_hint": "Pregunte lo que quiera",
|
||||
"assist_no_model": "Sin modelo",
|
||||
"assist_no_wake_word": "No hay palabra de activación: en Android estándar, escucharla está reservado al asistente integrado en el teléfono.",
|
||||
"assist_offline": "No se puede contactar con %1$s",
|
||||
"assist_open_app": "Abrir la aplicación",
|
||||
"assist_open_in_app": "Continuar en la aplicación",
|
||||
@@ -522,6 +563,7 @@
|
||||
"assist_use_screen": "Usar la pantalla",
|
||||
"assist_voice_reply_off": "Respuesta por voz desactivada",
|
||||
"assist_voice_reply_on": "Respuesta por voz activada",
|
||||
"assist_wake_word_hint": "Sin palabra de activación salvo que quieras una: Ajustes › Asistente › Palabra de activación activa la propia de LLeMbas, en este teléfono.",
|
||||
"assist_writing_down": "Escribiendo lo que ha dicho…",
|
||||
"assistant_conversation": "Mantener una conversación hablada",
|
||||
"assistant_conversation_line": "Después de leer en voz alta una respuesta hablada, el asistente vuelve a escuchar, hasta que digas «para», toques Terminar o no digas nada durante unos segundos. Funciona con auriculares.",
|
||||
@@ -543,6 +585,7 @@
|
||||
"channel_scheduled": "Resultados programados",
|
||||
"channel_scheduled_failures": "Fallos programados",
|
||||
"channel_updates": "Actualizaciones de la aplicación",
|
||||
"channel_wake": "Palabra de activación",
|
||||
"chats_agents": "Chats de agente",
|
||||
"chats_earlier": "Antes",
|
||||
"chats_found_in_messages": "En los mensajes",
|
||||
@@ -701,6 +744,26 @@
|
||||
"voice_input_phone": "Teléfono (Google o el del sistema)",
|
||||
"voice_input_phone_line": "El reconocimiento de voz del propio teléfono. Las palabras aparecen mientras habla; la grabación va adonde ese reconocimiento la envíe.",
|
||||
"voice_input_phone_none": "Este teléfono no tiene reconocimiento de voz propio.",
|
||||
"wake_battery": "Dejar que funcione en segundo plano",
|
||||
"wake_battery_line": "Algunos teléfonos (Samsung, Xiaomi, Huawei, OnePlus y otros) detienen las apps en segundo plano para ahorrar batería, y con ellas la palabra de activación. Excluye aquí a LLeMbas de la optimización de batería; dontkillmyapp.com explica los ajustes de tu teléfono.",
|
||||
"wake_heard": "Te he oído. Toca para preguntar.",
|
||||
"wake_listening_for": "Escuchando «%1$s»",
|
||||
"wake_notification_line": "Nada sale del teléfono hasta que lo digas.",
|
||||
"wake_paused_assistant": "Palabra de activación en pausa mientras el asistente está abierto",
|
||||
"wake_paused_battery": "Palabra de activación en pausa: ahorro de batería activado",
|
||||
"wake_paused_microphone": "Palabra de activación en pausa: el micrófono o el motor no están disponibles",
|
||||
"wake_paused_screen": "Palabra de activación en pausa: la pantalla está apagada",
|
||||
"wake_resume": "Volver a escuchar la palabra de activación",
|
||||
"wake_resume_line": "El teléfono se reinició. Toca para volver a escuchar.",
|
||||
"wake_screen_only": "Solo con la pantalla encendida",
|
||||
"wake_screen_only_line": "Desactivado: también escucha con la pantalla apagada, con más gasto de batería.",
|
||||
"wake_stop": "Dejar de escuchar",
|
||||
"wake_word": "Palabra de activación",
|
||||
"wake_word_cost": "Gasta batería: el micrófono sigue encendido y el procesador del teléfono revisa cada instante de sonido, sin el chip de bajo consumo que usa el asistente integrado. Se pausa en ahorro de batería, mientras el asistente está abierto y, salvo que lo cambies, con la pantalla apagada. Tras reiniciar, toca su notificación para volver a iniciarlo.",
|
||||
"wake_word_line": "Desactivado por defecto. Di la frase y el asistente se abre escuchando, sobre la app que esté en pantalla.",
|
||||
"wake_word_listen": "Escuchar una palabra de activación",
|
||||
"wake_word_privacy": "Nada sale del teléfono antes de la palabra. El sonido del micrófono va solo al motor de palabra de activación del teléfono y no se guarda; la notificación se mantiene mientras escucha. Las frases están en inglés; el motor es sherpa-onnx (código abierto).",
|
||||
"wake_word_unavailable": "No en esta versión. La versión de F-Droid no tiene motor de palabra de activación, porque F-Droid compila cada biblioteca desde el código fuente; la de llembas.eu sí lo tiene.",
|
||||
"widget_description": "Pregunta por voz o por texto, o continúa el último chat del asistente. No muestra nada de tu cuenta.",
|
||||
"widget_hint": "Pregunta lo que quieras",
|
||||
"widget_speak": "Hablar"
|
||||
@@ -733,7 +796,6 @@
|
||||
"assist_help": "Maintenez le bouton marche/arrêt pour ouvrir l’assistant par-dessus n’importe quelle app, ou utilisez la tuile des Réglages rapides.",
|
||||
"assist_hint": "Demandez n'importe quoi",
|
||||
"assist_no_model": "Aucun modèle",
|
||||
"assist_no_wake_word": "Pas de mot d’activation : sur Android standard, l’écoute d’un tel mot est réservée à l’assistant intégré au téléphone.",
|
||||
"assist_offline": "%1$s est injoignable",
|
||||
"assist_open_app": "Ouvrir l'application",
|
||||
"assist_open_in_app": "Continuer dans l'application",
|
||||
@@ -757,6 +819,7 @@
|
||||
"assist_use_screen": "Utiliser l’écran",
|
||||
"assist_voice_reply_off": "Réponse vocale désactivée",
|
||||
"assist_voice_reply_on": "Réponse vocale activée",
|
||||
"assist_wake_word_hint": "Pas de mot d’activation sauf si vous en voulez un : Paramètres › Assistant › Mot d’activation active celui de LLeMbas, sur ce téléphone.",
|
||||
"assist_writing_down": "Transcription de ce que vous avez dit…",
|
||||
"assistant_conversation": "Poursuivre une conversation orale",
|
||||
"assistant_conversation_line": "Après la lecture d’une réponse orale, l’assistant écoute à nouveau — jusqu’à ce que vous disiez « stop », touchiez Terminer ou ne disiez rien pendant quelques secondes. Fonctionne avec un casque.",
|
||||
@@ -778,6 +841,7 @@
|
||||
"channel_scheduled": "Résultats planifiés",
|
||||
"channel_scheduled_failures": "Échecs planifiés",
|
||||
"channel_updates": "Mises à jour de l’application",
|
||||
"channel_wake": "Mot d’activation",
|
||||
"chats_agents": "Discussions d’agent",
|
||||
"chats_earlier": "Plus tôt",
|
||||
"chats_found_in_messages": "Dans les messages",
|
||||
@@ -937,6 +1001,26 @@
|
||||
"voice_input_phone": "Téléphone (Google ou celui du système)",
|
||||
"voice_input_phone_line": "La reconnaissance vocale du téléphone. Les mots apparaissent pendant que vous parlez ; l’enregistrement va là où cette reconnaissance l’envoie.",
|
||||
"voice_input_phone_none": "Ce téléphone n’a pas de reconnaissance vocale propre.",
|
||||
"wake_battery": "Le laisser tourner en arrière-plan",
|
||||
"wake_battery_line": "Certains téléphones (Samsung, Xiaomi, Huawei, OnePlus et d’autres) arrêtent les apps en arrière-plan pour économiser la batterie, et le mot d’activation avec. Exemptez ici LLeMbas de l’optimisation de la batterie ; dontkillmyapp.com explique les réglages de votre téléphone.",
|
||||
"wake_heard": "Entendu. Touchez pour demander.",
|
||||
"wake_listening_for": "À l’écoute de « %1$s »",
|
||||
"wake_notification_line": "Rien ne quitte le téléphone avant que vous le disiez.",
|
||||
"wake_paused_assistant": "Mot d’activation en pause pendant que l’assistant est ouvert",
|
||||
"wake_paused_battery": "Mot d’activation en pause : économiseur de batterie activé",
|
||||
"wake_paused_microphone": "Mot d’activation en pause : micro ou moteur indisponible",
|
||||
"wake_paused_screen": "Mot d’activation en pause : écran éteint",
|
||||
"wake_resume": "Écouter à nouveau le mot d’activation",
|
||||
"wake_resume_line": "Le téléphone a redémarré. Touchez pour reprendre l’écoute.",
|
||||
"wake_screen_only": "Seulement écran allumé",
|
||||
"wake_screen_only_line": "Désactivé : il écoute aussi écran éteint, au prix de plus de batterie.",
|
||||
"wake_stop": "Arrêter l’écoute",
|
||||
"wake_word": "Mot d’activation",
|
||||
"wake_word_cost": "Cela consomme de la batterie : le micro reste allumé et le processeur du téléphone examine chaque instant de son, sans la puce basse consommation de l’assistant intégré. Il se met en pause en économie de batterie, quand l’assistant est ouvert et, sauf si vous le changez, écran éteint. Après un redémarrage, touchez sa notification pour le relancer.",
|
||||
"wake_word_line": "Désactivé par défaut. Dites la phrase et l’assistant s’ouvre en écoute, par-dessus l’app à l’écran.",
|
||||
"wake_word_listen": "Écouter un mot d’activation",
|
||||
"wake_word_privacy": "Rien ne quitte le téléphone avant le mot. Le son du micro ne va qu’au moteur de mot d’activation du téléphone et n’est pas conservé ; la notification reste affichée tant qu’il écoute. Les phrases sont en anglais ; le moteur est sherpa-onnx (open source).",
|
||||
"wake_word_unavailable": "Pas dans cette version. La version F-Droid n’a pas de moteur de mot d’activation, car F-Droid compile chaque bibliothèque depuis les sources ; celle de llembas.eu en a un.",
|
||||
"widget_description": "Demandez à la voix ou par écrit, ou reprenez la dernière discussion de l’assistant. N’affiche rien de votre compte.",
|
||||
"widget_hint": "Posez une question",
|
||||
"widget_speak": "Parler"
|
||||
@@ -969,7 +1053,6 @@
|
||||
"assist_help": "Tartsa lenyomva a bekapcsológombot, hogy bármely alkalmazás fölött megnyissa az asszisztenst, vagy használja a Gyorsbeállítások csempét.",
|
||||
"assist_hint": "Kérdezzen bármit",
|
||||
"assist_no_model": "Nincs modell",
|
||||
"assist_no_wake_word": "Ébresztőszó nincs: a gyári Androidon az ébresztőszó figyelése a telefonba épített asszisztensé.",
|
||||
"assist_offline": "%1$s nem érhető el",
|
||||
"assist_open_app": "Alkalmazás megnyitása",
|
||||
"assist_open_in_app": "Folytatás az alkalmazásban",
|
||||
@@ -993,6 +1076,7 @@
|
||||
"assist_use_screen": "Képernyő használata",
|
||||
"assist_voice_reply_off": "A hangos válasz ki van kapcsolva",
|
||||
"assist_voice_reply_on": "A hangos válasz be van kapcsolva",
|
||||
"assist_wake_word_hint": "Nincs ébresztőszó, hacsak nem kérsz: Beállítások › Asszisztens › Ébresztőszó bekapcsolja a LLeMbas sajátját, ezen a telefonon.",
|
||||
"assist_writing_down": "Lejegyzem, amit mondott…",
|
||||
"assistant_conversation": "Szóbeli beszélgetés folytatása",
|
||||
"assistant_conversation_line": "Egy szóbeli válasz felolvasása után az asszisztens újra figyel — amíg nem mondod, hogy „állj”, nem koppintasz a Befejezésre, vagy néhány másodpercig nem szólsz. Headsettel is működik.",
|
||||
@@ -1014,6 +1098,7 @@
|
||||
"channel_scheduled": "Ütemezett eredmények",
|
||||
"channel_scheduled_failures": "Ütemezett hibák",
|
||||
"channel_updates": "Alkalmazásfrissítések",
|
||||
"channel_wake": "Ébresztőszó",
|
||||
"chats_agents": "Ügynök-csevegések",
|
||||
"chats_earlier": "Korábban",
|
||||
"chats_found_in_messages": "Az üzenetekben",
|
||||
@@ -1173,6 +1258,26 @@
|
||||
"voice_input_phone": "Telefon (Google vagy a rendszeré)",
|
||||
"voice_input_phone_line": "A telefon saját beszédfelismerője. A szavak beszéd közben jelennek meg; a felvétel oda megy, ahová az a felismerő küldi.",
|
||||
"voice_input_phone_none": "Ennek a telefonnak nincs saját beszédfelismerője.",
|
||||
"wake_battery": "Futhasson a háttérben",
|
||||
"wake_battery_line": "Egyes telefonok (Samsung, Xiaomi, Huawei, OnePlus és mások) az akkumulátor kímélése miatt leállítják a háttéralkalmazásokat, és velük az ébresztőszót is. Itt vedd ki a LLeMbast az akkumulátor-optimalizálásból; a dontkillmyapp.com elmagyarázza a telefonod beállításait.",
|
||||
"wake_heard": "Hallottalak. Koppints a kérdezéshez.",
|
||||
"wake_listening_for": "Figyeli: „%1$s”",
|
||||
"wake_notification_line": "Amíg ki nem mondod, semmi nem hagyja el a telefont.",
|
||||
"wake_paused_assistant": "Az ébresztőszó szünetel, amíg az asszisztens nyitva van",
|
||||
"wake_paused_battery": "Ébresztőszó szünetel: be van kapcsolva az energiatakarékos mód",
|
||||
"wake_paused_microphone": "Ébresztőszó szünetel: a mikrofon vagy a motor nem érhető el",
|
||||
"wake_paused_screen": "Ébresztőszó szünetel: a képernyő ki van kapcsolva",
|
||||
"wake_resume": "Ébresztőszó figyelése újra",
|
||||
"wake_resume_line": "A telefon újraindult. Koppints a figyelés folytatásához.",
|
||||
"wake_screen_only": "Csak bekapcsolt képernyőnél",
|
||||
"wake_screen_only_line": "Kikapcsolva kikapcsolt képernyőnél is figyel, ami több akkumulátort fogyaszt.",
|
||||
"wake_stop": "Figyelés leállítása",
|
||||
"wake_word": "Ébresztőszó",
|
||||
"wake_word_cost": "Akkumulátorba kerül: a mikrofon bekapcsolva marad, és a telefon processzora minden hangpillanatot ellenőriz, a beépített asszisztens energiatakarékos chipje nélkül. Energiatakarékos módban, nyitott asszisztensnél és — ha nem változtatod meg — kikapcsolt képernyőnél szünetel. Újraindítás után koppints az értesítésére az újraindításhoz.",
|
||||
"wake_word_line": "Alapból ki van kapcsolva. Mondd ki a kifejezést, és az asszisztens figyelve megnyílik a képernyőn lévő alkalmazás fölött.",
|
||||
"wake_word_listen": "Ébresztőszó figyelése",
|
||||
"wake_word_privacy": "A szó előtt semmi nem hagyja el a telefont. A mikrofon hangja csak a telefonon futó ébresztőszó-motorhoz jut, és nem tárolódik; amíg figyel, az értesítés végig látható. A kifejezések angolok; a motor a sherpa-onnx (nyílt forráskódú).",
|
||||
"wake_word_unavailable": "Ebben a változatban nincs. Az F-Droid-változatban nincs ébresztőszó-motor, mert az F-Droid minden könyvtárat forrásból fordít; a llembas.eu-s változatban van.",
|
||||
"widget_description": "Kérdezz hanggal vagy szöveggel, vagy folytasd az asszisztens legutóbbi csevegését. A fiókodból semmit sem mutat.",
|
||||
"widget_hint": "Kérdezz bármit",
|
||||
"widget_speak": "Beszéd"
|
||||
@@ -1205,7 +1310,6 @@
|
||||
"assist_help": "Tenga premuto il tasto di accensione per aprire l’assistente sopra qualsiasi app, oppure usi il riquadro delle Impostazioni rapide.",
|
||||
"assist_hint": "Chiedi qualsiasi cosa",
|
||||
"assist_no_model": "Nessun modello",
|
||||
"assist_no_wake_word": "Non c’è una parola di attivazione: su Android standard, l’ascolto di una tale parola è riservato all’assistente integrato nel telefono.",
|
||||
"assist_offline": "%1$s non è raggiungibile",
|
||||
"assist_open_app": "Apri l'app",
|
||||
"assist_open_in_app": "Continua nell'app",
|
||||
@@ -1229,6 +1333,7 @@
|
||||
"assist_use_screen": "Usa lo schermo",
|
||||
"assist_voice_reply_off": "Risposta vocale disattivata",
|
||||
"assist_voice_reply_on": "Risposta vocale attiva",
|
||||
"assist_wake_word_hint": "Nessuna parola di attivazione, a meno che tu non la voglia: Impostazioni › Assistente › Parola di attivazione attiva quella di LLeMbas, su questo telefono.",
|
||||
"assist_writing_down": "Trascrivo ciò che ha detto…",
|
||||
"assistant_conversation": "Continuare una conversazione a voce",
|
||||
"assistant_conversation_line": "Dopo aver letto ad alta voce una risposta a voce, l’assistente ascolta di nuovo, finché non dici «basta», tocchi Termina o non dici nulla per qualche secondo. Funziona con le cuffie.",
|
||||
@@ -1250,6 +1355,7 @@
|
||||
"channel_scheduled": "Risultati pianificati",
|
||||
"channel_scheduled_failures": "Errori pianificati",
|
||||
"channel_updates": "Aggiornamenti dell’app",
|
||||
"channel_wake": "Parola di attivazione",
|
||||
"chats_agents": "Chat con agente",
|
||||
"chats_earlier": "Prima",
|
||||
"chats_found_in_messages": "Nei messaggi",
|
||||
@@ -1408,6 +1514,26 @@
|
||||
"voice_input_phone": "Telefono (Google o quello di sistema)",
|
||||
"voice_input_phone_line": "Il riconoscimento vocale del telefono. Le parole appaiono mentre parla; la registrazione va dove la manda quel riconoscimento.",
|
||||
"voice_input_phone_none": "Questo telefono non ha un riconoscimento vocale proprio.",
|
||||
"wake_battery": "Lascialo funzionare in background",
|
||||
"wake_battery_line": "Alcuni telefoni (Samsung, Xiaomi, Huawei, OnePlus e altri) fermano le app in background per risparmiare batteria, e con loro la parola di attivazione. Escludi qui LLeMbas dall’ottimizzazione della batteria; dontkillmyapp.com spiega le impostazioni del tuo telefono.",
|
||||
"wake_heard": "Ti ho sentito. Tocca per chiedere.",
|
||||
"wake_listening_for": "In ascolto di «%1$s»",
|
||||
"wake_notification_line": "Niente lascia il telefono finché non lo dici.",
|
||||
"wake_paused_assistant": "Parola di attivazione in pausa mentre l’assistente è aperto",
|
||||
"wake_paused_battery": "Parola di attivazione in pausa: risparmio energetico attivo",
|
||||
"wake_paused_microphone": "Parola di attivazione in pausa: microfono o motore non disponibili",
|
||||
"wake_paused_screen": "Parola di attivazione in pausa: schermo spento",
|
||||
"wake_resume": "Ascolta di nuovo la parola di attivazione",
|
||||
"wake_resume_line": "Il telefono si è riavviato. Tocca per ricominciare ad ascoltare.",
|
||||
"wake_screen_only": "Solo a schermo acceso",
|
||||
"wake_screen_only_line": "Disattivato: ascolta anche a schermo spento, con più consumo di batteria.",
|
||||
"wake_stop": "Smetti di ascoltare",
|
||||
"wake_word": "Parola di attivazione",
|
||||
"wake_word_cost": "Consuma batteria: il microfono resta acceso e il processore del telefono esamina ogni istante di suono, senza il chip a basso consumo usato dall’assistente integrato. Si mette in pausa con il risparmio energetico, mentre l’assistente è aperto e, se non lo cambi, a schermo spento. Dopo un riavvio, tocca la sua notifica per riavviarlo.",
|
||||
"wake_word_line": "Disattivata per impostazione predefinita. Di’ la frase e l’assistente si apre in ascolto, sopra l’app sullo schermo.",
|
||||
"wake_word_listen": "Ascolta una parola di attivazione",
|
||||
"wake_word_privacy": "Niente lascia il telefono prima della parola. Il suono del microfono va solo al motore della parola di attivazione sul telefono e non viene conservato; la notifica resta visibile finché ascolta. Le frasi sono in inglese; il motore è sherpa-onnx (open source).",
|
||||
"wake_word_unavailable": "Non in questa build. La build F-Droid non ha un motore per la parola di attivazione, perché F-Droid compila ogni libreria dal sorgente; la build di llembas.eu ce l’ha.",
|
||||
"widget_description": "Chiedi a voce o per iscritto, o continua l’ultima chat dell’assistente. Non mostra nulla del tuo account.",
|
||||
"widget_hint": "Chiedi qualsiasi cosa",
|
||||
"widget_speak": "Parla"
|
||||
@@ -1440,7 +1566,6 @@
|
||||
"assist_help": "Przytrzymaj przycisk zasilania, aby otworzyć asystenta nad dowolną aplikacją, albo użyj kafelka w Szybkich ustawieniach.",
|
||||
"assist_hint": "Zapytaj o cokolwiek",
|
||||
"assist_no_model": "Brak modelu",
|
||||
"assist_no_wake_word": "Nie ma słowa wybudzającego: w zwykłym Androidzie nasłuchiwanie go jest zarezerwowane dla asystenta wbudowanego w telefon.",
|
||||
"assist_offline": "%1$s jest nieosiągalna",
|
||||
"assist_open_app": "Otwórz aplikację",
|
||||
"assist_open_in_app": "Kontynuuj w aplikacji",
|
||||
@@ -1464,6 +1589,7 @@
|
||||
"assist_use_screen": "Użyj ekranu",
|
||||
"assist_voice_reply_off": "Odpowiedź głosowa wyłączona",
|
||||
"assist_voice_reply_on": "Odpowiedź głosowa włączona",
|
||||
"assist_wake_word_hint": "Bez słowa aktywującego, chyba że chcesz: Ustawienia › Asystent › Słowo aktywujące włącza własne słowo LLeMbas, na tym telefonie.",
|
||||
"assist_writing_down": "Zapisuję, co powiedziałeś…",
|
||||
"assistant_conversation": "Prowadź rozmowę głosową",
|
||||
"assistant_conversation_line": "Po odczytaniu odpowiedzi na głos asystent znów słucha — dopóki nie powiesz „stop”, nie dotkniesz Zakończ albo nie będziesz milczeć przez kilka sekund. Działa ze słuchawkami.",
|
||||
@@ -1485,6 +1611,7 @@
|
||||
"channel_scheduled": "Wyniki zaplanowanych zadań",
|
||||
"channel_scheduled_failures": "Błędy zaplanowanych zadań",
|
||||
"channel_updates": "Aktualizacje aplikacji",
|
||||
"channel_wake": "Słowo aktywujące",
|
||||
"chats_agents": "Czaty z agentem",
|
||||
"chats_earlier": "Wcześniej",
|
||||
"chats_found_in_messages": "W wiadomościach",
|
||||
@@ -1643,6 +1770,26 @@
|
||||
"voice_input_phone": "Telefon (Google lub systemowy)",
|
||||
"voice_input_phone_line": "Własne rozpoznawanie mowy telefonu. Słowa pojawiają się w trakcie mówienia; nagranie trafia tam, dokąd wyśle je to rozpoznawanie.",
|
||||
"voice_input_phone_none": "Ten telefon nie ma własnego rozpoznawania mowy.",
|
||||
"wake_battery": "Pozwól działać w tle",
|
||||
"wake_battery_line": "Niektóre telefony (Samsung, Xiaomi, Huawei, OnePlus i inne) zatrzymują aplikacje w tle, by oszczędzać baterię, a z nimi słowo aktywujące. Wyłącz tu LLeMbas z optymalizacji baterii; dontkillmyapp.com wyjaśnia ustawienia Twojego telefonu.",
|
||||
"wake_heard": "Słyszę. Dotknij, aby zapytać.",
|
||||
"wake_listening_for": "Nasłuchuje „%1$s”",
|
||||
"wake_notification_line": "Nic nie opuszcza telefonu, dopóki tego nie powiesz.",
|
||||
"wake_paused_assistant": "Słowo aktywujące wstrzymane, gdy asystent jest otwarty",
|
||||
"wake_paused_battery": "Słowo aktywujące wstrzymane: oszczędzanie baterii jest włączone",
|
||||
"wake_paused_microphone": "Słowo aktywujące wstrzymane: mikrofon lub silnik jest niedostępny",
|
||||
"wake_paused_screen": "Słowo aktywujące wstrzymane: ekran jest wyłączony",
|
||||
"wake_resume": "Znów nasłuchuj słowa aktywującego",
|
||||
"wake_resume_line": "Telefon uruchomił się ponownie. Dotknij, aby znów słuchać.",
|
||||
"wake_screen_only": "Tylko przy włączonym ekranie",
|
||||
"wake_screen_only_line": "Wyłączone: słucha także przy wyłączonym ekranie, kosztem baterii.",
|
||||
"wake_stop": "Przestań słuchać",
|
||||
"wake_word": "Słowo aktywujące",
|
||||
"wake_word_cost": "Zużywa baterię: mikrofon pozostaje włączony, a procesor telefonu sprawdza każdą chwilę dźwięku, bez energooszczędnego układu, którego używa wbudowany asystent. Wstrzymuje się w trybie oszczędzania baterii, gdy asystent jest otwarty, i — jeśli tego nie zmienisz — przy wyłączonym ekranie. Po ponownym uruchomieniu dotknij jego powiadomienia, by znów zaczął.",
|
||||
"wake_word_line": "Domyślnie wyłączone. Powiedz frazę, a asystent otworzy się i zacznie słuchać, nad aplikacją na ekranie.",
|
||||
"wake_word_listen": "Nasłuchuj słowa aktywującego",
|
||||
"wake_word_privacy": "Nic nie opuszcza telefonu przed słowem. Dźwięk z mikrofonu trafia tylko do silnika słowa aktywującego w telefonie i nie jest zapisywany; powiadomienie jest widoczne przez cały czas nasłuchiwania. Frazy są po angielsku; silnik to sherpa-onnx (open source).",
|
||||
"wake_word_unavailable": "Nie w tej wersji. Wersja z F-Droid nie ma silnika słowa aktywującego, bo F-Droid buduje każdą bibliotekę ze źródeł; wersja z llembas.eu go ma.",
|
||||
"widget_description": "Pytaj głosem lub tekstem albo kontynuuj ostatni czat asystenta. Nie pokazuje niczego z Twojego konta.",
|
||||
"widget_hint": "Zapytaj o cokolwiek",
|
||||
"widget_speak": "Mów"
|
||||
@@ -1675,7 +1822,6 @@
|
||||
"assist_help": "Podržaním tlačidla napájania otvoríte asistenta nad ľubovoľnou aplikáciou; alebo použite dlaždicu v Rýchlych nastaveniach.",
|
||||
"assist_hint": "Spýtajte sa na čokoľvek",
|
||||
"assist_no_model": "Žiadny model",
|
||||
"assist_no_wake_word": "Budiace slovo nie je: na bežnom Androide je počúvanie budiaceho slova vyhradené asistentovi zabudovanému v telefóne.",
|
||||
"assist_offline": "%1$s je nedostupná",
|
||||
"assist_open_app": "Otvoriť aplikáciu",
|
||||
"assist_open_in_app": "Pokračovať v aplikácii",
|
||||
@@ -1699,6 +1845,7 @@
|
||||
"assist_use_screen": "Použiť obrazovku",
|
||||
"assist_voice_reply_off": "Hlasová odpoveď je vypnutá",
|
||||
"assist_voice_reply_on": "Hlasová odpoveď je zapnutá",
|
||||
"assist_wake_word_hint": "Budiace slovo len ak chcete: Nastavenia › Asistent › Budiace slovo zapne vlastné slovo LLeMbas, priamo v tomto telefóne.",
|
||||
"assist_writing_down": "Zapisujem, čo ste povedali…",
|
||||
"assistant_conversation": "Pokračovať v hovorenom rozhovore",
|
||||
"assistant_conversation_line": "Po prečítaní hovorenej odpovede asistent znova počúva — kým nepoviete „stop“, neťuknete na Ukončiť alebo pár sekúnd nič nepoviete. Funguje aj so slúchadlami.",
|
||||
@@ -1720,6 +1867,7 @@
|
||||
"channel_scheduled": "Výsledky naplánovaných úloh",
|
||||
"channel_scheduled_failures": "Zlyhania naplánovaných úloh",
|
||||
"channel_updates": "Aktualizácie aplikácie",
|
||||
"channel_wake": "Budiace slovo",
|
||||
"chats_agents": "Čety s agentom",
|
||||
"chats_earlier": "Skôr",
|
||||
"chats_found_in_messages": "V správach",
|
||||
@@ -1878,6 +2026,26 @@
|
||||
"voice_input_phone": "Telefón (Google alebo systémový)",
|
||||
"voice_input_phone_line": "Vlastné rozpoznávanie reči v telefóne. Slová sa objavujú, ako hovoríte; nahrávka ide tam, kam ju to rozpoznávanie pošle.",
|
||||
"voice_input_phone_none": "Tento telefón nemá vlastné rozpoznávanie reči.",
|
||||
"wake_battery": "Nechať bežať na pozadí",
|
||||
"wake_battery_line": "Niektoré telefóny (Samsung, Xiaomi, Huawei, OnePlus a ďalšie) kvôli batérii zastavujú aplikácie na pozadí, a s nimi aj budiace slovo. Tu vyjmite LLeMbas z optimalizácie batérie; dontkillmyapp.com vysvetľuje nastavenia vášho telefónu.",
|
||||
"wake_heard": "Počul som vás. Ťuknite a pýtajte sa.",
|
||||
"wake_listening_for": "Počúvam frázu „%1$s“",
|
||||
"wake_notification_line": "Kým ju nepoviete, nič neopustí telefón.",
|
||||
"wake_paused_assistant": "Budiace slovo je pozastavené, kým je asistent otvorený",
|
||||
"wake_paused_battery": "Budiace slovo pozastavené: je zapnutý úsporný režim",
|
||||
"wake_paused_microphone": "Budiace slovo pozastavené: mikrofón alebo modul nie je k dispozícii",
|
||||
"wake_paused_screen": "Budiace slovo pozastavené: obrazovka je zhasnutá",
|
||||
"wake_resume": "Znova počúvať budiace slovo",
|
||||
"wake_resume_line": "Telefón sa reštartoval. Ťuknutím znova spustíte počúvanie.",
|
||||
"wake_screen_only": "Len pri zapnutej obrazovke",
|
||||
"wake_screen_only_line": "Vypnuté: počúva aj pri zhasnutej obrazovke, za cenu vyššej spotreby batérie.",
|
||||
"wake_stop": "Prestať počúvať",
|
||||
"wake_word": "Budiace slovo",
|
||||
"wake_word_cost": "Stojí to batériu: mikrofón zostáva zapnutý a procesor telefónu kontroluje každý okamih zvuku, bez úsporného čipu, ktorý používa vstavaný asistent. Pozastaví sa v úspornom režime, keď je asistent otvorený, a ak to nezmeníte, aj pri zhasnutej obrazovke. Po reštarte ho znova spustíte ťuknutím na oznámenie.",
|
||||
"wake_word_line": "Predvolene vypnuté. Povedzte frázu a asistent sa otvorí a počúva, nad akoukoľvek aplikáciou na obrazovke.",
|
||||
"wake_word_listen": "Počúvať budiace slovo",
|
||||
"wake_word_privacy": "Pred vyslovením slova nič neopustí telefón. Zvuk z mikrofónu ide len do modulu pre budiace slovo v telefóne a neukladá sa; počas celého počúvania je viditeľné oznámenie. Frázy sú anglické; modul je sherpa-onnx (open source).",
|
||||
"wake_word_unavailable": "V tomto zostavení nie je. Zostavenie pre F-Droid nemá modul pre budiace slovo, pretože F-Droid zostavuje každú knižnicu zo zdrojov; zostavenie z llembas.eu ho má.",
|
||||
"widget_description": "Pýtajte sa hlasom alebo textom, alebo pokračujte v poslednej konverzácii s asistentom. Neukazuje nič z vášho účtu.",
|
||||
"widget_hint": "Opýtajte sa na čokoľvek",
|
||||
"widget_speak": "Hovoriť"
|
||||
|
||||
Reference in new issue
Block a user