microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.28k stars 1.7k forks source link

TTS support #1553

Open bensadiku opened 3 years ago

bensadiku commented 3 years ago

Is your feature request related to a problem? Please describe. I am unsure if microG supports this, but, I'm trying to use TTS (Recognizer Intent.ACTION_RECOGNIZE_SPEECH), but i get this warning in logs system_process W/VoiceInteractionManagerService: no available voice recognition services found for user 0. I'm using this really simple example from Google and with it, RecognizerIntent.getVoiceDetailsIntent(Activity.this); returns null.

Describe the solution you'd like Anything that microG can do to help support this

Describe alternatives you've considered There are no alternatives

Additional context Note that I've successfully setup microG (am building AOSP and included microG), if there's a need to change something else on the framework... that could be done aswell. RecognizerIntent

GolamRabbany123 commented 2 years ago

Hey If you just want tts to work. And you can listen Then download the Google TTS app and Systemize the app as System-app -priv .

Now you can listen to the text . Worked for me

bensadiku commented 2 years ago

@GolamRabbany123 hey thanks for the reply, can you share which app you've installed?

Fox2Code commented 2 years ago

@GolamRabbany123 I don't think the app need to be a system app to work, it has just to be installed and enabled as the default TTS engine in setting.

bensadiku commented 2 years ago

@Fox2Code I've installed and added Speech Services as system priv app & set it as the default TTS engine in settings. Unfortunately still having the same issue. Any idea?

GolamRabbany123 commented 2 years ago

I had istalled  Google speech Service . It was not even coming to my TTS engine .Then I installed it as system app. It came in the settings but no output.

Then system priv app worked. [cid:eu.faircode.email.199]

I wanted to ask if you can Log in with Google in Apps. Like Daylio.

Oct 5, 2021 3:49:43 PM Fox2Code @.***>:

@GolamRabbany123[https://github.com/GolamRabbany123] I don't think the app need to be a system app to work, it has just to be installed and enabled as the default TTS engine in setting.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub[https://github.com/microg/GmsCore/issues/1553#issuecomment-934248824], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKMC37V6IMIMMFOR7GZF4R3UFLC3PANCNFSM5DL2OU2Q]. Triage notifications on the go with GitHub Mobile for iOS[https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675] or Android[https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAfSURBVGiB7cEBAQAAAIIg/69uSEABAAAAAAAAAAAvBiQwAAGO68BnAAAAAElFTkSuQmCC###24x24:true###][Tracking image][https://github.com/notifications/beacon/AKMC37S6GJSFW4JIVUKL3C3UFLC3PA5CNFSM5DL2OU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG6XYC6A.gif]

GolamRabbany123 commented 2 years ago

I can't remember from where I downloaded it. Aurora or Apkmirror [cid:eu.faircode.email.202]

Oct 5, 2021 3:30:43 PM bensadiku @.***>:

@GolamRabbany123[https://github.com/GolamRabbany123] hey thanks for the reply, can you share which app you've installed?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub[https://github.com/microg/GmsCore/issues/1553#issuecomment-934235198], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKMC37R2D7OWACRO3JJE6J3UFLAUFANCNFSM5DL2OU2Q]. Triage notifications on the go with GitHub Mobile for iOS[https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675] or Android[https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAfSURBVGiB7cEBAQAAAIIg/69uSEABAAAAAAAAAAAvBiQwAAGO68BnAAAAAElFTkSuQmCC###24x24:true###][Tracking image][https://github.com/notifications/beacon/AKMC37VVT7B6INLHG2Y7F2DUFLAUFA5CNFSM5DL2OU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG6XUYPQ.gif]

Fox2Code commented 2 years ago

@bensadiku probably Speech service require an API MicroG didn't implemented yet. IDK, can you provide logs.

GolamRabbany123 commented 2 years ago

How logs are generated.

Oct 7, 2021 3:57:54 PM Fox2Code @.***>:

@bensadiku[https://github.com/bensadiku] probably Speech service require an API MicroG didn't implemented yet. IDK, can you provide logs.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub[https://github.com/microg/GmsCore/issues/1553#issuecomment-937639303], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKMC37TRSMD76SDZEXXZMG3UFVVKDANCNFSM5DL2OU2Q]. Triage notifications on the go with GitHub Mobile for iOS[https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675] or Android[https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAAfSURBVGiB7cEBAQAAAIIg/69uSEABAAAAAAAAAAAvBiQwAAGO68BnAAAAAElFTkSuQmCC###24x24:true###][Tracking image][https://github.com/notifications/beacon/AKMC37QBIEUSBLA7RO6EHMDUFVVKDA5CNFSM5DL2OU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG7RT3BY.gif]

paolo-caroni commented 2 years ago

Recognizer Intent.ACTION_RECOGNIZE_SPEECH is a STT function not TTS... STT=speech to text TTS=Text to speech.

There are much FOSS TTS on android (espeak, rhvoice, flite, ecc.). For STT see #1164