public class GmeClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION| Constructor and Description | 
|---|
| GmeClient(Credential credential,
         String region) | 
| GmeClient(Credential credential,
         String region,
         ClientProfile profile) | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateAppResponse | CreateApp(CreateAppRequest req)This API is used to create a GME application. | 
| DescribeApplicationDataResponse | DescribeApplicationData(DescribeApplicationDataRequest req)This API (DescribeApplicationData) is used to query usage data details within 90 days. | 
| DescribeAppStatisticsResponse | DescribeAppStatistics(DescribeAppStatisticsRequest req)This API is used to get the usage statistics of a GME application, including those of voice chat, voice messaging and speech-to-text, phrase analysis, etc. | 
| DescribeScanResultListResponse | DescribeScanResultList(DescribeScanResultListRequest req)This API is used to query the speech detection result. | 
| ModifyAppStatusResponse | ModifyAppStatus(ModifyAppStatusRequest req)This API is used to change the status of an application's primary switch. | 
| ScanVoiceResponse | ScanVoice(ScanVoiceRequest req)This API is used to submit a speech detection task. | 
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegionpublic GmeClient(Credential credential, String region)
public GmeClient(Credential credential, String region, ClientProfile profile)
public CreateAppResponse CreateApp(CreateAppRequest req) throws TencentCloudSDKException
req - CreateAppRequestTencentCloudSDKExceptionpublic DescribeAppStatisticsResponse DescribeAppStatistics(DescribeAppStatisticsRequest req) throws TencentCloudSDKException
req - DescribeAppStatisticsRequestTencentCloudSDKExceptionpublic DescribeApplicationDataResponse DescribeApplicationData(DescribeApplicationDataRequest req) throws TencentCloudSDKException
req - DescribeApplicationDataRequestTencentCloudSDKExceptionpublic DescribeScanResultListResponse DescribeScanResultList(DescribeScanResultListRequest req) throws TencentCloudSDKException
If the `Callback` field is not set when a speech detection task is submitted, this API will be needed to get the detection result.
req - DescribeScanResultListRequestTencentCloudSDKExceptionpublic ModifyAppStatusResponse ModifyAppStatus(ModifyAppStatusRequest req) throws TencentCloudSDKException
req - ModifyAppStatusRequestTencentCloudSDKExceptionpublic ScanVoiceResponse ScanVoice(ScanVoiceRequest req) throws TencentCloudSDKException
When submitting a speech detection task, you need to specify the `Scenes` parameter. You are currently required to set the `Scenes` parameter to `["default"]`. The detection result will contain the scenario specified at the time of request and detection result in the corresponding type.
| Scenario | Description | Label | 
|---|---|---|
| Speech detection | Speech detection type | normal: normal porn: pornographic abuse: abusive ad: advertising contraband: prohibited customized: custom keyword library. This feature is only available to beta users. To try it out, please contact us. | 
| Item | Type | Required | Description | 
|---|---|---|---|
| Signatue | string | Yes | Signature. For more information, please see Signature generation description. | 
{
        "Code": 0,
        "DataId": "1400000000_test_data_id",
        "ScanFinishTime": 1566720906,
        "HitFlag": true,
        "Live": false,
        "Msg": "",
        "ScanPiece": [{
                "DumpUrl": "",
                "HitFlag": true,
                "MainType": "abuse",
                "RoomId": "123",
                "OpenId": "xxx",
                "Info":"",
                "Offset": 0,
                "Duration": 3400,
                "PieceStartTime":1574684231,
                "ScanDetail": [{
                        "EndTime": 1110,
                        "KeyWord": "xxx",
                        "Label": "abuse",
                        "Rate": "90.00",
                        "StartTime": 1110
                }, {
                        "EndTime": 1380,
                        "KeyWord": "xxx",
                        "Label": "abuse",
                        "Rate": "90.00",
                        "StartTime": 930
                }, {
                        "EndTime": 1560,
                        "KeyWord": "xxx",
                        "Label": "abuse",
                        "Rate": "90.00",
                        "StartTime": 930
                }, {
                        "EndTime": 2820,
                        "KeyWord": "xxx",
                        "Label": "abuse",
                        "Rate": "90.00",
                        "StartTime": 2490
                }]
        }],
        "ScanStartTime": 1566720905,
        "Scenes": [
                "default"
        ],
        "Status": "Success",
        "TaskId": "xxx",
        "Url": "https://xxx/xxx.m4a"
}
req - ScanVoiceRequestTencentCloudSDKExceptionCopyright © 2022. All rights reserved.