Code Monkey home page Code Monkey logo

pyspeech's People

Watchers

 avatar

pyspeech's Issues

Unable to run example code.

When i try to use pyspeech with the example code, i get the following errors:

Traceback (most recent call last):
  File "F:\Møppe\Python\PySnakk\pytalk.py", line 8, in <module>
    listener = speech.listenforanything(response)
  File "C:\Python25\lib\site-packages\speech-0.5.1-py2.5.egg\speech.py",
line 193, in listenforanything
  File "C:\Python25\lib\site-packages\speech-0.5.1-py2.5.egg\speech.py",
line 222, in _startlistening
  File
"C:\Python25\lib\site-packages\win32com\gen_py\C866CA3A-32F7-11D2-9602-00C04F8EE
628x0x5x3.py",
line 2638, in CreateRecoContext
    ret = self._oleobj_.InvokeTypes(10, LCID, 1, (9, 0), (),)
pywintypes.com_error: (-2147352567, 'Det oppstod et unntak.', (0, None,
None, None, 0, -2147200905), None)

I'm unable to figure out what's wrong.

Original issue reported on code.google.com by [email protected] on 19 Nov 2008 at 7:38

doesn't work in vista

dude said 5.3 SDK gave error eventually, never heard anything.

maybe i need to detect the SDK type?  maybe i need vista to test...

Original issue reported on code.google.com by [email protected] on 6 Aug 2008 at 11:59

Example code failed in speech 0.3.5

Hello gundlach ,

example code in your home page is failing again :-(
You forgot the ":" symbol after def L1callback(phrase, listener) !
After correcting this error in code I have the following error

D:\dev\py\speech>example_home_page035.py
Traceback (most recent call last):
  File "D:\dev\py\speech\example_home_page035.py", line 8, in <module>
    L1 = speech.listenfor(["any of", "these will", "match"], L1callback)
  File "D:\Python25\lib\site-packages\speech-0.3.5-py2.5.egg\speech.py",
line 14
8, in listenfor
  File "D:\Python25\lib\site-packages\speech-0.3.5-py2.5.egg\speech.py",
line 15
9, in _startlistening
  File
"D:\Python25\lib\site-packages\win32com\gen_py\C866CA3A-32F7-11D2-9602-00
C04F8EE628x0x5x0.py", line 2468, in CreateRecoContext
    ret = self._oleobj_.InvokeTypes(10, LCID, 1, (9, 0), (),)
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None,
None,
 0, -2147221164), None)

Python 2.5
WinXP pro
Speech 0.3.5 egg
M$ speech pack 5.1

Thanks
Great project :-)


Original issue reported on code.google.com by [email protected] on 6 Aug 2008 at 2:46

Support multiple profiles simultaneously

http://bitbucket.org/kiv/speech/ for a fork of speech.py that supports two
microphones speaking at once.  This should be integrated back into
speech.py in a way that stays with one profile by default, and provides a
clear, simple API for using multiple profiles.

See the Discussion wiki for more details from ChrisM6794.

Original issue reported on code.google.com by [email protected] on 28 Aug 2009 at 7:36

can't install speech module

I tried to run easy_install speech in Win cmd but nothing happened. I've run 
the python script to install easy_install then tried that again but yet nothing 
happened. In cmd, I tried to change directory to a new folder containing both 
easy_install scripts and speech but nothing happened. Every time I import 
speech, module not found.
Hope anyone can suggest me a solution... Thanks.

Nice project !!

Original issue reported on code.google.com by [email protected] on 10 Dec 2011 at 4:15

request for MSAgent connection

the request:
script have the option to say the speech via msagent.

here's a sample script

from win32com.client import constants
import win32com.client
import pythoncom

agent = win32com.client.Dispatch("Agent.Control.2")
agent.Connected = -1
agent.Characters.Load("Merlin", "Merlin.acs")

peedy = agent.Characters("Merlin")

peedy.LanguageID = 0x409
peedy.Show()
peedy.Speak("Hello, World!")
peedy.Play("Blink")


Original issue reported on code.google.com by [email protected] on 19 Sep 2008 at 3:51

Other languages in Vista

Vista supports French etc speech, but only English and Chinese etc TTS. 
Support what is available.

Original issue reported on code.google.com by [email protected] on 6 Aug 2008 at 12:07

ImportError: DLL load failed: win32api, sys, os

What steps will reproduce the problem?
1.Installed easy_install, set its path variable(C:\Python25\Scripts), installed 
the .egg by opening cmd from C:\Python25\Scripts, executing the command 
"easy_install speech-0.5.2-py2.5" (because that command didn't work from 
anywhere else, even after setting the PATH variable as mentioned above)
Tried "import speech" and got some win32com error.. I saw the instructions 
again, realised i didn't have pywin32.
And so i installed "pywin32-216.win32-py2.5.exe", just click click click.. done.

2. tried "import speech" on Python Shell. Worked. Arighty! *Le me happy*

3. Copied the first program on Project Home :
##################
import speech

while True:
    phrase = speech.input()
    speech.say("You said %s" % phrase)
    if phrase == "turn off":
        break
##################

and executed it, and got this:

###################################
Traceback (most recent call last):
  File "C:\Python25\speech\myPyListener.py", line 1, in <module>
    import speech
  File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", line 55, in <module>
  File "C:\Python25\Lib\site-packages\win32com\__init__.py", line 5, in <module>
    import win32api, sys, os
ImportError: DLL load failed: The specified module could not be found.
###################################

What version of the product are you using? On what operating system?

I'm using python python 2.5.4 (i also have python 2.7.2 but in your project 
page it said python 2.4 or 2.5 so i'm using 2.5)
My OS is Windows Vista Home Premium SP1 32 bit, with SR already installed. I 
mean i get that little rectangle asking me to "say start listening" etc when i 
have to execute SR, so i guess i don't need SAPI or any related download


Original issue reported on code.google.com by [email protected] on 19 Jan 2012 at 2:33

example code fails !

replace example code on project home by example code embedded in speech.py
in the egg file because this one works ! :-)

Thanks for the update
Cyke64

Original issue reported on code.google.com by [email protected] on 6 Aug 2008 at 9:18

Listening won't work in fresh install

What steps will reproduce the problem?
1. Install python 2.5
2. Follow the installation instruction 'Type easy_install speech at the 
Windows command prompt. (If that doesn't work, download and run this Python 
script to install easy_install, then try again from C:\<Your python 
directory>\Scripts\ .)

If you don't already have it, you'll also need pywin32 (for Python 2.5 or 
for Python 2.4); and if you're on XP, you'll need the Microsoft Speech kit 
(installer here).'
3. Try to run one of the demo scripts.

What is the expected output? What do you see instead?
The expected output is a working script ( example scripts from the home 
page http://code.google.com/p/pyspeech/)

What I get instead is this:
Traceback (most recent call last):
  File "C:\Project\Test\speech1.py", line 4, in <module>
    phrase = speech.input()
  File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", 
line 16
2, in input
  File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", 
line 19
3, in listenforanything
  File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", 
line 22
2, in _startlistening
  File "C:\Python25\lib\site-packages\win32com\gen_py\C866CA3A-32F7-11D2-
9602-00
C04F8EE628x0x5x3.py", line 2638, in CreateRecoContext
    ret = self._oleobj_.InvokeTypes(10, LCID, 1, (9, 0), (),)
pywintypes.com_error: (-2147352567, 'Er is een uitzondering opgetreden.', 
(0, No
ne, None, None, 0, -2147200905), None)


What version of the product are you using? On what operating system?
I'm using vista SP1 and Python 2.5. In 2.6 i got all most the same 
exceptions.

Please provide any additional information below.
The vista instance is a fresh install. 

Original issue reported on code.google.com by [email protected] on 6 Jun 2010 at 5:03

Vista: auto wake speech engine

Vista starts the speech engine in Sleep mode, so you must say "start
listening".  Fix that.  Says Rob Chambers:

I actually don't believe there's a documented way to do this... You could
try emulating start listening of sending the appropriate wm-command to the
top level ui. Other than that, nothing via sapi.

Original issue reported on code.google.com by [email protected] on 15 Aug 2008 at 10:22

Support for Mac / Linux

Are you planning on building support for Mac or Linux?  I'd would be so awesome 
if this module 
was cross-platform!

Original issue reported on code.google.com by kyle.fox on 15 Aug 2008 at 5:27

Why not for linux ??? <<<<

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
A version for ubuntu 

What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 1 Jun 2012 at 10:11

Can't pause listening

Feature request: turn off listening without killing the listener.  Thus if
you need to start listening again you don't need to reenter your phrase
list or keep track of your callback.

Original issue reported on code.google.com by [email protected] on 21 Oct 2008 at 11:25

recursive listening

What steps will reproduce the problem?
1.

i'm using the script
import speech

def response(phrase, listener):
    speech.say("You said %s" % phrase)
    if phrase == "turn off":
        listener.stoplistening()

listener = speech.listenfor(
    ['Sleepy', 'Happy', 'Dopey', 'Killer', 'Sneezy', 'Bashful', 'Doc',
'turn off'],
    response)

# Your program can do whatever it wants now, and when a dwarf's name is heard,
# response() will be called on a separate thread.  This can happen over and
over --
# as long as the listener hasn't been stopped.
import time
while listener.islistening():
    time.sleep(1)
    print "Still waiting..."



the problem is after 20 times recognition, the system seems to pick the
sound of what they say. so it makes a recursive speech. (the system listen
for what he says)

suggestion: make a pause listening while the system is still saying something.


What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
windows XP . python 2.4

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 19 Sep 2008 at 3:46

Speech.input() doesn't work when imported, and then re-imported into a new file.

What steps will reproduce the problem?
1. Make a Python file (start.py), and in it, import speech.
2. Type in, "var = speech.input()" on a new line.
3. Make a NEW Python file, and type "import start".

What is the expected output? What do you see instead?
The speech should be captured and entered into a string, and though the
program IS trying to record sound, it's not capturing anything!

What version of the product are you using? On what operating system?
Windows XP Home Edition, Python 2.5... latest pyspeech / SAPI5 versions, I
believe.

Original issue reported on code.google.com by [email protected] on 20 Feb 2009 at 2:34

unable to import speech module

Hi,

I am just trying to install and use the speech module and I have a weird 
problem. Here is what I did:

I installed speech with easy_install and there was no problem with that.
After that I also installed the additional Microsoft Speech SDK 5.1 and 
pywin32 also without problems.
At the end I just copied the code from the home page and I got the 
following error message:

Traceback (most recent call last):
  File "C:/Documents and Settings/jori/Desktop/test_speech.py", line 1, in 
<module>
    import speech
  File "C:\Python25\lib\site-packages\speech-0.5.2-py2.5.egg\speech.py", 
line 63, in <module>
  File "C:\Python25\lib\site-packages\win32com\client\gencache.py", line 
393, in EnsureModule
    module = GetModuleForTypelib(typelibCLSID, lcid, major, minor)
  File "C:\Python25\lib\site-packages\win32com\client\gencache.py", line 
262, in GetModuleForTypelib
    AddModuleToCache(typelibCLSID, lcid, major, minor)
  File "C:\Python25\lib\site-packages\win32com\client\gencache.py", line 
554, in AddModuleToCache
    dict = mod.CLSIDToClassMap
AttributeError: 'module' object has no attribute 'CLSIDToClassMap'

I tried just to import speech without any other code and I got the same 
error.

I've looked at some other posts about deleting the folder gen_py but that 
didn't help either...I am currently using python 2.5 and Windows XP.

Any help will be appreciated.

P.S. I think this project is really cool :)

Original issue reported on code.google.com by [email protected] on 11 Jul 2009 at 7:00

Voice to text not accurate



I installed pyspeech and trying the example. When you say something it does
not seem to type what you say. Do I need to say it very slowly?
Although the speech "Turn Off" seems to be able to recognize

>"my" types mind
>"what" types want

Thanks
Rohan

Original issue reported on code.google.com by [email protected] on 17 Jul 2009 at 2:42

state machine missing

Needs the ability (and a clean API) to add different states of listening,
instead of just a top-level one.

Which means, figure out the microsoft API and then make a nice facade for it.

Original issue reported on code.google.com by [email protected] on 1 Aug 2008 at 9:17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.