Class: TencentCloud::Asr::V20190614::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Asr::V20190614::Client
- Defined in:
- lib/v20190614/client.rb
Instance Method Summary collapse
-
#CloseAsyncRecognitionTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CloseAsyncRecognitionTaskResponse`.
-
#CreateAsrKeyWordLib(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateAsrKeyWordLibResponse`.
-
#CreateAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateAsrVocabResponse`.
-
#CreateAsyncRecognitionTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateAsyncRecognitionTaskResponse`.
-
#CreateCustomization(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateCustomizationResponse`.
-
#CreateRecTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateRecTaskResponse`.
-
#DeleteAsrKeyWordLib(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DeleteAsrKeyWordLibResponse`.
-
#DeleteAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DeleteAsrVocabResponse`.
-
#DeleteCustomization(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DeleteCustomizationResponse`.
-
#DescribeAsyncRecognitionTasks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DescribeAsyncRecognitionTasksResponse`.
-
#DescribeTaskStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DescribeTaskStatusResponse`.
-
#DownloadAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DownloadAsrVocabResponse`.
-
#DownloadCustomization(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DownloadCustomizationResponse`.
-
#GetAsrKeyWordLibList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetAsrKeyWordLibListResponse`.
-
#GetAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetAsrVocabResponse`.
-
#GetAsrVocabList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetAsrVocabListResponse`.
-
#GetCustomizationList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetCustomizationListResponse`.
-
#GetModelInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetModelInfoResponse`.
-
#GetUsageByDate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetUsageByDateResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyCustomization(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::ModifyCustomizationResponse`.
-
#ModifyCustomizationState(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::ModifyCustomizationStateResponse`.
-
#SentenceRecognition(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::SentenceRecognitionResponse`.
-
#SetVocabState(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::SetVocabStateResponse`.
-
#UpdateAsrKeyWordLib(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::UpdateAsrKeyWordLibResponse`.
-
#UpdateAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::UpdateAsrVocabResponse`.
-
#VoicePrintCompare(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintCompareResponse`.
-
#VoicePrintCount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintCountResponse`.
-
#VoicePrintDelete(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintDeleteResponse`.
-
#VoicePrintEnroll(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintEnrollResponse`.
-
#VoicePrintGroupVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintGroupVerifyResponse`.
-
#VoicePrintUpdate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintUpdateResponse`.
-
#VoicePrintVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintVerifyResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20190614/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2019-06-14' api_endpoint = 'asr.tencentcloudapi.com' sdk_version = 'ASR_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#CloseAsyncRecognitionTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CloseAsyncRecognitionTaskResponse`
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20190614/client.rb', line 37 def CloseAsyncRecognitionTask(request) body = send_request('CloseAsyncRecognitionTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CloseAsyncRecognitionTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateAsrKeyWordLib(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateAsrKeyWordLibResponse`
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/v20190614/client.rb', line 65 def CreateAsrKeyWordLib(request) body = send_request('CreateAsrKeyWordLib', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateAsrKeyWordLibResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateAsrVocabResponse`
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/v20190614/client.rb', line 95 def CreateAsrVocab(request) body = send_request('CreateAsrVocab', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateAsrVocabResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateAsyncRecognitionTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateAsyncRecognitionTaskResponse`
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/v20190614/client.rb', line 124 def CreateAsyncRecognitionTask(request) body = send_request('CreateAsyncRecognitionTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateAsyncRecognitionTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateCustomization(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateCustomizationResponse`
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/v20190614/client.rb', line 150 def CreateCustomization(request) body = send_request('CreateCustomization', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCustomizationResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateRecTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::CreateRecTaskResponse`
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/v20190614/client.rb', line 183 def CreateRecTask(request) body = send_request('CreateRecTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateRecTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteAsrKeyWordLib(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DeleteAsrKeyWordLibResponse`
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/v20190614/client.rb', line 207 def DeleteAsrKeyWordLib(request) body = send_request('DeleteAsrKeyWordLib', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAsrKeyWordLibResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DeleteAsrVocabResponse`
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/v20190614/client.rb', line 231 def DeleteAsrVocab(request) body = send_request('DeleteAsrVocab', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAsrVocabResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteCustomization(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DeleteCustomizationResponse`
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/v20190614/client.rb', line 255 def DeleteCustomization(request) body = send_request('DeleteCustomization', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteCustomizationResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAsyncRecognitionTasks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DescribeAsyncRecognitionTasksResponse`
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/v20190614/client.rb', line 280 def DescribeAsyncRecognitionTasks(request) body = send_request('DescribeAsyncRecognitionTasks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAsyncRecognitionTasksResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTaskStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DescribeTaskStatusResponse`
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 |
# File 'lib/v20190614/client.rb', line 310 def DescribeTaskStatus(request) body = send_request('DescribeTaskStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTaskStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DownloadAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DownloadAsrVocabResponse`
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 |
# File 'lib/v20190614/client.rb', line 334 def DownloadAsrVocab(request) body = send_request('DownloadAsrVocab', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DownloadAsrVocabResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DownloadCustomization(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::DownloadCustomizationResponse`
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/v20190614/client.rb', line 358 def DownloadCustomization(request) body = send_request('DownloadCustomization', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DownloadCustomizationResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetAsrKeyWordLibList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetAsrKeyWordLibListResponse`
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 |
# File 'lib/v20190614/client.rb', line 382 def GetAsrKeyWordLibList(request) body = send_request('GetAsrKeyWordLibList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetAsrKeyWordLibListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetAsrVocabResponse`
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
# File 'lib/v20190614/client.rb', line 406 def GetAsrVocab(request) body = send_request('GetAsrVocab', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetAsrVocabResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetAsrVocabList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetAsrVocabListResponse`
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 |
# File 'lib/v20190614/client.rb', line 430 def GetAsrVocabList(request) body = send_request('GetAsrVocabList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetAsrVocabListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetCustomizationList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetCustomizationListResponse`
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 |
# File 'lib/v20190614/client.rb', line 454 def GetCustomizationList(request) body = send_request('GetCustomizationList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetCustomizationListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetModelInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetModelInfoResponse`
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 |
# File 'lib/v20190614/client.rb', line 478 def GetModelInfo(request) body = send_request('GetModelInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetModelInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetUsageByDate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::GetUsageByDateResponse`
502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 |
# File 'lib/v20190614/client.rb', line 502 def GetUsageByDate(request) body = send_request('GetUsageByDate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetUsageByDateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyCustomization(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::ModifyCustomizationResponse`
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/v20190614/client.rb', line 526 def ModifyCustomization(request) body = send_request('ModifyCustomization', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCustomizationResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyCustomizationState(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::ModifyCustomizationStateResponse`
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 |
# File 'lib/v20190614/client.rb', line 550 def ModifyCustomizationState(request) body = send_request('ModifyCustomizationState', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCustomizationStateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SentenceRecognition(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::SentenceRecognitionResponse`
580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 |
# File 'lib/v20190614/client.rb', line 580 def SentenceRecognition(request) body = send_request('SentenceRecognition', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SentenceRecognitionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SetVocabState(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::SetVocabStateResponse`
604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 |
# File 'lib/v20190614/client.rb', line 604 def SetVocabState(request) body = send_request('SetVocabState', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SetVocabStateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#UpdateAsrKeyWordLib(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::UpdateAsrKeyWordLibResponse`
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 |
# File 'lib/v20190614/client.rb', line 628 def UpdateAsrKeyWordLib(request) body = send_request('UpdateAsrKeyWordLib', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateAsrKeyWordLibResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#UpdateAsrVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::UpdateAsrVocabResponse`
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 |
# File 'lib/v20190614/client.rb', line 652 def UpdateAsrVocab(request) body = send_request('UpdateAsrVocab', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateAsrVocabResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VoicePrintCompare(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintCompareResponse`
676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 |
# File 'lib/v20190614/client.rb', line 676 def VoicePrintCompare(request) body = send_request('VoicePrintCompare', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VoicePrintCompareResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VoicePrintCount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintCountResponse`
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 |
# File 'lib/v20190614/client.rb', line 700 def VoicePrintCount(request) body = send_request('VoicePrintCount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VoicePrintCountResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VoicePrintDelete(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintDeleteResponse`
724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 |
# File 'lib/v20190614/client.rb', line 724 def VoicePrintDelete(request) body = send_request('VoicePrintDelete', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VoicePrintDeleteResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VoicePrintEnroll(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintEnrollResponse`
754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 |
# File 'lib/v20190614/client.rb', line 754 def VoicePrintEnroll(request) body = send_request('VoicePrintEnroll', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VoicePrintEnrollResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VoicePrintGroupVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintGroupVerifyResponse`
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 |
# File 'lib/v20190614/client.rb', line 778 def VoicePrintGroupVerify(request) body = send_request('VoicePrintGroupVerify', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VoicePrintGroupVerifyResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VoicePrintUpdate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintUpdateResponse`
802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 |
# File 'lib/v20190614/client.rb', line 802 def VoicePrintUpdate(request) body = send_request('VoicePrintUpdate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VoicePrintUpdateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#VoicePrintVerify(request) ⇒ Object
@rtype: :class:‘Tencentcloud::asr::V20190614::VoicePrintVerifyResponse`
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 |
# File 'lib/v20190614/client.rb', line 826 def VoicePrintVerify(request) body = send_request('VoicePrintVerify', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = VoicePrintVerifyResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |