Uberi / speech_recognition

Speech recognition module for Python, supporting several engines and APIs, online and offline.
https://pypi.python.org/pypi/SpeechRecognition/
BSD 3-Clause "New" or "Revised" License
8.41k stars 2.4k forks source link

AttributeError: module 'speech_recognition' has no attribute 'microphene' #523

Open 3yalzayed opened 4 years ago

3yalzayed commented 4 years ago

Hello

I have a problem on my code. I import (import speech_recognition as sr, from gtts import gTTS, import playsound, import os) what I need to do to solve the problem please help me ): : Traceback (most recent call last): File "/Users/mac/PycharmProjects/AI/main.py", line 36, in command = voice_command_processor() File "/Users/mac/PycharmProjects/AI/main.py", line 14, in voice_command_processor with sr.microphene() as source: AttributeError: module 'speech_recognition' has no attribute 'microphene'

question quick If I want to apply os.system for windows I use start for Mac what I use final comment I want to build my own Ai Assistant where the best way I can to it in python or IBM Waston Assistant?

TSSwork commented 4 years ago

Why are you typed sr.microphone() as sr.microphene().Check you spellings in the word.

amannegi117 commented 4 years ago

use pyttsx3 and speech recognition module will surely be of great help

amannegi117 commented 4 years ago

and there is a spelling mistake you should do sr.Microphone() as source