Skip to content

Commit 2731476

Browse files
committed
chore(stt): Hand edits for recognize
1 parent dcd1de0 commit 2731476

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

ibm_watson/speech_to_text_v1.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,8 @@ def recognize(self,
213213
customization_id=None,
214214
grammar_name=None,
215215
redaction=None,
216-
processing_metrics=None,
217-
processing_metrics_interval=None,
218-
audio_metrics=None,
219216
content_type=None,
217+
audio_metrics=None,
220218
**kwargs):
221219
"""
222220
Recognize audio.
@@ -417,20 +415,6 @@ def recognize(self,
417415
**Note:** Applies to US English, Japanese, and Korean transcription only.
418416
See [Numeric
419417
redaction](https://cloud.ibm.com/docs/services/speech-to-text?topic=speech-to-text-output#redaction).
420-
:param bool processing_metrics: If `true`, requests processing metrics about the
421-
service's transcription of the input audio. The service returns processing metrics
422-
at the interval specified by the `processing_metrics_interval` parameter. It also
423-
returns processing metrics for transcription events, for example, for final and
424-
interim results. By default, the service returns no processing metrics.
425-
:param float processing_metrics_interval: Specifies the interval in real
426-
wall-clock seconds at which the service is to return processing metrics. The
427-
parameter is ignored unless the `processing_metrics` parameter is set to `true`.
428-
The parameter accepts a minimum value of 0.1 seconds. The level of precision is
429-
not restricted, so you can specify values such as 0.25 and 0.125.
430-
The service does not impose a maximum value. If you want to receive processing
431-
metrics only for transcription events instead of at periodic intervals, set the
432-
value to a large number. If the value is larger than the duration of the audio,
433-
the service returns processing metrics only for transcription events.
434418
:param bool audio_metrics: If `true`, requests detailed information about the
435419
signal characteristics of the input audio. The service returns audio metrics with
436420
the final transcription results. By default, the service returns no audio metrics.
@@ -470,8 +454,6 @@ def recognize(self,
470454
'customization_id': customization_id,
471455
'grammar_name': grammar_name,
472456
'redaction': redaction,
473-
'processing_metrics': processing_metrics,
474-
'processing_metrics_interval': processing_metrics_interval,
475457
'audio_metrics': audio_metrics
476458
}
477459

0 commit comments

Comments
 (0)