clean up codebase, remove unused directories
This commit is contained in:
parent
911e158485
commit
a5b6837623
9 changed files with 8 additions and 1413 deletions
3
ws.py
3
ws.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue