Subscribe:

Ads 468x60px

Showing posts with label Speech Recognition. Show all posts
Showing posts with label Speech Recognition. Show all posts

Sunday, August 28, 2026

How to do Speech Recognition and Synthesis using Python...

Hi all

          This  post will be useful for those who do projects using speech recognition and sythesis .This method is very simple for  implementing speech projects . Actually speech recognition and synthesis are on still development stage . No ideal speech recognition tools are available .Here i introduce a method for doing this  .Its not very accurate ,but if we train well ,error can be reduce .The tools  you need are given below.The working platform is Windows XP






1)Python 2.6 for Windows 

2)Windows Speech SDK

3)Python Speech Module

4)Good Speech Voices

These are the things we need .Before we start ,check the mic and confirm if it working or not .Check the speakers also . 

1)Install the voices first or use the default voice of windows(MS Sam)

2)Install Speech SDK :After Installing Speech SDK ,we need to train the speech profile for getting good accuracy .The option for training is available in Control Panel .We can export and import the training profile .So you can train on one system and can move to other system without re-training .The tool for import/export is given below

Profile Manager:

3)Install Python 2.6

4)Install speech module :  Here is the command for installing speech module
Take command promt and change the path to speech module folder path
Enter this command after that

                    python setup.py install

5)Installation Done


Checking the Speech to text and Text to Speech in Python

           import speech
           while True:
                       phrase = speech.input()     #Convert Speech to text
                       speech.say("You said %s" % phrase)   #Convert the converted text to Speech
                       if phrase == "turn off":                         #if the text is turn off ,it will quit
                                  break 
              
For details you can refer the following link