:doc:`ChimeSDKMediaPipelines <../../chime-sdk-media-pipelines>` / Client / start_voice_tone_analysis_task

******************************
start_voice_tone_analysis_task
******************************



.. py:method:: ChimeSDKMediaPipelines.Client.start_voice_tone_analysis_task(**kwargs)

  

  Starts a voice tone analysis task. For more information about voice tone analysis, see `Using Amazon Chime SDK voice analytics <https://docs.aws.amazon.com/chime-sdk/latest/dg/voice-analytics.html>`__ in the *Amazon Chime SDK Developer Guide*.

   

  .. warning::

     

    Before starting any voice tone analysis tasks, you must provide all notices and obtain all consents from the speaker as required under applicable privacy and biometrics laws, and as required under the `AWS service terms <https://aws.amazon.com/service-terms/>`__ for the Amazon Chime SDK.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-media-pipelines-2021-07-15/StartVoiceToneAnalysisTask>`_  


  **Request Syntax**
  ::

    response = client.start_voice_tone_analysis_task(
        Identifier='string',
        LanguageCode='en-US',
        KinesisVideoStreamSourceTaskConfiguration={
            'StreamArn': 'string',
            'ChannelId': 123,
            'FragmentNumber': 'string'
        },
        ClientRequestToken='string'
    )
    
  :type Identifier: string
  :param Identifier: **[REQUIRED]** 

    The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.

    

  
  :type LanguageCode: string
  :param LanguageCode: **[REQUIRED]** 

    The language code.

    

  
  :type KinesisVideoStreamSourceTaskConfiguration: dict
  :param KinesisVideoStreamSourceTaskConfiguration: 

    The task configuration for the Kinesis video stream source of the media insights pipeline.

    

  
    - **StreamArn** *(string) --* **[REQUIRED]** 

      The ARN of the stream.

      

    
    - **ChannelId** *(integer) --* **[REQUIRED]** 

      The channel ID.

      

    
    - **FragmentNumber** *(string) --* 

      The unique identifier of the fragment to begin processing.

      

    
  
  :type ClientRequestToken: string
  :param ClientRequestToken: 

    The unique identifier for the client request. Use a different token for different voice tone analysis tasks.

    This field is autopopulated if not provided.

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'VoiceToneAnalysisTask': {
              'VoiceToneAnalysisTaskId': 'string',
              'VoiceToneAnalysisTaskStatus': 'NotStarted'|'Initializing'|'InProgress'|'Failed'|'Stopping'|'Stopped',
              'CreatedTimestamp': datetime(2015, 1, 1),
              'UpdatedTimestamp': datetime(2015, 1, 1)
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **VoiceToneAnalysisTask** *(dict) --* 

        The details of the voice tone analysis task.

        
        

        - **VoiceToneAnalysisTaskId** *(string) --* 

          The ID of the voice tone analysis task.

          
        

        - **VoiceToneAnalysisTaskStatus** *(string) --* 

          The status of a voice tone analysis task.

          
        

        - **CreatedTimestamp** *(datetime) --* 

          The time at which a voice tone analysis task was created.

          
        

        - **UpdatedTimestamp** *(datetime) --* 

          The time at which a voice tone analysis task was updated.

          
    
  
  **Exceptions**
  
  *   :py:class:`ChimeSDKMediaPipelines.Client.exceptions.BadRequestException`

  
  *   :py:class:`ChimeSDKMediaPipelines.Client.exceptions.ForbiddenException`

  
  *   :py:class:`ChimeSDKMediaPipelines.Client.exceptions.ConflictException`

  
  *   :py:class:`ChimeSDKMediaPipelines.Client.exceptions.UnauthorizedClientException`

  
  *   :py:class:`ChimeSDKMediaPipelines.Client.exceptions.ThrottledClientException`

  
  *   :py:class:`ChimeSDKMediaPipelines.Client.exceptions.NotFoundException`

  
  *   :py:class:`ChimeSDKMediaPipelines.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`ChimeSDKMediaPipelines.Client.exceptions.ServiceFailureException`

  