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")
Articoli simili
- Quando la tastiera tamil in un telefono cellulare è così facile, perché la gente usa l'alfabeto inglese per le parole tamil?
- How to make HTML invisible text visible
- Quali sono le migliori app di voice to text per risparmiare tempo nella digitazione di un documento o di un discorso?
- 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