def add_word(customization_id:, word:, translation:, part_of_speech: nil)
      raise ArgumentError.new("customization_id must be provided") if customization_id.nil?

      raise ArgumentError.new("word must be provided") if word.nil?

      raise ArgumentError.new("translation must be provided") if translation.nil?

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

      data = {
        "translation" => translation,
        "part_of_speech" => part_of_speech
      }

      method_url = "/v1/customizations/%s/words/%s" % [ERB::Util.url_encode(customization_id), ERB::Util.url_encode(word)]

      request(
        method: "PUT",
        url: method_url,
        headers: headers,
        json: data,
        accept_json: false
      )
      nil
    end
def add_word(customization_id:, word:, translation:, part_of_speech: nil)
      raise ArgumentError.new("customization_id must be provided") if customization_id.nil?

      raise ArgumentError.new("word must be provided") if word.nil?

      raise ArgumentError.new("translation must be provided") if translation.nil?

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

      data = {
        "translation" => translation,
        "part_of_speech" => part_of_speech
      }

      method_url = "/v1/customizations/%s/words/%s" % [ERB::Util.url_encode(customization_id), ERB::Util.url_encode(word)]

      request(
        method: "PUT",
        url: method_url,
        headers: headers,
        json: data,
        accept_json: false
      )
      nil
    end
Custom words


 @!method add_word(customization_id:, word:, translation:, part_of_speech: nil)
 Add a custom word.
 Adds a single word and its translation to the specified custom voice model. Adding
   a new translation for a word that already exists in a custom model overwrites the
   word's existing translation. A custom model can contain no more than 20,000
   entries. You must use credentials for the instance of the service that owns a
   model to add a word to it.

   You can define sounds-like or phonetic translations for words. A sounds-like
   translation consists of one or more words that, when combined, sound like the
   word. Phonetic translations are based on the SSML phoneme format for representing
   a word. You can specify them in standard International Phonetic Alphabet (IPA)
   representation

     <code>&lt;phoneme alphabet=\"ipa\"
   ph=\"t&#601;m&#712;&#593;to\"&gt;&lt;/phoneme&gt;</code>

     or in the proprietary IBM Symbolic Phonetic Representation (SPR)

     <code>&lt;phoneme alphabet=\"ibm\"
   ph=\"1gAstroEntxrYFXs\"&gt;&lt;/phoneme&gt;</code>

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

   **See also:**
   * [Adding a single word to a custom
   model](https://cloud.ibm.com/docs/services/text-to-speech/custom-entries.html#cuWordAdd)
   * [Adding words to a Japanese custom
   model](https://cloud.ibm.com/docs/services/text-to-speech/custom-entries.html#cuJapaneseAdd)
   * [Understanding
   customization](https://cloud.ibm.com/docs/services/text-to-speech/custom-intro.html).
 @param customization_id [String] The customization ID (GUID) of the custom voice model. You must make the request
   with service credentials created for the instance of the service that owns the
   custom model.
 @param word [String] The word that is to be added or updated for the custom voice model.
 @param translation [String] The phonetic or sounds-like translation for the word. A phonetic translation is
   based on the SSML format for representing the phonetic string of a word either as
   an IPA translation or as an IBM SPR translation. A sounds-like is one or more
   words that, when combined, sound like the word.
 @param part_of_speech [String] **Japanese only.** The part of speech for the word. The service uses the value to
   produce the correct intonation for the word. You can create only a single entry,
   with or without a single part of speech, for any word; you cannot create multiple
   entries with different parts of speech for the same word. For more information,
   see [Working with Japanese
   entries](https://cloud.ibm.com/docs/services/text-to-speech/custom-rules.html#jaNotes).
 @return [nil]