Search in sources :

Example 1 with TciClient

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

the class SubmitOneByOneClassTask 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);
        SubmitOneByOneClassTaskRequest req = new SubmitOneByOneClassTaskRequest();
        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);
        SubmitOneByOneClassTaskResponse res = client.SubmitOneByOneClassTask(req);
        System.out.println(SubmitOneByOneClassTaskResponse.toJsonString(res));
        System.out.println(res.getRequestId());
    } catch (TencentCloudSDKException e) {
        e.printStackTrace();
    }
}
Also used : SubmitOneByOneClassTaskRequest(com.tencentcloudapi.tci.v20190318.models.SubmitOneByOneClassTaskRequest) SubmitOneByOneClassTaskResponse(com.tencentcloudapi.tci.v20190318.models.SubmitOneByOneClassTaskResponse) Credential(com.tencentcloudapi.common.Credential) TencentCloudSDKException(com.tencentcloudapi.common.exception.TencentCloudSDKException) ClientProfile(com.tencentcloudapi.common.profile.ClientProfile) HttpProfile(com.tencentcloudapi.common.profile.HttpProfile) TciClient(com.tencentcloudapi.tci.v20190318.TciClient)

Example 2 with TciClient

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

the class SubmitOpenClassTask 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);
        SubmitOpenClassTaskRequest req = new SubmitOpenClassTaskRequest();
        req.setFileContent("https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4");
        req.setFileType("vod_url");
        req.setLibrarySet(new String[] { "library_15603955264181591716" });
        SubmitOpenClassTaskResponse res = client.SubmitOpenClassTask(req);
        System.out.println(SubmitOpenClassTaskResponse.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) ClientProfile(com.tencentcloudapi.common.profile.ClientProfile) SubmitOpenClassTaskRequest(com.tencentcloudapi.tci.v20190318.models.SubmitOpenClassTaskRequest) HttpProfile(com.tencentcloudapi.common.profile.HttpProfile) TciClient(com.tencentcloudapi.tci.v20190318.TciClient) SubmitOpenClassTaskResponse(com.tencentcloudapi.tci.v20190318.models.SubmitOpenClassTaskResponse)

Example 3 with TciClient

use of com.tencentcloudapi.tci.v20190318.TciClient 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)

Example 4 with TciClient

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

the class SubmitTraditionalClassTask 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);
        SubmitTraditionalClassTaskRequest req = new SubmitTraditionalClassTaskRequest();
        req.setFileContent("https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4");
        req.setFileType("vod_url");
        req.setLibrarySet(new String[] { "library_15603955264181591716" });
        SubmitTraditionalClassTaskResponse res = client.SubmitTraditionalClassTask(req);
        System.out.println(SubmitTraditionalClassTaskResponse.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) ClientProfile(com.tencentcloudapi.common.profile.ClientProfile) HttpProfile(com.tencentcloudapi.common.profile.HttpProfile) SubmitTraditionalClassTaskRequest(com.tencentcloudapi.tci.v20190318.models.SubmitTraditionalClassTaskRequest) TciClient(com.tencentcloudapi.tci.v20190318.TciClient) SubmitTraditionalClassTaskResponse(com.tencentcloudapi.tci.v20190318.models.SubmitTraditionalClassTaskResponse)

Example 5 with TciClient

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

the class DescribeAITaskResult 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);
        DescribeAITaskResultRequest req = new DescribeAITaskResultRequest();
        long a = 2617184392L;
        req.setTaskId(a);
        DescribeAITaskResultResponse res = client.DescribeAITaskResult(req);
        System.out.println(DescribeAITaskResultResponse.toJsonString(res));
        System.out.println(res.getRequestId());
    } catch (TencentCloudSDKException e) {
        e.printStackTrace();
    }
}
Also used : DescribeAITaskResultResponse(com.tencentcloudapi.tci.v20190318.models.DescribeAITaskResultResponse) Credential(com.tencentcloudapi.common.Credential) TencentCloudSDKException(com.tencentcloudapi.common.exception.TencentCloudSDKException) ClientProfile(com.tencentcloudapi.common.profile.ClientProfile) HttpProfile(com.tencentcloudapi.common.profile.HttpProfile) TciClient(com.tencentcloudapi.tci.v20190318.TciClient) DescribeAITaskResultRequest(com.tencentcloudapi.tci.v20190318.models.DescribeAITaskResultRequest)

Aggregations

Credential (com.tencentcloudapi.common.Credential)6 TencentCloudSDKException (com.tencentcloudapi.common.exception.TencentCloudSDKException)6 ClientProfile (com.tencentcloudapi.common.profile.ClientProfile)6 HttpProfile (com.tencentcloudapi.common.profile.HttpProfile)6 TciClient (com.tencentcloudapi.tci.v20190318.TciClient)6 DescribeAITaskResultRequest (com.tencentcloudapi.tci.v20190318.models.DescribeAITaskResultRequest)1 DescribeAITaskResultResponse (com.tencentcloudapi.tci.v20190318.models.DescribeAITaskResultResponse)1 SubmitFullBodyClassTaskRequest (com.tencentcloudapi.tci.v20190318.models.SubmitFullBodyClassTaskRequest)1 SubmitFullBodyClassTaskResponse (com.tencentcloudapi.tci.v20190318.models.SubmitFullBodyClassTaskResponse)1 SubmitOneByOneClassTaskRequest (com.tencentcloudapi.tci.v20190318.models.SubmitOneByOneClassTaskRequest)1 SubmitOneByOneClassTaskResponse (com.tencentcloudapi.tci.v20190318.models.SubmitOneByOneClassTaskResponse)1 SubmitOpenClassTaskRequest (com.tencentcloudapi.tci.v20190318.models.SubmitOpenClassTaskRequest)1 SubmitOpenClassTaskResponse (com.tencentcloudapi.tci.v20190318.models.SubmitOpenClassTaskResponse)1 SubmitPartialBodyClassTaskRequest (com.tencentcloudapi.tci.v20190318.models.SubmitPartialBodyClassTaskRequest)1 SubmitPartialBodyClassTaskResponse (com.tencentcloudapi.tci.v20190318.models.SubmitPartialBodyClassTaskResponse)1 SubmitTraditionalClassTaskRequest (com.tencentcloudapi.tci.v20190318.models.SubmitTraditionalClassTaskRequest)1 SubmitTraditionalClassTaskResponse (com.tencentcloudapi.tci.v20190318.models.SubmitTraditionalClassTaskResponse)1