def make_channel(host, port):
 (credentials, _) = google.auth.default(scopes=[SPEECH_SCOPE])
 http_request = google.auth.transport.requests.Request()
 target = '{}:{}'.format(host, port)
 return google.auth.transport.grpc.secure_authorized_channel(credentials, http_request, target)

def make_channel ( host , port ) : ( credentials , _ ) = google . auth . default ( scopes = [ SPEECH_SCOPE ] ) http_request = google . auth . transport . requests . Request ( ) target = '{}:{}' . format ( host , port ) return google . auth . transport . grpc . secure_authorized_channel ( credentials , http_request , target )
creates a secure channel with auth credentials from the environment .