Skip to content

Commit 8f84035

Browse files
committed
Removed deadcode.
1 parent e755345 commit 8f84035

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

speech_recognition/__init__.py

-5
Original file line numberDiff line numberDiff line change
@@ -1310,11 +1310,6 @@ def recognize_ibm(self, audio_data, key, language="en-US", show_all=False):
13101310
convert_rate=None if audio_data.sample_rate >= 16000 else 16000, # audio samples should be at least 16 kHz
13111311
convert_width=None if audio_data.sample_width >= 2 else 2 # audio samples should be at least 16-bit
13121312
)
1313-
# url = "https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?{}".format(urlencode({
1314-
# "profanity_filter": "false",
1315-
# "model": "{}_BroadbandModel".format(language),
1316-
# "inactivity_timeout": -1, # don't stop recognizing when the audio stream activity stops
1317-
# }))
13181313
url = "https://gateway-wdc.watsonplatform.net/speech-to-text/api/v1/recognize"
13191314
request = Request(url, data=flac_data, headers={
13201315
"Content-Type": "audio/x-flac",

0 commit comments

Comments
 (0)