Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dicio can't connect to internet #257

Open
riumudutraz opened this issue Nov 9, 2024 · 3 comments
Open

Dicio can't connect to internet #257

riumudutraz opened this issue Nov 9, 2024 · 3 comments

Comments

@riumudutraz
Copy link

As soon as I say the wakeword or tap the mic icon it says it can't connect to internet. Could it be because of the vpn or something like that?

Thanks

@Stypox
Copy link
Owner

Stypox commented Nov 9, 2024

You mean that when a skill is invoked (e.g. "what's the weather"), the skill says that it can't connect to the internet? Or is it the STT that can't connect to the internet?

@riumudutraz
Copy link
Author

As soon as it recognizes the wakeword, the app opens up and prompts "Connection error - Dicio could not reach internet. Please check your connection and try again". It does the same if I tap the mic inside the app.
It works perfectly with text input tho, even on tasks that involve internet connection (e.g. looking for something on Wikipedia or tell the
weather).

@devenator
Copy link

What Android Version are you on? I'm seeing this on a Lenovo ThinkSmart with LineageOS 15.1/Android 8.1, but i'm pretty sure the error message is wrong (and it only happens when wake word is enabled), it seems that the wake word is blocking the microphone for vosk:

11-16 17:55:48.234 13138 13166 D WakeService: Wake word detected
11-16 17:55:48.236 976 25854 W AudioPolicyManagerCustom: startInput(86) failed: other input 94 already started
11-16 17:55:48.237 13138 13838 E AudioRecord: start() status -38
11-16 17:55:48.240 13138 13138 E VoskListener: onError called
11-16 17:55:48.240 13138 13138 E VoskListener: java.io.IOException: Failed to start recording. Microphone might be already in use.
11-16 17:55:48.240 13138 13138 E VoskListener: at org.vosk.android.SpeechService$RecognizerThread.run(SpeechService.java:207)
11-16 17:55:48.241 1510 9092 I ActivityManager: START u0 {act=org.stypox.dicio.MainActivity.ACTION_WAKE_WORD flg=0x10000000 cmp=org.stypox.dicio/.MainActivity} from uid 10058
11-16 17:55:48.242 984 25443 D NuPlayerDriver: NuPlayerDriver(0xa502b8c0) created, clientPid(13138)
11-16 17:55:48.244 13138 13138 D VoskListener: onPartialResult called with s = {
11-16 17:55:48.244 13138 13138 D VoskListener: "partial" : ""
11-16 17:55:48.244 13138 13138 D VoskListener: }
11-16 17:55:48.245 13138 13138 D VoskListener: onFinalResult called with s = {"alternatives" : [{"text": "", "confidence" : 1.0}] }
11-16 17:55:48.245 13138 13169 E SkillEvaluator: Error while evaluating skills
11-16 17:55:48.245 13138 13169 E SkillEvaluator: java.io.IOException: Failed to start recording. Microphone might be already in use.
11-16 17:55:48.245 13138 13169 E SkillEvaluator: at org.vosk.android.SpeechService$RecognizerThread.run(SpeechService.java:207)
11-16 17:55:48.251 984 13840 D GenericSource: FileSource remote

All my other Devices have Android 14 or 15, there it works fine...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants