Search in sources :

Example 1 with SubmitPartialBodyClassTaskResponse

use of com.tencentcloudapi.tci.v20190318.models.SubmitPartialBodyClassTaskResponse in project tencentcloud-sdk-java by TencentCloud.

the class SubmitPartialBodyClassTask method main.

public static void main(String[] args) {
    try {
        Credential cred = new Credential("", "");
        HttpProfile httpProfile = new HttpProfile();
        httpProfile.setReqMethod("POST");
        httpProfile.setConnTimeout(60);
        httpProfile.setEndpoint("tci.ap-beijing.tencentcloudapi.com");
        ClientProfile clientProfile = new ClientProfile();
        clientProfile.setUnsignedPayload(true);
        clientProfile.setHttpProfile(httpProfile);
        TciClient client = new TciClient(cred, "", clientProfile);
        SubmitPartialBodyClassTaskRequest req = new SubmitPartialBodyClassTaskRequest();
        req.setFileContent("https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4");
        req.setFileType("vod_url");
        long lang = 0;
        req.setLang(lang);
        req.setLibrarySet(new String[] { "library_15603955264181591716" });
        req.setVocabLibNameList(new String[] { "testlib2" });
        long EncodeType = 1;
        req.setVoiceEncodeType(EncodeType);
        long FileType = 10;
        req.setVoiceFileType(FileType);
        SubmitPartialBodyClassTaskResponse res = client.SubmitPartialBodyClassTask(req);
        System.out.println(SubmitPartialBodyClassTaskResponse.toJsonString(res));
        System.out.println(res.getRequestId());
    } catch (TencentCloudSDKException e) {
        e.printStackTrace();
    }
}
Also used : Credential(com.tencentcloudapi.common.Credential) TencentCloudSDKException(com.tencentcloudapi.common.exception.TencentCloudSDKException) SubmitPartialBodyClassTaskRequest(com.tencentcloudapi.tci.v20190318.models.SubmitPartialBodyClassTaskRequest) ClientProfile(com.tencentcloudapi.common.profile.ClientProfile) SubmitPartialBodyClassTaskResponse(com.tencentcloudapi.tci.v20190318.models.SubmitPartialBodyClassTaskResponse) HttpProfile(com.tencentcloudapi.common.profile.HttpProfile) TciClient(com.tencentcloudapi.tci.v20190318.TciClient)

Aggregations

Credential (com.tencentcloudapi.common.Credential)1 TencentCloudSDKException (com.tencentcloudapi.common.exception.TencentCloudSDKException)1 ClientProfile (com.tencentcloudapi.common.profile.ClientProfile)1 HttpProfile (com.tencentcloudapi.common.profile.HttpProfile)1 TciClient (com.tencentcloudapi.tci.v20190318.TciClient)1 SubmitPartialBodyClassTaskRequest (com.tencentcloudapi.tci.v20190318.models.SubmitPartialBodyClassTaskRequest)1 SubmitPartialBodyClassTaskResponse (com.tencentcloudapi.tci.v20190318.models.SubmitPartialBodyClassTaskResponse)1