lib/ibm_watson/speech_to_text_v1.rb
def recognize_with_websocket(
      content_type:,
      recognize_callback:,
      audio: nil,
      chunk_data: false,
      model: nil,
      customization_id: nil,
      acoustic_customization_id: nil,
      customization_weight: nil,
      base_model_version: nil,
      inactivity_timeout: nil,
      interim_results: nil,
      keywords: nil,
      keywords_threshold: nil,
      max_alternatives: nil,
      word_alternatives_threshold: nil,
      word_confidence: nil,
      timestamps: nil,
      profanity_filter: nil,
      smart_formatting: nil,
      speaker_labels: nil
    )
      Kernel.warn("[DEPRECATION] `recognize_with_websocket` is deprecated and will be removed in the next major release. Please use `recognize_using_websocket` instead.")
      recognize_using_websocket(
        audio: audio,
        chunk_data: chunk_data,
        content_type: content_type,
        model: model,
        recognize_callback: recognize_callback,
        customization_id: customization_id,
        acoustic_customization_id: acoustic_customization_id,
        customization_weight: customization_weight,
        base_model_version: base_model_version,
        inactivity_timeout: inactivity_timeout,
        interim_results: interim_results,
        keywords: keywords,
        keywords_threshold: keywords_threshold,
        max_alternatives: max_alternatives,
        word_alternatives_threshold: word_alternatives_threshold,
        word_confidence: word_confidence,
        timestamps: timestamps,
        profanity_filter: profanity_filter,
        smart_formatting: smart_formatting,
        speaker_labels: speaker_labels
      )
    end
def recognize_with_websocket(
      content_type:,
      recognize_callback:,
      audio: nil,
      chunk_data: false,
      model: nil,
      customization_id: nil,
      acoustic_customization_id: nil,
      customization_weight: nil,
      base_model_version: nil,
      inactivity_timeout: nil,
      interim_results: nil,
      keywords: nil,
      keywords_threshold: nil,
      max_alternatives: nil,
      word_alternatives_threshold: nil,
      word_confidence: nil,
      timestamps: nil,
      profanity_filter: nil,
      smart_formatting: nil,
      speaker_labels: nil
    )
      Kernel.warn("[DEPRECATION] `recognize_with_websocket` is deprecated and will be removed in the next major release. Please use `recognize_using_websocket` instead.")
      recognize_using_websocket(
        audio: audio,
        chunk_data: chunk_data,
        content_type: content_type,
        model: model,
        recognize_callback: recognize_callback,
        customization_id: customization_id,
        acoustic_customization_id: acoustic_customization_id,
        customization_weight: customization_weight,
        base_model_version: base_model_version,
        inactivity_timeout: inactivity_timeout,
        interim_results: interim_results,
        keywords: keywords,
        keywords_threshold: keywords_threshold,
        max_alternatives: max_alternatives,
        word_alternatives_threshold: word_alternatives_threshold,
        word_confidence: word_confidence,
        timestamps: timestamps,
        profanity_filter: profanity_filter,
        smart_formatting: smart_formatting,
        speaker_labels: speaker_labels
      )
    end
:nocov:
 @deprecated This will method be removed in the next major release. Use {#recognize_using_websocket} instead.