-
-
Notifications
You must be signed in to change notification settings - Fork 135
Description
Hey there, first of all thanks for the continuous work on this app. I'm very happy to see that a speech service for other apps was included lately.
I started to integrate Dicio's speech recognition into Tasker using the "Get Voice" task. It works reliable and quick enough on my device (Lineage OS 19).
The only problem occurs when I activate it while the screen is turned off, or turned on but locked. Then it aborts listening or fails to hear anything.
Here's an example task to reproduce the issue:
Task: GetVoice_test
A1: Wait [
MS: 0
Seconds: 3
Minutes: 0
Hours: 0
Days: 0 ]
A2: Beep [
Frequency: 1200
Duration: 500
Amplitude: 54
Stream: 3 ]
A3: Get Voice [
Language Model: Free Form
Maximum Results: 1
Timeout (Seconds): 10
Continue Task After Error:On ]
A4: Beep [
Frequency: 1200
Duration: 500
Amplitude: 54
Stream: 3 ]
A5: Say [
Text: %gv_heard
Engine:Voice: default:default
Stream: 3
Pitch: 5
Speed: 5
Respect Audio Focus: On ]
When I start this task with screen on, it works fine. when I turn off or lock the screen before the Get Voice command is finished, it fails to hear anything.
To narrow down the problem I tried 2 things:
- Set Google speech services as backend for Tasker's Get Voice command. In this case the above task works even if the screen is off or locked. (the big downside: google requires internet connection for this, so they can collect everything I say. This is annoyingly pointless as the google voice input keyboard works completely offline after downloading the language model.)
- replacing the Get Voice command by a Launch Dicio App command. the app is indeed able to recognize my speech with screen off/locked.
I have granted the "Use Microphone only while using the app" permission to both Dicio and Google Speech Services.