google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

google-cloud-speech pip install not working

Open puneith opened this issue 10 years ago • 6 comments

pip is unable to find google-cloud-speech

$ pip install --upgrade google-cloud-speech Collecting google-cloud-speech Could not find a version that satisfies the requirement google-cloud-speech (from versions: ) No matching distribution found for google-cloud-speech

Same is true when I try to install google-cloud

$ python -c "from google.cloud import speech" Traceback (most recent call last): File "", line 1, in ImportError: cannot import name speech

puneith avatar Oct 07 '16 17:10 puneith

@puneith We have not yet released a version of speech yet nor is it yet included in the umbrella google-cloud package (notice it is not listed on https://pypi.python.org/pypi/google-cloud/0.20.0). @daspecster may have more to say there?

dhermes avatar Oct 07 '16 18:10 dhermes

@puneith I've been working on adding the stream_recognize() method and implementing GRPC support for sync_recognize() and async_recognize() before it's fully released.

You could play with speech by installing the library from source. If you have any questions just let me know!

Thanks @dhermes!

daspecster avatar Oct 07 '16 18:10 daspecster

@dhermes In the docs there is a Speech API section which does say you can use:

>>> from google.cloud import speech
>>> client = speech.Client()

However I get the same error as puneith. @daspecster do you know how soon Speech will be implemented in google-cloud-python? Thanks :-)

gw00207 avatar Oct 25 '16 15:10 gw00207

@gw00207 It's alread (partially) "implemented in google-cloud-python". You can install from source and play with the current implementation:

$ git clone https://github.com/GoogleCloudPlatform/google-cloud-python
$ cd google-cloud-python/speech
$ python setup.py install

dhermes avatar Oct 25 '16 16:10 dhermes

@gw00207, we have a list of things to do for speech before we release. You can follow along on #2522.

daspecster avatar Oct 25 '16 17:10 daspecster

Can we please remove this from the docs until #2522 is done or put a loud note to this effect? I just spent time:

  • trying to figure out why the import in the docs was failing
  • realizing that I needed to install a special package
  • learning that that package was failing to install
  • finding my way here after googling.

A simple notice would have prevented all this.

mlissner avatar Oct 26 '16 00:10 mlissner