Assets/Watson/Scripts/Services/SpeechToText/SpeechToText.cs
/// <summary>
/// Lists information about all corpora that have been added to the specified custom language model. The information includes the total number of words and out-of-vocabulary (OOV) words, name, and status of each corpus. Only the owner of a custom model can use this method to list the model's corpora.
/// Note: This method is currently a beta release that is available for US English only.
/// </summary>
/// <param name="callback">The callback.</param>
/// <param name="language">The language for which custom models are to be returned. Currently, only en-US (the default) is supported.</param>
/// <param name="customData">Optional custom data.</param>
/// <returns></returns>
Lists information about all corpora that have been added to the specified custom language model. The information includes the total number of words and out-of-vocabulary (OOV) words, name, and status of each corpus. Only the owner of a custom model can use this method to list the model's corpora.
Note: This method is currently a beta release that is available for US English only.
Lists information about all corpora that have been added to the specified custom language model . The information includes the total number of words and out - of - vocabulary ( OOV ) words name and status of each corpus . Only the owner of a custom model can use this method to list the model ' s corpora . Note : This method is currently a beta release that is available for US English only .
public bool GetCustomCorpora(GetCustomCorporaCallback callback, string customizationID, string customData = default(string))
		{
			if (callback == null)
				throw new ArgumentNullException("callback");
			if (string.IsNullOrEmpty(customizationID))
				throw new ArgumentNullException("A customizationID is required to GetCustomCorpora");
			GetCustomCorporaReq req = new GetCustomCorporaReq();
			req.Callback = callback;
			req.Data = customData;
			req.CustomizationID = customizationID;
			req.OnResponse = OnGetCustomCorporaResp;
			string service = "/v1/customizations/{0}/corpora";
			RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, string.Format(service, customizationID));
			if (connector == null)
				return false;
			return connector.Send(req);
		}
public bool GetCustomCorpora ( GetCustomCorporaCallback callback , string customizationID , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( customizationID ) ) throw new ArgumentNullException ( " " ) ; GetCustomCorporaReq req = new GetCustomCorporaReq ( ) ; req . Callback = callback ; req . Data = customData ; req . CustomizationID = customizationID ; req . OnResponse = OnGetCustomCorporaResp ; string service = " " ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( service , customizationID ) ) ; if ( connector == null ) return false ; return connector . Send ( req ) ; }
Lists information about all corpora that have been added to the specified custom language model.
Lists information about all corpora that have been added to the specified custom language model .
None
callback
GetCustomCorporaCallback
None
customizationID
string
customData
string
Optional custom data.
Optional custom data .
language
The language for which custom models are to be returned. Currently, only en-US (the default) is supported.
The language for which custom models are to be returned . Currently only en - US ( the default ) is supported .