Skip to content

Commit 570453c

Browse files
authored
Speech sample cleanup (#2628)
* Remove similar samples, update streaming limit * Update to v1 library * Fix requirements.txt * Update library
1 parent a669fae commit 570453c

File tree

3 files changed

+3
-226
lines changed

3 files changed

+3
-226
lines changed

speech/microphone/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
google-cloud-speech==1.3.1
22
pyaudio==0.2.11
33
six==1.13.0
4+

speech/microphone/transcribe_streaming_indefinite.py

Lines changed: 0 additions & 223 deletions
This file was deleted.

speech/microphone/transcribe_streaming_infinite.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@
3232
import re
3333
import sys
3434

35-
# uses result_end_time currently only avaialble in v1p1beta, will be in v1 soon
36-
from google.cloud import speech_v1p1beta1 as speech
35+
from google.cloud import speech
3736
import pyaudio
3837
from six.moves import queue
3938

4039
# Audio recording parameters
41-
STREAMING_LIMIT = 10000
40+
STREAMING_LIMIT = 240000 # 4 minutes
4241
SAMPLE_RATE = 16000
4342
CHUNK_SIZE = int(SAMPLE_RATE / 10) # 100ms
4443

0 commit comments

Comments
 (0)