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 — Diarization Output Modified by happyhuman · Pull Request #1586 · GoogleCloudPlatform/python-docs-samples

Conversation

@happyhuman

@happyhuman happyhuman commented Jul 19, 2018

Copy link
Copy Markdown
Contributor

Printing the last paragraph only.

Sorry, something went wrong.

Uh oh!

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

All reactions
@happyhuman
Printing the last paragraph only.
b5d4ceb
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 19, 2018
@happyhuman
Python3 print
a4c2ca4
@happyhuman
happyhuman requested review from dizcology, sirtorry and tswast July 19, 2018 22:24
@happyhuman

happyhuman commented Jul 19, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

@dizcology , @tswast , @sirtorry I had to adjust the output in this sample a little. Can you please review this PR? Thanks.

All reactions

Sorry, something went wrong.

Uh oh!

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

happyhuman added 2 commits July 20, 2018 08:57
@happyhuman
Removing sample rate setting
f7e4131
@happyhuman
Merge branch 'master' into diarization-fix
5949a81
dizcology
dizcology reviewed Jul 20, 2018
View reviewed changes
Comment thread speech/cloud-client/beta_snippets.py Outdated
words_info = result.alternatives[0].words
pieces = ['%s (%s)' % (word_info.word, word_info.speaker_tag)
for word_info in words_info]
print(' '.join(pieces))

@dizcology dizcology Jul 20, 2018

Copy link
Copy Markdown
Member

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.

I feel this might not illustrate the "typical" use case, where the developer might more likely want to group and join the words according to their speaker_tag.

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

Interesting point. Tough to say what the right use case is. But I see it just as a sample. to show them the API, and not the use case. Do you think we can keep it as is, or should we change it?

Sorry, something went wrong.

Uh oh!

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

All reactions

@dizcology dizcology Jul 20, 2018

Copy link
Copy Markdown
Member

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.

I agree - in that sense perhaps let's just iterate through words_info and print everything without the nice formatting of '%s (%s)'. the expected output of the test really confused me.

Sorry, something went wrong.

Uh oh!

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

All reactions

@puneith puneith Jul 20, 2018

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.

I think I agree with the way it's formatted but whatever you decide consider this syntax

pieces = ['{} ({})'.format(word_info.word, word_info.speaker_tag) for word_info in words_info]

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

I made some changes to make the output to look like this:

Speaker #1: I'm here
Speaker #2: hi I'd like to buy a Chrome Cast and I was wondering whether you could help me

Sorry, something went wrong.

Uh oh!

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

All reactions
@happyhuman
Adding the missing output parameter in the example
f1662fe
jerjou
jerjou reviewed Jul 20, 2018
View reviewed changes
Comment thread speech/cloud-client/beta_snippets.py
.format(i, alternative.transcript))
print('Speaker Tag for the first word: {}'
.format(alternative.words[0].speaker_tag))
result = response.results[-1]

@jerjou jerjou Jul 20, 2018

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.

A comment here explaining why you're only taking the last result (instead of all of them) would probably be helpful.

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

Good idea. Adding it.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets.py
audio = speech.types.RecognitionAudio(content=content)
config = speech.types.RecognitionConfig(
encoding=speech.enums.RecognitionConfig.AudioEncoding.LINEAR16,
sample_rate_hertz=8000,

@jerjou jerjou Jul 20, 2018

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.

Any particular reason for omitting this? For WAV files, the API can infer this, but in the general case it's probably a good idea to include the sample rate

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

I keep going back and forth about it. Sometimes it is useful, and other times it is causing an error when the input file has a different sample rate.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets.py Outdated
.format(alternative.words[0].speaker_tag))
result = response.results[-1]
words_info = result.alternatives[0].words
pieces = ['%s (%s)' % (word_info.word, word_info.speaker_tag)

@jerjou jerjou Jul 20, 2018

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.

Isn't '{} ({})'.format(word_info.word, word_info.speaker_tag) the preferred way to do this these days? Or is Thea no longer benevolent overlord?

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

Good point. I will modify it.

Sorry, something went wrong.

Uh oh!

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

All reactions
puneith
puneith previously requested changes Jul 20, 2018
View reviewed changes
Comment thread speech/cloud-client/beta_snippets.py
audio = speech.types.RecognitionAudio(content=content)
config = speech.types.RecognitionConfig(
encoding=speech.enums.RecognitionConfig.AudioEncoding.LINEAR16,
sample_rate_hertz=8000,

@puneith puneith Jul 20, 2018

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.

Why is sample_rate removed? I am sure there is good reason.

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

We just had a discussion about it with Roy and Jerjou. If the input file has a different sample rate, it will cause an error. It is simpler just to omit it and the API figures it out on its own.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets_test.py Outdated
def test_transcribe_diarization(capsys):
transcribe_file_with_diarization(
os.path.join(RESOURCES, 'Google_Gnome.wav'))
os.path.join(RESOURCES, 'commercial_mono.wav'))

@puneith puneith Jul 20, 2018

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.

Consider adding file name as an argument and not hardcode.

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

Even for the unit tests?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets.py Outdated
words_info = result.alternatives[0].words
pieces = ['%s (%s)' % (word_info.word, word_info.speaker_tag)
for word_info in words_info]
print(' '.join(pieces))

@puneith puneith Jul 20, 2018

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.

I think I agree with the way it's formatted but whatever you decide consider this syntax

pieces = ['{} ({})'.format(word_info.word, word_info.speaker_tag) for word_info in words_info]

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets.py Outdated
.format(alternative.words[0].speaker_tag))
result = response.results[-1]
words_info = result.alternatives[0].words
pieces = ['%s (%s)' % (word_info.word, word_info.speaker_tag)

@puneith puneith Jul 20, 2018

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.

pieces is an odd variable name.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets.py
enable_speaker_diarization=True,
diarization_speaker_count=2)

print('Waiting for operation to complete...')

@puneith puneith Jul 20, 2018

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.

Consider using python logging facility. Understandably, for this sample it might be overkill so take it or leave it.

Sorry, something went wrong.

Uh oh!

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

All reactions

@tswast tswast Jul 20, 2018

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.

FWIW nearly all our other Python samples do print(). It's true that it's not always the recommended practice in production, but it's easy to understand. With logging there's always the risk that the developer has some weird config where the logs end up where maybe they don't expect.

Sorry, something went wrong.

Uh oh!

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

All reactions
happyhuman added 4 commits July 20, 2018 12:01
@happyhuman
Changes based on the comments
4fbefa3
@happyhuman
Removed filenames as input parameters
b105e2a
@happyhuman
Removed unused args
b53296a
@happyhuman
Updated README file
46c1f43
@happyhuman

happyhuman commented Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

@dizcology , @puneith, I made some changes based on the comments made by all the reviewers? Can you please take a final look and approve the PR if it looks good?

All reactions

Sorry, something went wrong.

Uh oh!

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

jerjou
jerjou reviewed Jul 20, 2018
View reviewed changes
Comment thread speech/cloud-client/beta_snippets.py Outdated
print('Speaker Tag for the first word: {}'
.format(alternative.words[0].speaker_tag))
# response.results contains partial results with the last item
# containing the entire result:

@jerjou jerjou Jul 20, 2018

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.

Mm... not quite. The transcript within each result is separate and sequential per result. However, the words list within an alternative (for whatever reason) includes all the words from all the results thus far. Thus, to get all the words with speaker tags, you only have to take the words list from the last result.

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

I see. Thanks for the clarification. Let me update the comment.

Sorry, something went wrong.

Uh oh!

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

All reactions

@tswast tswast Jul 20, 2018

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.

I'm not really understanding your comment, @jerjou but this sounds like something that needs to be documented on the cloud.google.com docs with a briefer explanation in the sample itself.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets.py Outdated
if speakers_words and speakers_words[-1][0] == word_info.speaker_tag:
speakers_words[-1][1].append(word_info.word)
else:
speakers_words.append((word_info.speaker_tag, [word_info.word, ]))

@jerjou jerjou Jul 20, 2018

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.

This is a bit hard to read. An intermediate variable and a namedtuple would go a long way to making this clearer:

Speaker = collections.namedtuple('Speaker', ['tag', 'words'])
speaker_words = [Speaker(tag=0, words=[])]
for word_info in words_info:
  current_speaker = speaker_words[-1]
  if current_speaker.tag == word_info.speaker_tag:
    current_speaker.words.append(word_info.word)
  else:
    speaker_words.append(Speaker(tag=word_info.speaker_tag, words=[word_info.word]))

Sorry, something went wrong.

Uh oh!

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

All reactions

@jerjou jerjou Jul 20, 2018

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.

Also, maybe speaker_sequence or something, to make it clear it's not just a speaker->words_they_spoke mapping, and is actually the conversation / words spoken in sequence.

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

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.

Interesting idea. However, I think the code readability is mainly the result of the intermediate variable Speaker(tag=0, words=[]) as the first element in the list, allowing us to define current_speaker every time.
The downside of it is that we are introducing a new object that is not returned by the API and we will have to handle it in the next step separately (either by removing it, or by skipping it), which reduces the code cleanness in another way.
So, while I am not against the suggested solution, I am also not sure if it is really helping with the code readability that much.
What do you think @jerjou ?

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

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.

What about this:

    speakers = []
    words = []
    for word_info in words_info:
        if (not speakers) or speakers[-1] != word_info.speaker_tag:
            speakers.append(word_info.speaker_tag)
            words.append([])
        words[-1].append(word_info.word)

I think this is more readable that the current code, without introducing the intermediate variable.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets.py
transcribe_file_with_multichannel(args.path)
transcribe_file_with_multichannel()
elif args.command == 'multi-language':
transcribe_file_with_multilanguage(args.path, args.first, args.second)

@jerjou jerjou Jul 20, 2018

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.

For future reference, argparse's sub-commands feature would be helpful to avoid having args that only matter for one command or another.

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

Sounds good.

Sorry, something went wrong.

Uh oh!

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

All reactions
puneith
puneith reviewed Jul 20, 2018
View reviewed changes
Comment thread speech/cloud-client/beta_snippets.py Outdated
# Separating the words by who said what:
speakers_words = []
for word_info in words_info:
if speakers_words and speakers_words[-1][0] == word_info.speaker_tag:

@puneith puneith Jul 20, 2018

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.

If I understand correctly what this piece of for loop is doing (creating list of words for tag) isn't is better to use hashmap. Does this loop work what it's supposed to do?

Sorry, something went wrong.

Uh oh!

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

All reactions

@puneith puneith Jul 20, 2018

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.

Jerjou is already reviewing this code so I should stop reviewing. You are already is great hands :)

Sorry, something went wrong.

Uh oh!

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

All reactions
happyhuman added 2 commits July 20, 2018 14:33
@happyhuman
Updated the inline comment
99ed289
@happyhuman
Modified code to make it more readable
3ef4a0d
tswast
tswast reviewed Jul 20, 2018
View reviewed changes
Comment thread speech/cloud-client/beta_snippets.py
enable_speaker_diarization=True,
diarization_speaker_count=2)

print('Waiting for operation to complete...')

@tswast tswast Jul 20, 2018

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.

FWIW nearly all our other Python samples do print(). It's true that it's not always the recommended practice in production, but it's easy to understand. With logging there's always the risk that the developer has some weird config where the logs end up where maybe they don't expect.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets.py Outdated
print('Speaker Tag for the first word: {}'
.format(alternative.words[0].speaker_tag))
# The transcript within each result is separate and sequential per result.
# However, the words list within an alternative (for whatever reason)

@tswast tswast Jul 20, 2018

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.

I understand that this comment is to explain why the [-1], but I'm having trouble understanding what this is referring to. (Probably because I don't know what an "alternative" means in this context.)

I think you could probably get by with fewer words within the sample with just

# To get all words with speaker tags, you only have to take the words list from the last result.

and leave the extra explanation about alternatives for the actual cloud.google.com docs.

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

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.

I initially had a shorter comment. But Jerjou suggested to explain it more, so I added the longer comment. I am okay either way, but I also think this is just a sample and not the formal documentation and the sample does not need to go over all the details of what's what.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread speech/cloud-client/beta_snippets.py Outdated
speakers = []
words = []
for word_info in words_info:
if (not speakers) or speakers[-1] != word_info.speaker_tag:

@tswast tswast Jul 20, 2018

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.

I think this implementation means that if speakers appear in certain orders you could end up with duplicates. For example.

word_info speakers: A, B, B, A would result in a speakers lists: A, B, A.

I think this sample would be clearer with a single dictionary of speakers to words rather than two lists.

Sorry, something went wrong.

Uh oh!

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

All reactions

@happyhuman happyhuman Jul 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

We had a long discussion about the code readability of this part of the sample. The API returns each word with an associated speak_tag. So, if I am speaker #1 and I say "I am ok", the words 'I' and 'am' and 'okay' will all be tagged with speaker_tag: 1.

Since the point of the sample is mostly just to showcase the API call and how to unbox the response object, I am beginning to think that this particular implementation is adding more confusion than clarity. I am leaning back toward a simpler implementation that just iterates over words and prints each word along with the associated speaker_tag. What do you think?

Sorry, something went wrong.

Uh oh!

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

All reactions

@tswast tswast Jul 20, 2018

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.

Yes, printing each word with a speaker tag would be much clearer.

You could do something like

current_speaker = None
for word_info in words_info:
    if current_speaker is None or current_speaker != word_info.speaker_tag:
        current_speaker = word_info.speaker_tag
        print()
        print(current_speaker)
    print(word_info.word)

if you wanted to keep them grouped.

Sorry, something went wrong.

Uh oh!

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

All reactions
@happyhuman
Simplified the response object processing.
146a180
tswast
tswast approved these changes Jul 20, 2018
View reviewed changes

@tswast tswast 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.

The new loop for speaker tags is much easier to understand, thanks.

Sorry, something went wrong.

Uh oh!

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

All reactions
@happyhuman
Fixing the long line issue.
597dc0a
sirtorry
sirtorry approved these changes Jul 20, 2018
View reviewed changes
@happyhuman
happyhuman dismissed puneith’s stale review July 20, 2018 23:20

Talked to Puneith offline about it. There is no issue to be resolved.

@happyhuman
happyhuman merged commit c310941 into master Jul 20, 2018
@happyhuman
happyhuman deleted the diarization-fix branch July 20, 2018 23:20
@jerjou

jerjou commented Jul 31, 2018

Copy link
Copy Markdown
Contributor

Shoot. I totally dropped off this PR, didn't I. Sorry - bad email management -_-; Glad y'all just went on without me.

All reactions

Sorry, something went wrong.

Uh oh!

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

@abhishek2690 abhishek2690 mentioned this pull request Aug 1, 2018
Fix indentation bug in docs #1595
Merged
busunkim96 pushed a commit to googleapis/python-texttospeech that referenced this pull request Apr 9, 2020
@happyhuman
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
6f485c3
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
busunkim96 pushed a commit to googleapis/python-texttospeech that referenced this pull request May 13, 2020
@happyhuman
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
724b6b7
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
busunkim96 pushed a commit to googleapis/python-texttospeech that referenced this pull request May 13, 2020
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
8002b7e
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
busunkim96 pushed a commit to googleapis/python-texttospeech that referenced this pull request May 13, 2020
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
1400c8c
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
busunkim96 pushed a commit to googleapis/python-texttospeech that referenced this pull request May 20, 2020
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
0400a07
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
busunkim96 pushed a commit to googleapis/python-texttospeech that referenced this pull request May 20, 2020
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
62e1562
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
busunkim96 pushed a commit to busunkim96/python-speech that referenced this pull request Sep 1, 2020
@happyhuman
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
2273fd0
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
busunkim96 pushed a commit to googleapis/python-speech that referenced this pull request Sep 3, 2020
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
28ea516
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
@msampathkumar msampathkumar mentioned this pull request Nov 10, 2022
migrate code from googleapis/python-texttospeech #8483
Merged
8 tasks
msampathkumar pushed a commit that referenced this pull request Nov 10, 2022
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](#1586)
9189e66
* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
telpirion pushed a commit that referenced this pull request Jan 13, 2023
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](#1586)
77e832d
* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
@telpirion telpirion mentioned this pull request Jan 13, 2023
chore(speech): migrate code from googleapis/python-speech #8982
Merged
8 tasks
dandhlee pushed a commit that referenced this pull request Feb 9, 2023
@happyhuman @dandhlee
Diarization Output Modified [(#1586)](#1586)
cd0ff5e
* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
telpirion pushed a commit that referenced this pull request Mar 13, 2023
@happyhuman @telpirion
Diarization Output Modified [(#1586)](#1586)
2f887b5
* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
atulep pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 6, 2023
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
a5cd95c
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
atulep pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 6, 2023
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
60e3299
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
atulep pushed a commit to googleapis/google-cloud-python that referenced this pull request Apr 18, 2023
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
447bd30
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Sep 22, 2023
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
367d997
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Sep 22, 2023
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
3fcb554
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Oct 22, 2023
@happyhuman @busunkim96
Diarization Output Modified [(#1586)](GoogleCloudPlatform/python-docs…
dd4911e
…-samples#1586)

* Printing the last paragraph only.

* Python3 print

* Removing sample rate setting

* Adding the missing output parameter in the example

* Changes based on the comments

* Removed filenames as input parameters

* Removed unused args

* Updated README file

* Updated the inline comment

* Modified code to make it more readable

* Simplified the response object processing.

* Fixing the long line issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dizcology dizcology dizcology left review comments
@tswast tswast tswast approved these changes
+3 more reviewers
@jerjou jerjou jerjou left review comments
@puneith puneith puneith left review comments
@sirtorry sirtorry sirtorry 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

cla: yes This human has signed the Contributor License Agreement.

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.

7 participants

@happyhuman @jerjou @tswast @dizcology @puneith @sirtorry @googlebot
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.