lib/ibm_watson/text_to_speech_v1.rb
def get_pronunciation(text:, voice: nil, format: nil, customization_id: nil)
      raise ArgumentError.new("text must be provided") if text.nil?

      headers = {
      }
      sdk_headers = Common.new.get_sdk_headers("text_to_speech", "V1", "get_pronunciation")
      headers.merge!(sdk_headers)

      params = {
        "text" => text,
        "voice" => voice,
        "format" => format,
        "customization_id" => customization_id
      }

      method_url = "/v1/pronunciation"

      response = request(
        method: "GET",
        url: method_url,
        headers: headers,
        params: params,
        accept_json: true
      )
      response
    end
def get_pronunciation(text:, voice: nil, format: nil, customization_id: nil)
      raise ArgumentError.new("text must be provided") if text.nil?

      headers = {
      }
      sdk_headers = Common.new.get_sdk_headers("text_to_speech", "V1", "get_pronunciation")
      headers.merge!(sdk_headers)

      params = {
        "text" => text,
        "voice" => voice,
        "format" => format,
        "customization_id" => customization_id
      }

      method_url = "/v1/pronunciation"

      response = request(
        method: "GET",
        url: method_url,
        headers: headers,
        params: params,
        accept_json: true
      )
      response
    end
Pronunciation


 @!method get_pronunciation(text:, voice: nil, format: nil, customization_id: nil)
 Get pronunciation.
 Gets the phonetic pronunciation for the specified word. You can request the
   pronunciation for a specific format. You can also request the pronunciation for a
   specific voice to see the default translation for the language of that voice or
   for a specific custom voice model to see the translation for that voice model.

   **Note:** This method is currently a beta release.

   **See also:** [Querying a word from a
   language](https://cloud.ibm.com/docs/services/text-to-speech/custom-entries.html#cuWordsQueryLanguage).
 @param text [String] The word for which the pronunciation is requested.
 @param voice [String] A voice that specifies the language in which the pronunciation is to be returned.
   All voices for the same language (for example, `en-US`) return the same
   translation.
 @param format [String] The phoneme format in which to return the pronunciation. Omit the parameter to
   obtain the pronunciation in the default format.
 @param customization_id [String] The customization ID (GUID) of a custom voice model for which the pronunciation is
   to be returned. The language of a specified custom model must match the language
   of the specified voice. If the word is not defined in the specified custom model,
   the service returns the default translation for the custom model's language. You
   must make the request with service credentials created for the instance of the
   service that owns the custom model. Omit the parameter to see the translation for
   the specified voice with no customization.
 @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.