@@ -0,0 +1,2027 @@
+/**%0A * Copyright 2015 IBM Corp. All Rights Reserved.%0A * %3Cp%3E%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not use this file except%0A * in compliance with the License. You may obtain a copy of the License at%0A * %3Cp%3E%0A * http://www.apache.org/licenses/LICENSE-2.0%0A * %3Cp%3E%0A * Unless required by applicable law or agreed to in writing, software distributed under the License%0A * is distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express%0A * or implied. See the License for the specific language governing permissions and limitations under%0A * the License.%0A */%0Apackage com.ibm.watson.developer_cloud.text_to_speech.v1;%0A%0Aimport java.util.List;%0A%0Aimport com.ibm.watson.developer_cloud.text_to_speech.v1.model.CustomTranslation;%0Aimport com.ibm.watson.developer_cloud.text_to_speech.v1.model.CustomVoiceModel;%0A%0Apublic class CustomizationExample %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    TextToSpeech service = new TextToSpeech();%0A    service.setUsernameAndPassword(%22%3Cusername%3E%22, %22%3Cpassword%3E%22);%0A%0A    //create custom voice model.%0A    CustomVoiceModel model = new CustomVoiceModel();%0A    model.setName(%22my model%22);%0A    model.setLanguage(%22en-us%22);%0A    model.setDescription(%22the model for testing%22);%0A    CustomVoiceModel customVoiceModel = service.saveCustomVoiceModel(model).execute();%0A    System.out.println(customVoiceModel);%0A%0A    //list custom voice models%0A    List%3CCustomVoiceModel%3E customVoiceModels = service.getCustomVoiceModels(%22en-us%22).execute();%0A    System.out.println(customVoiceModels);%0A%0A    //create custom word translations%0A    CustomTranslation customTranslation = new CustomTranslation(%22hodor%22, %22hold the door%22);%0A    service.saveWords(customVoiceModel, customTranslation).execute();%0A    List%3CCustomTranslation%3E results = service.getWords(customVoiceModel).execute();%0A    System.out.println(results);%0A%0A    //get custom word translations%0A    List%3CCustomTranslation%3E words = service.getWords(customVoiceModel).execute();%0A    System.out.println(words);%0A  %7D%0A%0A%7D%0A

add customization example