Press on
This commit is contained in:
parent
d1bc4a0061
commit
1f589c985a
@ -446,7 +446,7 @@ class WKT9: InputMethodService() {
|
|||||||
try {
|
try {
|
||||||
val transcription = whisper.run(recording!!)
|
val transcription = whisper.run(recording!!)
|
||||||
|
|
||||||
commitText(transcription, cursorPosition, cursorPosition)
|
commitText(transcription.plus(" "), cursorPosition, cursorPosition)
|
||||||
} catch (e: IOException) {
|
} catch (e: IOException) {
|
||||||
Log.d(tag, "A failure occurred in the communication with the speech-to-text server", e)
|
Log.d(tag, "A failure occurred in the communication with the speech-to-text server", e)
|
||||||
}
|
}
|
||||||
|
10
app/src/main/res/drawable/alpha.xml
Normal file
10
app/src/main/res/drawable/alpha.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="32dp"
|
||||||
|
android:height="32dp"
|
||||||
|
android:viewportWidth="32"
|
||||||
|
android:viewportHeight="32">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="m7.272,28.21q0.992,0 1.76,-0.087 0.8,-0.087 1.312,-0.216v-5.975q-0.512,-0.216 -1.248,-0.346 -0.704,-0.13 -1.504,-0.13 -0.736,0 -1.44,0.173 -0.704,0.13 -1.248,0.52 -0.544,0.39 -0.896,1.039 -0.352,0.606 -0.352,1.559 0,1.948 0.96,2.728 0.992,0.736 2.656,0.736zM7.016,10.198q1.664,0 2.784,0.563 1.152,0.563 1.856,1.559 0.704,0.996 0.992,2.425 0.288,1.429 0.288,3.118v12.557q-0.928,0.216 -2.464,0.52 -1.504,0.303 -3.104,0.303 -1.216,0 -2.368,-0.303 -1.152,-0.26 -2.048,-0.953 -0.896,-0.736 -1.44,-1.992 -0.544,-1.256 -0.544,-3.204 0,-1.732 0.544,-2.901 0.576,-1.212 1.44,-1.948 0.896,-0.736 2.016,-1.039 1.152,-0.346 2.304,-0.346 1.568,0 3.072,0.476L10.344,18.035q0,-0.909 -0.16,-1.732 -0.128,-0.866 -0.544,-1.559 -0.384,-0.693 -1.088,-1.082 -0.672,-0.433 -1.76,-0.433 -1.376,0 -2.4,0.26 -1.024,0.26 -1.568,0.52l-0.32,-2.944q0.544,-0.346 1.792,-0.606 1.28,-0.26 2.72,-0.26zM21.24,11.41q0.48,-0.39 1.376,-0.779 0.928,-0.433 2.048,-0.433 1.504,0 2.688,0.779 1.184,0.779 1.984,2.165 0.832,1.386 1.248,3.334 0.448,1.905 0.448,4.243 0,2.425 -0.512,4.373 -0.512,1.948 -1.44,3.334 -0.928,1.342 -2.24,2.078 -1.312,0.736 -2.912,0.736 -1.76,0 -3.136,-0.346 -1.376,-0.346 -2.208,-0.693L18.584,1.365l2.656,-0.606zM21.24,27.648q0.608,0.216 1.216,0.346 0.608,0.087 1.152,0.087 2.208,0 3.456,-1.819 1.248,-1.862 1.248,-5.542 0,-1.559 -0.224,-2.901 -0.224,-1.386 -0.704,-2.338 -0.48,-0.996 -1.248,-1.559 -0.736,-0.563 -1.792,-0.563 -0.928,0 -1.792,0.52 -0.864,0.476 -1.312,1.039z"
|
||||||
|
android:strokeWidth="1.16324"/>
|
||||||
|
</vector>
|
@ -5,5 +5,6 @@
|
|||||||
android:viewportHeight="32">
|
android:viewportHeight="32">
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FF000000"
|
android:fillColor="#FF000000"
|
||||||
android:pathData="m1.48,14.288q1.632,-0.64 3.168,-1.6 1.536,-0.992 2.848,-2.496h1.856V27.76H13.096V30H2.44v-2.24h4.288V13.872q-0.352,0.32 -0.864,0.672 -0.48,0.32 -1.088,0.64 -0.576,0.32 -1.216,0.608 -0.64,0.288 -1.248,0.48zM29.72,15.248q0,1.024 -0.416,1.984 -0.384,0.96 -1.056,1.888 -0.64,0.928 -1.472,1.824 -0.832,0.896 -1.696,1.76 -0.48,0.48 -1.12,1.152 -0.64,0.672 -1.216,1.376 -0.576,0.704 -0.96,1.376Q21.4,27.28 21.4,27.76h9.12V30h-12q-0.032,-0.16 -0.032,-0.32 0,-0.192 0,-0.352 0,-1.344 0.448,-2.496 0.448,-1.152 1.152,-2.176 0.704,-1.024 1.568,-1.92 0.896,-0.928 1.76,-1.792 0.704,-0.704 1.344,-1.376 0.672,-0.672 1.152,-1.344 0.512,-0.672 0.8,-1.376 0.32,-0.736 0.32,-1.504 0,-0.864 -0.288,-1.472Q26.488,13.264 26.008,12.88 25.56,12.464 24.952,12.272 24.344,12.08 23.64,12.08q-0.832,0 -1.536,0.224 -0.672,0.224 -1.216,0.544 -0.512,0.32 -0.896,0.64 -0.384,0.288 -0.576,0.48l-1.312,-1.856q0.256,-0.288 0.768,-0.704 0.512,-0.416 1.216,-0.768 0.736,-0.384 1.632,-0.64 0.896,-0.256 1.92,-0.256 3.104,0 4.576,1.44 1.504,1.408 1.504,4.064z"/>
|
android:pathData="m1.48,7.721q1.632,-0.949 3.168,-2.372 1.536,-1.471 2.848,-3.701h1.856V27.695h3.744v3.321H2.44v-3.321h4.288V7.104q-0.352,0.474 -0.864,0.996 -0.48,0.474 -1.088,0.949 -0.576,0.474 -1.216,0.901 -0.64,0.427 -1.248,0.712zM29.72,9.144q0,1.518 -0.416,2.942 -0.384,1.423 -1.056,2.799 -0.64,1.376 -1.472,2.704 -0.832,1.328 -1.696,2.61 -0.48,0.712 -1.12,1.708 -0.64,0.996 -1.216,2.04 -0.576,1.044 -0.96,2.04 -0.384,0.996 -0.384,1.708h9.12v3.321h-12q-0.032,-0.237 -0.032,-0.474 0,-0.285 0,-0.522 0,-1.993 0.448,-3.701 0.448,-1.708 1.152,-3.226 0.704,-1.518 1.568,-2.847 0.896,-1.376 1.76,-2.657 0.704,-1.044 1.344,-2.04 0.672,-0.996 1.152,-1.993 0.512,-0.996 0.8,-2.04 0.32,-1.091 0.32,-2.23 0,-1.281 -0.288,-2.183Q26.488,6.202 26.008,5.633 25.56,5.016 24.952,4.732 24.344,4.447 23.64,4.447q-0.832,0 -1.536,0.332Q21.432,5.111 20.888,5.586 20.376,6.06 19.992,6.535 19.608,6.962 19.416,7.246L18.104,4.494Q18.36,4.067 18.872,3.451 19.384,2.834 20.088,2.312 20.824,1.743 21.72,1.363q0.896,-0.38 1.92,-0.38 3.104,0 4.576,2.135Q29.72,5.206 29.72,9.144Z"
|
||||||
|
android:strokeWidth="1.21765"/>
|
||||||
</vector>
|
</vector>
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
android:viewportWidth="0.96"
|
android:viewportWidth="0.96"
|
||||||
android:viewportHeight="0.96">
|
android:viewportHeight="0.96">
|
||||||
<path
|
<path
|
||||||
android:pathData="m0.18075,0.8793c0.19619,-0.02192 0.39089,-0.02758 0.5985,0 -0.19521,0.01799 -0.39496,0.01693 -0.5985,0zM0.651,0.51845c-0.05353,0.08123 -0.04917,0.13923 0,0.20047H0.309c0.04484,-0.06042 0.06139,-0.13157 0,-0.20047H0.09525C0.23696,0.41241 0.38726,0.31548 0.48,0.15761 0.58714,0.30213 0.72501,0.41137 0.86475,0.51845Z"
|
android:pathData="m0.18429,0.89858c0.19439,-0.02486 0.38731,-0.03128 0.59301,0 -0.19342,0.0204 -0.39134,0.0192 -0.59301,0zM0.65022,0.48934c-0.05304,0.09212 -0.04872,0.15791 0,0.22735H0.31136c0.04442,-0.06852 0.06083,-0.14921 0,-0.22735H0.09957C0.23998,0.36908 0.38291,0.24413 0.48079,0.08011 0.58695,0.24401 0.72355,0.3679 0.86201,0.48934Z"
|
||||||
android:strokeLineJoin="miter"
|
android:strokeLineJoin="miter"
|
||||||
android:strokeWidth="0.0624"
|
android:strokeWidth="0.0750977"
|
||||||
android:fillColor="#00000000"
|
android:fillColor="#00000000"
|
||||||
android:strokeColor="#000000"
|
android:strokeColor="#000000"
|
||||||
android:strokeLineCap="square"/>
|
android:strokeLineCap="square"/>
|
||||||
|
@ -12,8 +12,9 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/yellow_radius"
|
android:background="@drawable/yellow_radius"
|
||||||
android:textColor="@color/suggestion_text"
|
android:textColor="@color/suggestion_text"
|
||||||
|
android:minWidth="40dp"
|
||||||
android:paddingVertical="5dp"
|
android:paddingVertical="5dp"
|
||||||
android:paddingHorizontal="8dp"
|
android:paddingHorizontal="8dp"
|
||||||
android:textSize="20sp"
|
android:textSize="20sp"
|
||||||
android:textFontWeight="600" />
|
android:textFontWeight="500" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -12,8 +12,9 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/blue_radius"
|
android:background="@drawable/blue_radius"
|
||||||
android:textColor="@color/suggestion_text"
|
android:textColor="@color/suggestion_text"
|
||||||
|
android:minWidth="40dp"
|
||||||
android:paddingVertical="5dp"
|
android:paddingVertical="5dp"
|
||||||
android:paddingHorizontal="8dp"
|
android:paddingHorizontal="8dp"
|
||||||
android:textSize="20sp"
|
android:textSize="20sp"
|
||||||
android:textFontWeight="600" />
|
android:textFontWeight="500" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
x
Reference in New Issue
Block a user