7d47747b0515a1f0c4b3ae7bc999b072c132864a,media-translation/cloud-client/translate_from_mic.py,,main,#,122

Before Change


        streaming_config=config, audio_content=None)

    with MicrophoneStream(RATE, CHUNK) as stream:
        audio_generator = stream.generator()
        mic_requests = (mediatranslation.StreamingTranslateSpeechRequest(
            audio_content=content,
            streaming_config=config)
            for content in audio_generator)

After Change


        print()
        option = input("Press any key to translate or \"q\" to quit: ")

        if option.lower() == "q":
            break

        do_translation_loop()


if __name__ == "__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 7d47747b0515a1f0c4b3ae7bc999b072c132864a
Time: 2020-06-15
Author: erschmid@google.com
File Name: media-translation/cloud-client/translate_from_mic.py
Class Name:
Method Name: main


Project Name: pymc-devs/pymc3
Commit Name: 9da9e27856f25eee34acf892ee8ab1ed46462de3
Time: 2018-06-17
Author: colcarroll@gmail.com
File Name: pymc3/distributions/distribution.py
Class Name:
Method Name: generate_samples


Project Name: HyperGAN/HyperGAN
Commit Name: 5f65493b550ab85af30666e60e27248ae3df7b00
Time: 2020-07-26
Author: mikkel@255bits.com
File Name: hypergan/gans/aligned_interpolate_gan.py
Class Name: AlignedInterpolateGAN
Method Name: forward_pass