clean up codebase, remove unused directories

This commit is contained in:
riqo 2021-02-03 08:50:55 -06:00
commit a5b6837623
9 changed files with 8 additions and 1413 deletions

3
ws.py
View file

@ -49,6 +49,7 @@ client = speech.SpeechClient()
speechtotext_client = speech.SpeechClient()
config = speech.RecognitionConfig(
audio_channel_count=1,
encoding=speech.RecognitionConfig.AudioEncoding.LINEAR16,
sample_rate_hertz=44100,
language_code="en-US",
@ -80,7 +81,7 @@ async def session(websocket, path):
buf.append(chunk)
input(f"Buffer sample:" {buf[0]})
input(f"Buffer sample: {buf[0]}")
audio = b"".join(buf)
transcribe(audio)