Search This Blog

Tuesday, December 24, 2019

Flask Ask - modulenotfounderror no module named 'pip.req' flask-ask

Try like below.

pip install git+

pip install flask-ask


Tuesday, December 10, 2019

Python Google Speech Setup and Example (WINDOWS)

1. Download SOX latest version -

2. Install it (ex: C:\Program Files (x86)\sox-14-4-2 )
     2.1 download 2 (libmad-0.dll, libmp3lame-0.dll) DLLs and copy to C:\Program Files (x86)\sox-14-4-2;


3. Set environment path in system variable

4. Restart the IDE or CMD prompt

5. in cmd prompt
        set path=%path%;C:\Program Files (x86)\sox-14-4-2;
       echo %path%

6. pip install google_speech
    pip install sox

7. create a sample

from google_speech import Speech

# say "Hello World"
text = "Hello This is Vijay DR";
lang = "en";
speech = Speech(text, lang);;

# you can also apply audio effects while playing (using SoX)
# see for full effect documentation
sox_effects = ("speed", "1.5");;

# save the speech to an MP3 file (no effect is applied)"output.mp3");

8. cmp prompt py

enjoy !

Hit Counter

View My Stats