question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plyer stt not working on my android device

See original GitHub issue

I have build a kivy app to android apk with kivy following the example from this source (https://github.com/kivy/plyer/blob/master/examples/speech2text/main.py)

the app is working good by when I click the button the plyer is not showing any output.

As per the following code https://github.com/kivy/plyer/blob/master/plyer/facades/stt.py “after execute start method you can hear BEEP!” , but I am not able to hear anything even though My device microphone works fine

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
tshirtmancommented, Jun 2, 2021

yes, i think adding check_permission/ask_permission code in each android plyer module would make sense, the dev can still ask beforehand if they don’t want users to be asked each permission independently.

2reactions
AM-ash-OR-AM-Icommented, May 21, 2021

@nandamtejas I saw your stack exchange answer https://stackoverflow.com/a/67483202/13714716 you seemed to have got the solution but that doesn’t seem to be working in my case even though I had used same buildozer.spec and .py as in the example (https://github.com/kivy/plyer/blob/master/examples/speech2text/main.py), I also tried giving permissions to my app manually and also using runtime permissions but still it didn’t show anything in the text field. While trying to debug the stt.result showed blank list [] . Can you share your main.py and buildozer.spec so that I can see whether it works in my case or not…

Now I got the answer whoever has the same problem you can use this repo https://github.com/AM-ash-OR-AM-I/SR/blob/main/main.py that I forked from https://github.com/Abhishek-op/SR basically I added the dialog asking for microphone permission to user…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use speech-to-text in Plyer? it's not working
I had the same problem but it's solved Just follow these steps. 1> Install the app on Android 2> After Installation locate the...
Read more >
Plyer - Read the Docs
Plyer is a Python library for accessing features of your hardware ... Commonly is used when you have a call and you stick...
Read more >
USB audio driver - Audio Evolution Mobile Studio
The reason can be a cable or power problem or missing USB host mode. If the app does see it and Android does...
Read more >
XCIPTV PLAYER - Apps on Google Play
Media Player App For Android TV, Android Phone, and Android Tab. Easy to use App. Fully Customizable and Brandable for OTT Service Providers....
Read more >
Change app permissions on your Android phone
You can allow some apps to use various features on your phone, ... only): The app can use the permission at any time,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found