Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for streaming sample should have "stream=" param #3074

Merged
merged 1 commit into from
Feb 27, 2017

Conversation

yogeshg
Copy link
Contributor

@yogeshg yogeshg commented Feb 26, 2017

Sample class can take in content, source_uri or stream, should be stream here.

    :type content: bytes
    :param content: (Optional) Bytes containing audio data.

    :type stream: file
    :param stream: (Optional) File like object to stream.

the type is deduced using:
sources = [content is not None, source_uri is not None, stream is not None]

Sample class can take in content, source_uri or stream, should be stream here.
```
    :type content: bytes
    :param content: (Optional) Bytes containing audio data.

    :type stream: file
    :param stream: (Optional) File like object to stream.
```
the type is deduced using:
```sources = [content is not None, source_uri is not None, stream is not None]```
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label Feb 26, 2017
@yogeshg
Copy link
Contributor Author

yogeshg commented Feb 26, 2017

I signed it!

I signed it!

@yogeshg
Copy link
Contributor Author

yogeshg commented Feb 26, 2017

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

@googlebot googlebot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Feb 26, 2017
@dhermes
Copy link
Contributor

dhermes commented Feb 26, 2017

LGTM. @daspecster LGTY?

@daspecster
Copy link
Contributor

@dhermes yup!
Thanks @yogeshg!

@daspecster daspecster merged commit f60da8b into googleapis:master Feb 27, 2017
@yogeshg
Copy link
Contributor Author

yogeshg commented Feb 28, 2017

@dhermes, @daspecster my pleasure!
I also added an example for this use case in the samples repo. I was not sure how to write the test script for it though. You can help/advise me here:
GoogleCloudPlatform/python-docs-samples#826

richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
for streaming sample should have "stream=" param
parthea pushed a commit that referenced this pull request Jul 6, 2023
…oudPlatform/python-docs-samples#3074)

Remove Natural Language samples that are no longer included in product documentation.

The samples used for documentation are now located in https://github.com/googleapis/python-language/tree/master/samples/v1 and thus have replaced the samples in this repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants