You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# @param smart_formatting [Boolean] If `true`, converts dates, times, series of digits and numbers, phone numbers, currency values, and Internet addresses into more readable, conventional representations in the final transcript of a recognition request. If `false` (the default), no formatting is performed. Applies to US English transcription only.
449
449
# @param speaker_labels [Boolean] Indicates whether labels that identify which words were spoken by which participants in a multi-person exchange are to be included in the response. The default is `false`; no speaker labels are returned. Setting `speaker_labels` to `true` forces the `timestamps` parameter to be `true`, regardless of whether you specify `false` for the parameter. To determine whether a language model supports speaker labels, use the `GET /v1/models` method and check that the attribute `speaker_labels` is set to `true`. You can also refer to [Speaker labels](https://console.bluemix.net/docs/services/speech-to-text/output.html#speaker_labels).
450
450
# @return [WebSocketClient] Returns a new WebSocketClient object
# @deprecated This will method be removed in the next major release. Use {#recognize_using_websocket} instead.
515
+
defrecognize_with_websocket(
516
+
audio: nil,
517
+
chunk_data: false,
518
+
content_type: "audio/l16; rate=44100",
519
+
model: "en-US_BroadbandModel",
520
+
recognize_callback: nil,
521
+
customization_id: nil,
522
+
acoustic_customization_id: nil,
523
+
customization_weight: nil,
524
+
version: nil,
525
+
inactivity_timeout: 30,
526
+
interim_results: false,
527
+
keywords: nil,
528
+
keywords_threshold: nil,
529
+
max_alternatives: 1,
530
+
word_alternatives_threshold: nil,
531
+
word_confidence: false,
532
+
timestamps: false,
533
+
profanity_filter: nil,
534
+
smart_formatting: false,
535
+
speaker_labels: nil
536
+
)
537
+
Kernel.warn("[DEPRECATION] `recognize_with_websocket` is deprecated and will be removed in the next major release. Please use `recognize_using_websocket` instead.")
0 commit comments