Skip to content

Instantly share code, notes, and snippets.

View adwait1290's full-sized avatar

Adwait Athale adwait1290

View GitHub Profile
@adwait1290
adwait1290 / speech-to-text.py
Last active March 28, 2023 09:05
A Python program to transcribe text from a Virtual Output using the Google Speech API
import sys
import pyaudio
import os
import concurrent.futures
import threading
from google.cloud import speech_v1 as speech
from google.cloud.speech_v1 import types
# Set up Google Cloud Speech API credentials
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "/path/to/credentials.json"

Keybase proof

I hereby claim:

  • I am adwait1290 on github.
  • I am adwait1290 (https://keybase.io/adwait1290) on keybase.
  • I have a public key ASCS4Oodtzqy0KS5SN_f5MV2DMIB6gOsIxvRW0Ujo4yyhgo

To claim this, I am signing this object: