From dc1ceda31a04746e17d512bd3cdacf396a3a0a8c Mon Sep 17 00:00:00 2001 From: Stilez Date: Mon, 6 Nov 2023 00:03:06 +0000 Subject: [PATCH] Found the existing en gb model for british english users. Helpful!! Tested, works. Very difficult to find if unfamiliar, so its worth adding --- .../main/java/com/elishaazaria/sayboard/data/ModelLink.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/elishaazaria/sayboard/data/ModelLink.kt b/app/src/main/java/com/elishaazaria/sayboard/data/ModelLink.kt index 1707608..d70da1f 100644 --- a/app/src/main/java/com/elishaazaria/sayboard/data/ModelLink.kt +++ b/app/src/main/java/com/elishaazaria/sayboard/data/ModelLink.kt @@ -13,6 +13,10 @@ enum class ModelLink( ENGLISH_US( "https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip", Locale.US + ) + ENGLISH_GB( + "https://alphacephei.com/vosk/models/vosk-model-small-en-gb-0.15.zip", + Locale("en", "GB") ), ENGLISH_IN( "https://alphacephei.com/vosk/models/vosk-model-small-en-in-0.4.zip", @@ -93,4 +97,4 @@ enum class ModelLink( val filename: String get() = link.substring(link.lastIndexOf('/') + 1, link.lastIndexOf('.')) -} \ No newline at end of file +}