From 5ca34b2542ca3aff3f2c1d039dbf9ae99eb62504 Mon Sep 17 00:00:00 2001 From: Angelo Paparazzi Date: Thu, 17 Oct 2024 10:55:52 -0500 Subject: [PATCH] feat(stt): add new speech models --- .../v1/model/CreateAcousticModelOptions.java | 16 +++++++++++++++- .../v1/model/CreateJobOptions.java | 14 ++++++++++++++ .../v1/model/CreateLanguageModelOptions.java | 14 ++++++++++++++ .../speech_to_text/v1/model/GetModelOptions.java | 14 ++++++++++++++ .../v1/model/RecognizeOptions.java | 14 ++++++++++++++ 5 files changed, 71 insertions(+), 1 deletion(-) diff --git a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateAcousticModelOptions.java b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateAcousticModelOptions.java index 501fdf6d25..2a1bd9a716 100644 --- a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateAcousticModelOptions.java +++ b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateAcousticModelOptions.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2018, 2023. + * (C) Copyright IBM Corp. 2018, 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at @@ -46,26 +46,38 @@ public interface BaseModelName { String EN_US_NARROWBANDMODEL = "en-US_NarrowbandModel"; /** en-US_ShortForm_NarrowbandModel. */ String EN_US_SHORTFORM_NARROWBANDMODEL = "en-US_ShortForm_NarrowbandModel"; + /** es-AR. */ + String ES_AR = "es-AR"; /** es-AR_BroadbandModel. */ String ES_AR_BROADBANDMODEL = "es-AR_BroadbandModel"; /** es-AR_NarrowbandModel. */ String ES_AR_NARROWBANDMODEL = "es-AR_NarrowbandModel"; + /** es-CL. */ + String ES_CL = "es-CL"; /** es-CL_BroadbandModel. */ String ES_CL_BROADBANDMODEL = "es-CL_BroadbandModel"; /** es-CL_NarrowbandModel. */ String ES_CL_NARROWBANDMODEL = "es-CL_NarrowbandModel"; + /** es-CO. */ + String ES_CO = "es-CO"; /** es-CO_BroadbandModel. */ String ES_CO_BROADBANDMODEL = "es-CO_BroadbandModel"; /** es-CO_NarrowbandModel. */ String ES_CO_NARROWBANDMODEL = "es-CO_NarrowbandModel"; + /** es-ES. */ + String ES_ES = "es-ES"; /** es-ES_BroadbandModel. */ String ES_ES_BROADBANDMODEL = "es-ES_BroadbandModel"; /** es-ES_NarrowbandModel. */ String ES_ES_NARROWBANDMODEL = "es-ES_NarrowbandModel"; + /** es-MX. */ + String ES_MX = "es-MX"; /** es-MX_BroadbandModel. */ String ES_MX_BROADBANDMODEL = "es-MX_BroadbandModel"; /** es-MX_NarrowbandModel. */ String ES_MX_NARROWBANDMODEL = "es-MX_NarrowbandModel"; + /** es-PE. */ + String ES_PE = "es-PE"; /** es-PE_BroadbandModel. */ String ES_PE_BROADBANDMODEL = "es-PE_BroadbandModel"; /** es-PE_NarrowbandModel. */ @@ -94,6 +106,8 @@ public interface BaseModelName { String NL_NL_BROADBANDMODEL = "nl-NL_BroadbandModel"; /** nl-NL_NarrowbandModel. */ String NL_NL_NARROWBANDMODEL = "nl-NL_NarrowbandModel"; + /** pt-BR. */ + String PT_BR = "pt-BR"; /** pt-BR_BroadbandModel. */ String PT_BR_BROADBANDMODEL = "pt-BR_BroadbandModel"; /** pt-BR_NarrowbandModel. */ diff --git a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateJobOptions.java b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateJobOptions.java index 17661b801d..15d4969436 100644 --- a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateJobOptions.java +++ b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateJobOptions.java @@ -89,18 +89,26 @@ public interface Model { String EN_US_TELEPHONY = "en-US_Telephony"; /** en-WW_Medical_Telephony. */ String EN_WW_MEDICAL_TELEPHONY = "en-WW_Medical_Telephony"; + /** es-AR. */ + String ES_AR = "es-AR"; /** es-AR_BroadbandModel. */ String ES_AR_BROADBANDMODEL = "es-AR_BroadbandModel"; /** es-AR_NarrowbandModel. */ String ES_AR_NARROWBANDMODEL = "es-AR_NarrowbandModel"; + /** es-CL. */ + String ES_CL = "es-CL"; /** es-CL_BroadbandModel. */ String ES_CL_BROADBANDMODEL = "es-CL_BroadbandModel"; /** es-CL_NarrowbandModel. */ String ES_CL_NARROWBANDMODEL = "es-CL_NarrowbandModel"; + /** es-CO. */ + String ES_CO = "es-CO"; /** es-CO_BroadbandModel. */ String ES_CO_BROADBANDMODEL = "es-CO_BroadbandModel"; /** es-CO_NarrowbandModel. */ String ES_CO_NARROWBANDMODEL = "es-CO_NarrowbandModel"; + /** es-ES. */ + String ES_ES = "es-ES"; /** es-ES_BroadbandModel. */ String ES_ES_BROADBANDMODEL = "es-ES_BroadbandModel"; /** es-ES_NarrowbandModel. */ @@ -111,10 +119,14 @@ public interface Model { String ES_ES_TELEPHONY = "es-ES_Telephony"; /** es-LA_Telephony. */ String ES_LA_TELEPHONY = "es-LA_Telephony"; + /** es-MX. */ + String ES_MX = "es-MX"; /** es-MX_BroadbandModel. */ String ES_MX_BROADBANDMODEL = "es-MX_BroadbandModel"; /** es-MX_NarrowbandModel. */ String ES_MX_NARROWBANDMODEL = "es-MX_NarrowbandModel"; + /** es-PE. */ + String ES_PE = "es-PE"; /** es-PE_BroadbandModel. */ String ES_PE_BROADBANDMODEL = "es-PE_BroadbandModel"; /** es-PE_NarrowbandModel. */ @@ -177,6 +189,8 @@ public interface Model { String NL_NL_NARROWBANDMODEL = "nl-NL_NarrowbandModel"; /** nl-NL_Telephony. */ String NL_NL_TELEPHONY = "nl-NL_Telephony"; + /** pt-BR. */ + String PT_BR = "pt-BR"; /** pt-BR_BroadbandModel. */ String PT_BR_BROADBANDMODEL = "pt-BR_BroadbandModel"; /** pt-BR_Multimedia. */ diff --git a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateLanguageModelOptions.java b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateLanguageModelOptions.java index 2538ef3366..daa9865a9d 100644 --- a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateLanguageModelOptions.java +++ b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateLanguageModelOptions.java @@ -77,18 +77,26 @@ public interface BaseModelName { String EN_US_TELEPHONY = "en-US_Telephony"; /** en-WW_Medical_Telephony. */ String EN_WW_MEDICAL_TELEPHONY = "en-WW_Medical_Telephony"; + /** es-AR. */ + String ES_AR = "es-AR"; /** es-AR_BroadbandModel. */ String ES_AR_BROADBANDMODEL = "es-AR_BroadbandModel"; /** es-AR_NarrowbandModel. */ String ES_AR_NARROWBANDMODEL = "es-AR_NarrowbandModel"; + /** es-CL. */ + String ES_CL = "es-CL"; /** es-CL_BroadbandModel. */ String ES_CL_BROADBANDMODEL = "es-CL_BroadbandModel"; /** es-CL_NarrowbandModel. */ String ES_CL_NARROWBANDMODEL = "es-CL_NarrowbandModel"; + /** es-CO. */ + String ES_CO = "es-CO"; /** es-CO_BroadbandModel. */ String ES_CO_BROADBANDMODEL = "es-CO_BroadbandModel"; /** es-CO_NarrowbandModel. */ String ES_CO_NARROWBANDMODEL = "es-CO_NarrowbandModel"; + /** es-ES. */ + String ES_ES = "es-ES"; /** es-ES_BroadbandModel. */ String ES_ES_BROADBANDMODEL = "es-ES_BroadbandModel"; /** es-ES_NarrowbandModel. */ @@ -99,10 +107,14 @@ public interface BaseModelName { String ES_ES_TELEPHONY = "es-ES_Telephony"; /** es-LA_Telephony. */ String ES_LA_TELEPHONY = "es-LA_Telephony"; + /** es-MX. */ + String ES_MX = "es-MX"; /** es-MX_BroadbandModel. */ String ES_MX_BROADBANDMODEL = "es-MX_BroadbandModel"; /** es-MX_NarrowbandModel. */ String ES_MX_NARROWBANDMODEL = "es-MX_NarrowbandModel"; + /** es-PE. */ + String ES_PE = "es-PE"; /** es-PE_BroadbandModel. */ String ES_PE_BROADBANDMODEL = "es-PE_BroadbandModel"; /** es-PE_NarrowbandModel. */ @@ -165,6 +177,8 @@ public interface BaseModelName { String NL_NL_NARROWBANDMODEL = "nl-NL_NarrowbandModel"; /** nl-NL_Telephony. */ String NL_NL_TELEPHONY = "nl-NL_Telephony"; + /** pt-BR. */ + String PT_BR = "pt-BR"; /** pt-BR_BroadbandModel. */ String PT_BR_BROADBANDMODEL = "pt-BR_BroadbandModel"; /** pt-BR_Multimedia. */ diff --git a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/GetModelOptions.java b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/GetModelOptions.java index 26ff76eb4a..bb66c632fb 100644 --- a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/GetModelOptions.java +++ b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/GetModelOptions.java @@ -74,18 +74,26 @@ public interface ModelId { String EN_US_TELEPHONY = "en-US_Telephony"; /** en-WW_Medical_Telephony. */ String EN_WW_MEDICAL_TELEPHONY = "en-WW_Medical_Telephony"; + /** es-AR. */ + String ES_AR = "es-AR"; /** es-AR_BroadbandModel. */ String ES_AR_BROADBANDMODEL = "es-AR_BroadbandModel"; /** es-AR_NarrowbandModel. */ String ES_AR_NARROWBANDMODEL = "es-AR_NarrowbandModel"; + /** es-CL. */ + String ES_CL = "es-CL"; /** es-CL_BroadbandModel. */ String ES_CL_BROADBANDMODEL = "es-CL_BroadbandModel"; /** es-CL_NarrowbandModel. */ String ES_CL_NARROWBANDMODEL = "es-CL_NarrowbandModel"; + /** es-CO. */ + String ES_CO = "es-CO"; /** es-CO_BroadbandModel. */ String ES_CO_BROADBANDMODEL = "es-CO_BroadbandModel"; /** es-CO_NarrowbandModel. */ String ES_CO_NARROWBANDMODEL = "es-CO_NarrowbandModel"; + /** es-ES. */ + String ES_ES = "es-ES"; /** es-ES_BroadbandModel. */ String ES_ES_BROADBANDMODEL = "es-ES_BroadbandModel"; /** es-ES_NarrowbandModel. */ @@ -96,10 +104,14 @@ public interface ModelId { String ES_ES_TELEPHONY = "es-ES_Telephony"; /** es-LA_Telephony. */ String ES_LA_TELEPHONY = "es-LA_Telephony"; + /** es-MX. */ + String ES_MX = "es-MX"; /** es-MX_BroadbandModel. */ String ES_MX_BROADBANDMODEL = "es-MX_BroadbandModel"; /** es-MX_NarrowbandModel. */ String ES_MX_NARROWBANDMODEL = "es-MX_NarrowbandModel"; + /** es-PE. */ + String ES_PE = "es-PE"; /** es-PE_BroadbandModel. */ String ES_PE_BROADBANDMODEL = "es-PE_BroadbandModel"; /** es-PE_NarrowbandModel. */ @@ -162,6 +174,8 @@ public interface ModelId { String NL_NL_NARROWBANDMODEL = "nl-NL_NarrowbandModel"; /** nl-NL_Telephony. */ String NL_NL_TELEPHONY = "nl-NL_Telephony"; + /** pt-BR. */ + String PT_BR = "pt-BR"; /** pt-BR_BroadbandModel. */ String PT_BR_BROADBANDMODEL = "pt-BR_BroadbandModel"; /** pt-BR_Multimedia. */ diff --git a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/RecognizeOptions.java b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/RecognizeOptions.java index 443c176c3a..d1e511b94c 100644 --- a/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/RecognizeOptions.java +++ b/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/RecognizeOptions.java @@ -89,18 +89,26 @@ public interface Model { String EN_US_TELEPHONY = "en-US_Telephony"; /** en-WW_Medical_Telephony. */ String EN_WW_MEDICAL_TELEPHONY = "en-WW_Medical_Telephony"; + /** es-AR. */ + String ES_AR = "es-AR"; /** es-AR_BroadbandModel. */ String ES_AR_BROADBANDMODEL = "es-AR_BroadbandModel"; /** es-AR_NarrowbandModel. */ String ES_AR_NARROWBANDMODEL = "es-AR_NarrowbandModel"; + /** es-CL. */ + String ES_CL = "es-CL"; /** es-CL_BroadbandModel. */ String ES_CL_BROADBANDMODEL = "es-CL_BroadbandModel"; /** es-CL_NarrowbandModel. */ String ES_CL_NARROWBANDMODEL = "es-CL_NarrowbandModel"; + /** es-CO. */ + String ES_CO = "es-CO"; /** es-CO_BroadbandModel. */ String ES_CO_BROADBANDMODEL = "es-CO_BroadbandModel"; /** es-CO_NarrowbandModel. */ String ES_CO_NARROWBANDMODEL = "es-CO_NarrowbandModel"; + /** es-ES. */ + String ES_ES = "es-ES"; /** es-ES_BroadbandModel. */ String ES_ES_BROADBANDMODEL = "es-ES_BroadbandModel"; /** es-ES_NarrowbandModel. */ @@ -111,10 +119,14 @@ public interface Model { String ES_ES_TELEPHONY = "es-ES_Telephony"; /** es-LA_Telephony. */ String ES_LA_TELEPHONY = "es-LA_Telephony"; + /** es-MX. */ + String ES_MX = "es-MX"; /** es-MX_BroadbandModel. */ String ES_MX_BROADBANDMODEL = "es-MX_BroadbandModel"; /** es-MX_NarrowbandModel. */ String ES_MX_NARROWBANDMODEL = "es-MX_NarrowbandModel"; + /** es-PE. */ + String ES_PE = "es-PE"; /** es-PE_BroadbandModel. */ String ES_PE_BROADBANDMODEL = "es-PE_BroadbandModel"; /** es-PE_NarrowbandModel. */ @@ -177,6 +189,8 @@ public interface Model { String NL_NL_NARROWBANDMODEL = "nl-NL_NarrowbandModel"; /** nl-NL_Telephony. */ String NL_NL_TELEPHONY = "nl-NL_Telephony"; + /** pt-BR. */ + String PT_BR = "pt-BR"; /** pt-BR_BroadbandModel. */ String PT_BR_BROADBANDMODEL = "pt-BR_BroadbandModel"; /** pt-BR_Multimedia. */