Hi,
i tried to submit a voice job as TTS. But i got the following error
<StatusMessage>XOA-2017 [voiceREACH: required attachment not found] : tts::validate(): tts template: #textmessage: stored tts object description retrieval failed</StatusMessage>
I used the following in my code
EasyLinkJobSub_ws.
SosObjectIdType sosObject = new EasyLinkJobSub_ws.SosObjectIdType();sosObject.ownershipLevel = EasyLinkJobSub_ws.
OwnershipLevelType.customer;sosObject.ownershipLevelSpecified =
true;sosObject.sosType =
"tts";sosObject.Value =
"textmessage";
I read the text file using ReadAndEncode as:
DocData1.format = EasyLinkJobSub_ws.
DocEncodingFormat.text;File = ReadAndEncodedFile(
"path//TestBody.txt", true);DocData1.format = EasyLinkJobSub_ws.
DocEncodingFormat.base64;DocData1.Value = File;
JS_Documents[0].Item = DocData;
EasyLinkJobSub_ws.
EncodableStringType myFileName = new EasyLinkJobSub_ws.EncodableStringType();myFileName.Value =
"txtmessage.txt";JS_Documents[0].Filename = myFileName;
JS_Documents[0].DocType =
"text";JS_Documents[0].ItemElementName = EasyLinkJobSub_ws.
ItemChoiceType.DocData;JS_Documents[0].@ref =
"textmessage";DocData =
null;