Assets/Watson/Scripts/Services/SpeechToText/SpeechToText.cs
/// <summary>
/// Upgrades a custom language model to the latest release level of the Speech to Text service. The method bases the upgrade on the latest trained data stored for the custom model. If the corpora or words for the model have changed since the model was last trained, you must use the POST /v1/customizations/{customization_id}/train method to train the model on the new data. Only the owner of a custom model can use this method to upgrade the model.
/// Note: This method is not currently implemented.It will be added for a future release of the API.
/// </summary>
/// <param name="callback">The callback.</param>
/// <param name="customizationID">The requested custom language model's identifier.</param>
/// <param name="customData">Optional custom data.</param>
/// <returns></returns>
Upgrades a custom language model to the latest release level of the Speech to Text service. The method bases the upgrade on the latest trained data stored for the custom model. If the corpora or words for the model have changed since the model was last trained, you must use the POST /v1/customizations/{customization_id}/train method to train the model on the new data. Only the owner of a custom model can use this method to upgrade the model.
Note: This method is not currently implemented.It will be added for a future release of the API.
Upgrades a custom language model to the latest release level of the Speech to Text service . The method bases the upgrade on the latest trained data stored for the custom model . If the corpora or words for the model have changed since the model was last trained you must use the POST / v1 / customizations / { customization_id } / train method to train the model on the new data . Only the owner of a custom model can use this method to upgrade the model . Note : This method is not currently implemented . It will be added for a future release of the API .
public bool UpgradeCustomization(UpgradeCustomizationCallback callback, string customizationID, string customData = default(string))
		{
			if (callback == null)
				throw new ArgumentNullException("callback");
			if (string.IsNullOrEmpty(customizationID))
				throw new ArgumentNullException("A customizationID to upgrade a custom language model.");
			UpgradeCustomizationRequest req = new UpgradeCustomizationRequest();
			req.Callback = callback;
			req.CustomizationID = customizationID;
			req.Data = customData;
			req.Headers["Content-Type"] = "application/json";
			req.Headers["Accept"] = "application/json";
			req.Send = Encoding.UTF8.GetBytes("{}");
			req.OnResponse = OnResetCustomizationResp;
			string service = "/v1/customizations/{0}/upgrade";
			RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, string.Format(service, customizationID));
			if (connector == null)
				return false;
			return connector.Send(req);
		}
public bool UpgradeCustomization ( UpgradeCustomizationCallback callback , string customizationID , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( customizationID ) ) throw new ArgumentNullException ( " " ) ; UpgradeCustomizationRequest req = new UpgradeCustomizationRequest ( ) ; req . Callback = callback ; req . CustomizationID = customizationID ; req . Data = customData ; req . Headers [ " " ] = " " ; req . Headers [ " " ] = " " ; req . Send = Encoding . UTF8 . GetBytes ( " " ) ; req . OnResponse = OnResetCustomizationResp ; string service = " " ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( service , customizationID ) ) ; if ( connector == null ) return false ; return connector . Send ( req ) ; }
Upgrades a custom language model to the latest release level of the Speech to Text service.
Upgrades a custom language model to the latest release level of the Speech to Text service .
None
callback
UpgradeCustomizationCallback
None
customizationID
string
The requested custom language model's identifier.
The requested custom language model ' s identifier .
customData
string
Optional custom data.
Optional custom data .