I downloaded all relevant voice packs and set up them but it only works when I'm online. I can't get this working offline. Even with GOS compatibility mode crashes

type: crash
osVersion: google/cheetah/cheetah:14/UQ1A.231205.015/2023121200:user/release-keys
package: com.google.android.inputmethod.latin:130540098
process: com.google.android.inputmethod.latin
processUptime: 0 + 0 ms
installer: com.android.vending

signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb400d6c4e91c7000

backtrace:
      #00 pc 0000000001414658  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #01 pc 0000000001442e98  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #02 pc 0000000001442a58  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #03 pc 00000000014438b4  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #04 pc 0000000001412d88  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #05 pc 00000000014092fc  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #06 pc 00000000013fa0e0  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #07 pc 00000000013fafbc  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #08 pc 00000000013fb4c4  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #09 pc 000000000112b0e8  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #10 pc 000000000112ade8  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #11 pc 0000000000d725a4  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #12 pc 0000000000d72340  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #13 pc 00000000011395e0  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #14 pc 0000000000f0dbc4  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #15 pc 00000000011395e0  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #16 pc 0000000000d72310  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #17 pc 00000000011395e0  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #18 pc 0000000000e51520  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #19 pc 00000000014110dc  /data/app/~~zZNgHX62orxoaXn50two0w==/com.google.android.inputmethod.latin-8DIta-n-lIjEmGvrOKpU1g==/base.apk!libintegrated_shared_object.so (offset 0x6d7000) (BuildId: 8f07faa17d3c7367)
      #20 pc 00000000000cf9ec  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 118bbf54d490f2f7657459db9db7372f)
      #21 pc 0000000000064730  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 118bbf54d490f2f7657459db9db7372f)

    willie_non I've seen others say that voice typing while offline doesn't work for them either. For some reason, GBoard still tries to access the internet. It's strange that it's doing so for you while you're in Airplane mode, though.

    Regardless, if their app is crashing like this even with exploit protection compatibility mode on, then there's something wrong with their app. Not much can be done from the GrapheneOS side in that case.

      I can't reproduce this. I am able to do voice typing on GBoard with the network permission for the app disabled, and also with airplane mode enabled.

        treequell well, that's strange. Gonna disable Internet permission and try again

        Update: it crashes again

        To clarify, this is for the English (US) language pack.

        In which language are you trying to do voice typing?

          treequell I use Italian and I properly installed language pack

          I tried English and indeed it's working 🤔

          From what I hear, voice typing with GBoard only works offline with English, and not other languages.

          I can reproduce the same issue as you when I try to speak non-English. Except my GBoard does not crash and just tries to open Speech Services from Google.

          I believe your GBoard is crashing because it is expecting Google Speech Services to be installed on your device and I presume you never installed.

          Installing it on your device will stop the crash but rather than giving the network permission to GBoard you'd need to give it to Google Speech Services instead.

          Because Google Speech Services doesn't seem to work at all with the network permission denied, not for English and not for other languages with the language packs downloaded.

          TL;DR it seems that you'd need the network permission enabled for either GBoard or Google Speech Services to do voice typing in Italian.

          Enabling for just one or them should be sufficient. GBoard would use which ever has the network available.

            treequell I reset Gboard and now it works fine. I quit Beta testing so now I'm in stable and voice typing is visibly different. I think google is trying to integrate speech recognition in gboard beta and this is one bug

              treequell Yep, now it relies on Speech Services from Google rather than Gboard itself. I don't know what happened here precisely so I think it's a bug from Gboard beta version

                willie_non Alright, nice one! Happy voice typing!

                I'll mark this as solved now, but feel free to reopen the discussion if anything else comes up.

                  treequell Alright! Thank you for invaluable insight. I wasn't hoping to get this solved quickly 👍