Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Num Assign NameStore Num Assign NameStore BinOpFloorDiv NameLoad Num Assign NameStore BinOpMult BinOpMult Num Num Num Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr ListLoad NameLoad Assign NameStore TupleLoad Str BinOpAdd Str AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults Call NameLoad ListLoad NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str With Call NameLoad NameLoad NameLoad NameLoad NameStore body Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad Expr Yield Call NameLoad keyword NameLoad keyword NameLoad While UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad Expr Yield Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore NameLoad body If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpAdd Str AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr If Call NameLoad GeneratorExp BoolOpAnd CompareGt AttributeLoad NameLoad attr Num CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str comprehension NameStore AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr body Print Str Return decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad Call NameLoad Str Num NameStore body TryFinally body Expr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A contextlib N/A threading gcloud.credentials get_credentials google.cloud.speech.v1.cloud_speech_pb2 * google.rpc code_pb2 grpc.beta implementations N/A pyaudio N/A RATE 16000 N/A CHANNELS 1 N/A CHUNK N/A RATE 10 N/A DEADLINE_SECS N/A N/A 8 60 60 N/A SPEECH_SCOPE https://www.googleapis.com/auth/cloud-platform make_channel N/A N/A host port N/A N/A N/A Creates an SSL channel with auth credentials from the environment. N/A ssl_channel N/A N/A implementations ssl_channel_credentials None None None N/A creds N/A N/A N/A get_credentials create_scoped N/A SPEECH_SCOPE N/A auth_header N/A Authorization N/A Bearer  N/A N/A N/A creds get_access_token access_token N/A auth_plugin N/A N/A implementations metadata_call_credentials N/A N/A N/A _ cb N/A N/A cb N/A auth_header None name google_creds N/A composite_channel N/A N/A implementations composite_channel_credentials ssl_channel auth_plugin N/A N/A N/A implementations secure_channel host port composite_channel N/A record_audio N/A N/A channels rate chunk N/A N/A N/A Opens a recording stream in a context manager. N/A audio_interface N/A N/A pyaudio PyAudio N/A audio_stream N/A N/A audio_interface open format N/A pyaudio paInt16 channels channels rate rate input True frames_per_buffer chunk N/A N/A audio_stream N/A N/A N/A audio_stream stop_stream N/A N/A N/A audio_stream close N/A N/A N/A audio_interface terminate N/A N/A contextlib contextmanager request_stream N/A N/A stop_audio channels rate chunk N/A CHANNELS RATE CHUNK N/A N/A Yields `RecognizeRequest`s constructed from a recording audio stream.

    Args:
        stop_audio: A threading.Event object stops the recording when set.
        channels: How many audio channels to record.
        rate: The sampling rate.
        chunk: Buffer audio into chunks of this size before sending to the api.
     N/A N/A record_audio channels rate chunk audio_stream N/A N/A metadata N/A InitialRecognizeRequest encoding LINEAR16 sample_rate rate N/A audio_request N/A AudioRequest content N/A N/A audio_stream read chunk N/A N/A N/A RecognizeRequest initial_request metadata audio_request audio_request N/A N/A N/A N/A stop_audio is_set N/A N/A audio_request N/A AudioRequest content N/A N/A audio_stream read chunk N/A N/A N/A RecognizeRequest audio_request audio_request N/A listen_print_loop N/A N/A recognize_stream N/A N/A N/A resp recognize_stream N/A N/A N/A N/A N/A resp error code N/A code_pb2 OK N/A N/A N/A RuntimeError N/A Server error:  N/A N/A resp error message N/A result N/A resp results N/A N/A N/A result alternatives N/A N/A any N/A N/A N/A N/A alt confidence 0.5 N/A N/A N/A N/A alt transcript strip N/A exit quit N/A result N/A resp results N/A alt N/A result alternatives N/A N/A Exiting.. N/A N/A main N/A N/A N/A N/A N/A stop_audio N/A N/A threading Event N/A N/A beta_create_Speech_stub N/A make_channel speech.googleapis.com 443 service N/A N/A N/A N/A N/A listen_print_loop N/A N/A service Recognize N/A request_stream stop_audio DEADLINE_SECS N/A N/A N/A N/A stop_audio set N/A N/A N/A __name__ __main__ N/A N/A N/A main