+ 2

Speech to text and text to speech using python 2.7

Hello I could convert speech to text using SpeechRecognition module... it works perfectly fine with microphone as source of speech... adjust_for_ambient_noise() method helped me to get proper output. now later on what I wanted is to ask for input as speech and my return speech is converted back to text using above module... for example, speak what is your name and my spoken word I am Ketan gets converted to text. for python to speak , I could use text to speech using pyttsx3.... it works perfectly fine... but post pyttsx3, speechrecognise doesn't work... what could be the problem? individually both works but combined does not work.

5th May 2019, 1:54 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
8 Answers
+ 8
Please send me your code. pedrophj@yahoo.com.br
8th May 2019, 3:16 AM
Pedro H.J
Pedro H.J - avatar
+ 7
I dit it. Just speech_recognize. It slow to recognize. Do you change timeout or time Configuration ?
8th May 2019, 3:09 AM
Pedro H.J
Pedro H.J - avatar
+ 5
I'm trying SpeechRecognize no error but not sucess.
5th May 2019, 5:27 PM
Pedro H.J
Pedro H.J - avatar
+ 2
yes, it is slow... I am getting voice recognised to text but it doesn't help when microphone was used to speak first before listening.... yes, I have used timeout as none
8th May 2019, 3:11 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
is it for microphone as input source ? if yes, does cursor just blinks without going forward ?? if so, it's due to ambience noise... try to use adjust_for_ambient_noise() method
5th May 2019, 6:44 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
any solution or hint for this issue ?
8th May 2019, 3:06 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
please refer code at location : https://code.sololearn.com/cDo76Ii1E305/?ref=app just create a text file into work directly with name as ML.info and keep content of this file as two lines as below: Name city
8th May 2019, 5:40 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
any one having some hint on this ??
9th May 2019, 9:51 AM
Ketan Lalcheta
Ketan Lalcheta - avatar