Assets/Watson/Scripts/Services/SpeechToText/SpeechToText.cs
/// <summary>
/// Lists information about all custom words from a custom language model. You can list all words from the custom model's words resource, only custom words that were added or modified by the user, or only OOV words that were extracted from corpora. Only the owner of a custom model can use this method to query the words from the model.
/// 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 custom words from a custom language model. You can list all words from the custom model's words resource, only custom words that were added or modified by the user, or only OOV words that were extracted from corpora. Only the owner of a custom model can use this method to query the words from the model.
Note: This method is currently a beta release that is available for US English only.
Lists information about all custom words from a custom language model . You can list all words from the custom model ' s words resource only custom words that were added or modified by the user or only OOV words that were extracted from corpora . Only the owner of a custom model can use this method to query the words from the model . Note : This method is currently a beta release that is available for US English only .
public bool GetCustomWords(GetCustomWordsCallback callback, string customizationID, string wordType = WordType.ALL, string customData = default(string))
		{
			if (callback == null)
				throw new ArgumentNullException("callback");
			if (string.IsNullOrEmpty(customizationID))
				throw new ArgumentNullException("customizationID");
			GetCustomWordsReq req = new GetCustomWordsReq();
			req.Callback = callback;
			req.CustomizationID = customizationID;
			req.WordType = wordType;
			req.Data = customData;
			req.Parameters["word_type"] = wordType.ToString();
			req.OnResponse = OnGetCustomWordsResp;
			RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, string.Format("/v1/customizations/{0}/words", customizationID));
			if (connector == null)
				return false;
			return connector.Send(req);
		}
public bool GetCustomWords ( GetCustomWordsCallback callback , string customizationID , string wordType = WordType . ALL , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( customizationID ) ) throw new ArgumentNullException ( " " ) ; GetCustomWordsReq req = new GetCustomWordsReq ( ) ; req . Callback = callback ; req . CustomizationID = customizationID ; req . WordType = wordType ; req . Data = customData ; req . Parameters [ " " ] = wordType . ToString ( ) ; req . OnResponse = OnGetCustomWordsResp ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( " " , customizationID ) ) ; if ( connector == null ) return false ; return connector . Send ( req ) ; }
Lists information about all custom words from a custom language model.
Lists information about all custom words from a custom language model .
None
callback
GetCustomWordsCallback
None
customizationID
string
wordType
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 .