How to make voice to text in Tamil
ya..you can able to convert your voice as text using Speech_Recognition packages and with google translator package in python.I tried up to voice to text conversion with the help of google translator package u can able to convert your text in Tamil.First pass the mp3 file to recognize voice and text then use translator API to convert it in Tamil and i hope this will useful for you.
for translating text to Tamil you can use this…
googletrans
- import speech_recognition as sr
- from gtts import gTTS
- # language='ta'r = sr.Recognizer()
- with sr.Microphone() as source:
- print("Say something!")
- print(source)
- audio = r.listen(source)
- print(r)
- print(audio)
- UserSaid = r.listen(source)
- print(UserSaid)
- try:
- print("Google thinks you said:\n" + r.recognize_google(audio))
- except:
- passif UserSaid:
- print("It worked!!")
- # mytext=UserSaid # myobj = gTTS(text=mytext, lang=language, slow=False) # myobj.save("hello.mp3")else:
- print("Not working, yet")
Artigos semelhantes
- How to make HTML invisible text visible
- Manter a foto do morto na sala Pooja na cultura tâmil é uma tradição tâmil?
- Quando o teclado tâmil de um celular é tão fácil, por que as pessoas estão usando o alfabeto inglês para palavras tâmil?
- How to make the background image of a button disappear when we click it, and make it appear on another button when we click it in Visual Studio