#I want text to speech in Bengali, hind,and
other languages .. please tell me how to do that
from jnius import autoclass Locale = autoclass('java.util.Locale') PythonActivity = autoclass('org.renpy.android.PythonActivity') TextToSpeech = autoclass('android.speech.tts.TextToSpeech') tts = TextToSpeech(PythonActivity.mActivity, None) # Play something in english tts.setLanguage(Locale.US) tts.speak('Hello World.', TextToSpeech.QUEUE_FLUSH, None) # Queue something in french tts.setLanguage(Locale.FRANCE) tts.speak('Bonjour tout le monde.',
In https://developer.android.com/reference/android/speech/tts/TextToSpeech you can find below statement at very beginning of the page ,
how to do it in kivy ..?
Apps targeting Android 11 that use text-to-speech should declare TextToSpeech.Engine.INTENT_ACTION_TTS_SERVICE in the queries elements of their manifest:
<queries> ... <intent> <action android:name="android.intent.action.TTS_SERVICE" /> </intent> </queries>> how to do it in kivy ..?
It is possible that buildozer.spec enables this:
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/79540b44-8084-431f-b00e-9cbe96f8faban%40googlegroups.com.