@@ -0,0 +1,1083 @@
+# https://cloud.google.com/speech-to-text/docs/reference/libraries#client-libraries-usage-python%0A%0A# bosh int --path=/gcp_credentials_json %3C(lpass show deployments.yml) %3E ~/Downloads/gcp.json%0A# export GOOGLE_APPLICATION_CREDENTIALS=$HOME/Downloads/gcp.json%0Aimport io%0A%0A# Imports the Google Cloud client library%0Afrom google.cloud import speech%0Afrom google.cloud.speech import enums%0Afrom google.cloud.speech import types%0A%0A# Instantiates a client%0Aclient = speech.SpeechClient()%0A%0A# The name of the audio file to transcribe%0Afile_name = %22/Users/cunnie/Google Drive/BlabberTabber/meeting2.wav%22%0A%0A# Loads the audio into memory%0Awith io.open(file_name, 'rb') as audio_file:%0A    content = audio_file.read()%0A    audio = types.RecognitionAudio(content=content)%0A%0Aconfig = types.RecognitionConfig(%0A    encoding=enums.RecognitionConfig.AudioEncoding.LINEAR16,%0A    sample_rate_hertz=16000,%0A    language_code='en-US',%0A    diarization_speaker_count=2,%0A    enable_speaker_diarization=True,%0A    model='video'%0A)%0A%0A# Detects speech in the audio file%0Aresponse = client.recognize(config, audio)%0A%0Aprint(response)%0A

Abortive attempt to access Google Diarization