Skip to content

Commit

Permalink
Speech sample cleanup (#2628)
Browse files Browse the repository at this point in the history
* Remove similar samples, update streaming limit

* Update to v1 library

* Fix requirements.txt

* Update library
  • Loading branch information
nnegrey authored Feb 28, 2020
1 parent a669fae commit 570453c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 226 deletions.
1 change: 1 addition & 0 deletions speech/microphone/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
google-cloud-speech==1.3.1
pyaudio==0.2.11
six==1.13.0

223 changes: 0 additions & 223 deletions speech/microphone/transcribe_streaming_indefinite.py

This file was deleted.

5 changes: 2 additions & 3 deletions speech/microphone/transcribe_streaming_infinite.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@
import re
import sys

# uses result_end_time currently only avaialble in v1p1beta, will be in v1 soon
from google.cloud import speech_v1p1beta1 as speech
from google.cloud import speech
import pyaudio
from six.moves import queue

# Audio recording parameters
STREAMING_LIMIT = 10000
STREAMING_LIMIT = 240000 # 4 minutes
SAMPLE_RATE = 16000
CHUNK_SIZE = int(SAMPLE_RATE / 10) # 100ms

Expand Down

0 comments on commit 570453c

Please sign in to comment.