How to use start_call_analytics_job method in localstack

Best Python code snippet using localstack_python

client.pyi

Source:client.pyi Github

copy

Full Screen

...389 Provides a list of custom vocabulary filters that match the specified criteria.390 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/transcribe.html#TranscribeService.Client.list_vocabulary_filters)391 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_transcribe/client.html#list_vocabulary_filters)392 """393 def start_call_analytics_job(394 self,395 *,396 CallAnalyticsJobName: str,397 Media: "MediaTypeDef",398 OutputLocation: str = None,399 OutputEncryptionKMSKeyId: str = None,400 DataAccessRoleArn: str = None,401 Settings: "CallAnalyticsJobSettingsTypeDef" = None,402 ChannelDefinitions: List["ChannelDefinitionTypeDef"] = None403 ) -> StartCallAnalyticsJobResponseTypeDef:404 """405 Transcribes the audio from a customer service call and applies any additional406 Request Parameters you choose to include in your request.407 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/transcribe.html#TranscribeService.Client.start_call_analytics_job)...

Full Screen

Full Screen

run_call_analytics.py

Source:run_call_analytics.py Github

copy

Full Screen

...49 job_name = "job-" + uuid.uuid4().hex50 logger.debug("job_name: %s", job_name)51 logger.debug("ENV_DATA_ACCESS_ROLE_ARN: %s", os.environ.get(ENV_DATA_ACCESS_ROLE_ARN))52 # Invoke Transcribe-API.53 response = TRANSCRIBE_CLIENT.start_call_analytics_job(54 CallAnalyticsJobName = job_name,55 Media = {"MediaFileUri": media_uri},56 OutputLocation = output_location,57 DataAccessRoleArn = os.environ.get(ENV_DATA_ACCESS_ROLE_ARN),58 ChannelDefinitions = [59 {'ChannelId': 0, 'ParticipantRole': 'CUSTOMER'},60 {'ChannelId': 1, 'ParticipantRole': 'AGENT'}61 ]62 )63 logger.debug("response: %s", response)64# --------------------------------------------------------------------------------------------------65# # Lambda handler.66# --------------------------------------------------------------------------------------------------67def lambda_handler(event, context):...

Full Screen

Full Screen

CallAnalyticsJob.py

Source:CallAnalyticsJob.py Github

copy

Full Screen

...13job_name = "Prueba3"14job_uri = "s3://amazon-connect-b7d5ed773859/connect/itesm2022AmazonConnect/CallRecordings/2022/05/01/12342424-5921-4865-8109-006886f41246_20220501T20:24_UTC.wav"15output_location = "s3://transcribe-job-results-group1/JobResults/"16data_access_role = "arn:aws:iam::559202700801:role/service-role/AmazonTranscribeServiceRole-TranscribeAccessRole"17transcribe.start_call_analytics_job(18 CallAnalyticsJobName=job_name,19 Media={20 'MediaFileUri': job_uri21 },22 DataAccessRoleArn=data_access_role,23 OutputLocation=output_location,24 ChannelDefinitions=[25 {26 'ChannelId': 1, 27 'ParticipantRole': 'AGENT'28 },29 {30 'ChannelId': 0, 31 'ParticipantRole': 'CUSTOMER'...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful