GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(samples): remove io dependency in transcribe samples by nicain · Pull Request #223 · googleapis/python-speech

This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Conversation

@nicain

@nicain nicain commented Aug 9, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • Refactor transcribe samples (transcribe_async) into two separate samples (transcribe_async_file and transcribe_async_gcs).
  • Remove dependency on io module (use open instead of io.open).
  • Fix small issue in argparse config for samples Remove CLI interface for the samples.
  • Update tests.

runner.sh:

set -e

ROOT='python-speech'

pytest ${ROOT?}/samples/snippets/transcribe_async_gcs_test.py
pytest ${ROOT?}/samples/snippets/transcribe_async_file_test.py

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@snippet-bot

snippet-bot Bot commented Aug 9, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 4 region tags.
  • samples/snippets/transcribe_async_file.py:20, tag speech_transcribe_async
  • samples/snippets/transcribe_async_file.py:27, tag speech_python_migration_async_request
  • samples/snippets/transcribe_async_file.py:43, tag speech_python_migration_async_response
  • samples/snippets/transcribe_async_gcs.py:20, tag speech_transcribe_async_gcs

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@product-auto-label product-auto-label Bot added api: speech Issues related to the googleapis/python-speech API. samples Issues that are directly related to samples. labels Aug 9, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 9, 2021
@nicain
refactor: Refactor transcribe samples into two separate samples (loca…
4bcd326
…l-file vs gcs) and remove io dependency. Refactor tests.
@nicain
nicain force-pushed the buganizer/188681681 branch from c6ba177 to 4bcd326 Compare August 9, 2021 19:25
@telpirion telpirion changed the title Remove io dependency in transcribe samples fix: remove io dependency in transcribe samples Aug 9, 2021
telpirion
telpirion approved these changes Aug 9, 2021
View reviewed changes

@telpirion telpirion left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a handful of comments.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread samples/snippets/transcribe_async_gcs.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread samples/snippets/transcribe_async_gcs.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread samples/snippets/transcribe_async_gcs.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@parthea parthea changed the title fix: remove io dependency in transcribe samples docs(samples): remove io dependency in transcribe samples Aug 9, 2021
nicain added 3 commits August 9, 2021 19:53
@nicain
Removing CLI in samples
9efd2b7
@nicain
patching transcribe_async.py back in (to be removed later), because s…
870d3c6
…peech_transcribe_async_gcs is a required tag.
@nicain
Update year from 2017 to 2021 in license header
2092037
@nicain
nicain requested a review from telpirion August 9, 2021 21:22
telpirion
telpirion approved these changes Aug 10, 2021
View reviewed changes
Comment thread samples/snippets/transcribe_async_file.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread samples/snippets/transcribe_async_file.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread samples/snippets/transcribe_async_file_test.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread samples/snippets/transcribe_async_file_test.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread samples/snippets/transcribe_async_gcs.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

nicain and others added 2 commits August 10, 2021 18:37
@nicain
Update with feedback from code review.
c7ffe97
@nicain
Merge branch 'master' into buganizer/188681681
f344ce6
@nicain
nicain marked this pull request as ready for review August 10, 2021 19:01
@nicain
nicain merged commit 928ca3a into googleapis:master Aug 10, 2021
@nicain nicain mentioned this pull request Aug 11, 2021
chore: remove transcribe_async.py (redundant) as last step in refactor. #231
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request Aug 30, 2021
@release-please
chore: release 2.8.0 (#236)
f0f9607
🤖 I have created a release \*beep\* \*boop\*
---
## [2.8.0](https://www.github.com/googleapis/python-speech/compare/v2.7.0...v2.8.0) (2021-08-19)


### Features

* Add transcript normalization ([#235](https://www.github.com/googleapis/python-speech/issues/235)) ([f76effc](https://www.github.com/googleapis/python-speech/commit/f76effc3c5477db858571d89c5b52078e85ff94e))


### Documentation

* **samples:** remove io dependency in transcribe samples ([#223](https://www.github.com/googleapis/python-speech/issues/223)) ([928ca3a](https://www.github.com/googleapis/python-speech/commit/928ca3aeb8f8665dedfa7663c56ee3bb464481cd))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@telpirion telpirion telpirion approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: speech Issues related to the googleapis/python-speech API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@nicain @telpirion
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.