VoiceID

Client

class VoiceID.Client

A low-level client representing Amazon Voice ID

Amazon Connect Voice ID provides real-time caller authentication and fraud screening. This guide describes the APIs used for this service.

client = session.create_client('voice-id')

These are the available methods:

can_paginate(operation_name)

Check if an operation can be paginated.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Returns
True if the operation can be paginated, False otherwise.
create_domain(**kwargs)

Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints.

See also: AWS API Documentation

Request Syntax

response = client.create_domain(
    ClientToken='string',
    Description='string',
    Name='string',
    ServerSideEncryptionConfiguration={
        'KmsKeyId': 'string'
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • ClientToken (string) --

    The idempotency token for creating a new domain. If not provided, Amazon Web Services SDK populates this field.

    This field is autopopulated if not provided.

  • Description (string) -- A brief description of this domain.
  • Name (string) --

    [REQUIRED]

    The name of the domain.

  • ServerSideEncryptionConfiguration (dict) --

    [REQUIRED]

    The configuration, containing the KMS Key Identifier, to be used by Voice ID for the server-side encryption of your data. Refer to Amazon Connect VoiceID encryption at rest for more details on how the KMS Key is used.

    • KmsKeyId (string) -- [REQUIRED]

      The identifier of the KMS Key you want Voice ID to use to encrypt your data.

  • Tags (list) --

    A list of tags you want added to the domain.

    • (dict) --

      A tag that can be assigned to a Voice ID resource.

      • Key (string) -- [REQUIRED]

        The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the key is 'Department'.

      • Value (string) -- [REQUIRED]

        The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the value is 'Sales'.

Return type

dict

Returns

Response Syntax

{
    'Domain': {
        'Arn': 'string',
        'CreatedAt': datetime(2015, 1, 1),
        'Description': 'string',
        'DomainId': 'string',
        'DomainStatus': 'ACTIVE'|'PENDING'|'SUSPENDED',
        'Name': 'string',
        'ServerSideEncryptionConfiguration': {
            'KmsKeyId': 'string'
        },
        'UpdatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • Domain (dict) --

      Information about the newly created domain.

      • Arn (string) --

        The Amazon Resource Name (ARN) for the domain.

      • CreatedAt (datetime) --

        The timestamp at which the domain is created.

      • Description (string) --

        The client-provided description of the domain.

      • DomainId (string) --

        The service-generated identifier for the domain.

      • DomainStatus (string) --

        The current status of the domain.

      • Name (string) --

        The client-provided name for the domain.

      • ServerSideEncryptionConfiguration (dict) --

        The server-side encryption configuration containing the KMS Key Identifier you want Voice ID to use to encrypt your data.

        • KmsKeyId (string) --

          The identifier of the KMS Key you want Voice ID to use to encrypt your data.

      • UpdatedAt (datetime) --

        The timestamp showing the domain's last update.

Exceptions

delete_domain(**kwargs)

Deletes the specified domain from the Amazon Connect Voice ID system.

See also: AWS API Documentation

Request Syntax

response = client.delete_domain(
    DomainId='string'
)
Parameters
DomainId (string) --

[REQUIRED]

The identifier of the domain you want to delete.

Returns
None

Exceptions

delete_fraudster(**kwargs)

Deletes the specified fraudster from the Amazon Connect Voice ID system.

See also: AWS API Documentation

Request Syntax

response = client.delete_fraudster(
    DomainId='string',
    FraudsterId='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain containing the fraudster.

  • FraudsterId (string) --

    [REQUIRED]

    The identifier of the fraudster you want to delete.

Returns

None

Exceptions

delete_speaker(**kwargs)

Deletes the specified speaker from the Amazon Connect Voice ID system.

See also: AWS API Documentation

Request Syntax

response = client.delete_speaker(
    DomainId='string',
    SpeakerId='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain containing the speaker.

  • SpeakerId (string) --

    [REQUIRED]

    The identifier of the speaker you want to delete.

Returns

None

Exceptions

describe_domain(**kwargs)

Describes the specified domain.

See also: AWS API Documentation

Request Syntax

response = client.describe_domain(
    DomainId='string'
)
Parameters
DomainId (string) --

[REQUIRED]

The identifier of the domain you are describing.

Return type
dict
Returns
Response Syntax
{
    'Domain': {
        'Arn': 'string',
        'CreatedAt': datetime(2015, 1, 1),
        'Description': 'string',
        'DomainId': 'string',
        'DomainStatus': 'ACTIVE'|'PENDING'|'SUSPENDED',
        'Name': 'string',
        'ServerSideEncryptionConfiguration': {
            'KmsKeyId': 'string'
        },
        'UpdatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --
    • Domain (dict) --

      Information about the specified domain.

      • Arn (string) --

        The Amazon Resource Name (ARN) for the domain.

      • CreatedAt (datetime) --

        The timestamp at which the domain is created.

      • Description (string) --

        The client-provided description of the domain.

      • DomainId (string) --

        The service-generated identifier for the domain.

      • DomainStatus (string) --

        The current status of the domain.

      • Name (string) --

        The client-provided name for the domain.

      • ServerSideEncryptionConfiguration (dict) --

        The server-side encryption configuration containing the KMS Key Identifier you want Voice ID to use to encrypt your data.

        • KmsKeyId (string) --

          The identifier of the KMS Key you want Voice ID to use to encrypt your data.

      • UpdatedAt (datetime) --

        The timestamp showing the domain's last update.

Exceptions

describe_fraudster(**kwargs)

Describes the specified fraudster.

See also: AWS API Documentation

Request Syntax

response = client.describe_fraudster(
    DomainId='string',
    FraudsterId='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain containing the fraudster.

  • FraudsterId (string) --

    [REQUIRED]

    The identifier of the fraudster you are describing.

Return type

dict

Returns

Response Syntax

{
    'Fraudster': {
        'CreatedAt': datetime(2015, 1, 1),
        'DomainId': 'string',
        'GeneratedFraudsterId': 'string'
    }
}

Response Structure

  • (dict) --

    • Fraudster (dict) --

      Information about the specified fraudster.

      • CreatedAt (datetime) --

        The timestamp when Voice ID identified the fraudster.

      • DomainId (string) --

        The identifier for the domain containing the fraudster.

      • GeneratedFraudsterId (string) --

        The service-generated identifier for the fraudster.

Exceptions

describe_fraudster_registration_job(**kwargs)

Describes the specified fraudster registration job.

See also: AWS API Documentation

Request Syntax

response = client.describe_fraudster_registration_job(
    DomainId='string',
    JobId='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier for the domain containing the fraudster registration job.

  • JobId (string) --

    [REQUIRED]

    The identifier for the fraudster registration job you are describing.

Return type

dict

Returns

Response Syntax

{
    'Job': {
        'CreatedAt': datetime(2015, 1, 1),
        'DataAccessRoleArn': 'string',
        'DomainId': 'string',
        'EndedAt': datetime(2015, 1, 1),
        'FailureDetails': {
            'Message': 'string',
            'StatusCode': 123
        },
        'InputDataConfig': {
            'S3Uri': 'string'
        },
        'JobId': 'string',
        'JobName': 'string',
        'JobProgress': {
            'PercentComplete': 123
        },
        'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3Uri': 'string'
        },
        'RegistrationConfig': {
            'DuplicateRegistrationAction': 'SKIP'|'REGISTER_AS_NEW',
            'FraudsterSimilarityThreshold': 123
        }
    }
}

Response Structure

  • (dict) --

    • Job (dict) --

      Contains details about the specified fraudster registration job.

      • CreatedAt (datetime) --

        A timestamp showing the creation time of the fraudster registration job.

      • DataAccessRoleArn (string) --

        The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file.

      • DomainId (string) --

        The identifier of the domain containing the fraudster registration job.

      • EndedAt (datetime) --

        A timestamp showing when the fraudster registration job ended.

      • FailureDetails (dict) --

        Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

        • Message (string) --

          A description of the error that caused the batch job failure.

        • StatusCode (integer) --

          An HTTP status code representing the nature of the error.

      • InputDataConfig (dict) --

        The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration job requests.

        • S3Uri (string) --

          The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

      • JobId (string) --

        The service-generated identifier for the fraudster registration job.

      • JobName (string) --

        The client-provied name for the fraudster registration job.

      • JobProgress (dict) --

        Shows the completed percentage of registration requests listed in the input file.

        • PercentComplete (integer) --

          Shows the completed percentage of enrollment or registration requests listed in the input file.

      • JobStatus (string) --

        The current status of the fraudster registration job.

      • OutputDataConfig (dict) --

        The output data config containing the S3 location where you want Voice ID to write your job output file; you must also include a KMS Key ID in order to encrypt the file.

        • KmsKeyId (string) --

          the identifier of the KMS key you want Voice ID to use to encrypt the output file of the fraudster registration job.

        • S3Uri (string) --

          The S3 path of the folder to which Voice ID writes the job output file, which has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

      • RegistrationConfig (dict) --

        The registration config containing details such as the action to take when a duplicate fraudster is detected, and the similarity threshold to use for detecting a duplicate fraudster.

        • DuplicateRegistrationAction (string) --

          The action to take when a fraudster is identified as a duplicate. The default action is SKIP , which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW always registers a new fraudster into the specified domain.

        • FraudsterSimilarityThreshold (integer) --

          The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.

Exceptions

describe_speaker(**kwargs)

Describes the specified speaker.

See also: AWS API Documentation

Request Syntax

response = client.describe_speaker(
    DomainId='string',
    SpeakerId='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain that contains the speaker.

  • SpeakerId (string) --

    [REQUIRED]

    The identifier of the speaker you are describing.

Return type

dict

Returns

Response Syntax

{
    'Speaker': {
        'CreatedAt': datetime(2015, 1, 1),
        'CustomerSpeakerId': 'string',
        'DomainId': 'string',
        'GeneratedSpeakerId': 'string',
        'Status': 'ENROLLED'|'EXPIRED'|'OPTED_OUT'|'PENDING',
        'UpdatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • Speaker (dict) --

      Information about the specified speaker.

      • CreatedAt (datetime) --

        A timestamp showing when the speaker is created.

      • CustomerSpeakerId (string) --

        The client-provided identifier for the speaker.

      • DomainId (string) --

        The identifier of the domain that contains the speaker.

      • GeneratedSpeakerId (string) --

        The service-generated identifier for the speaker.

      • Status (string) --

        The current status of the speaker.

      • UpdatedAt (datetime) --

        A timestamp showing the speaker's last update.

Exceptions

describe_speaker_enrollment_job(**kwargs)

Describes the specified speaker enrollment job.

See also: AWS API Documentation

Request Syntax

response = client.describe_speaker_enrollment_job(
    DomainId='string',
    JobId='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain containing the speaker enrollment job.

  • JobId (string) --

    [REQUIRED]

    The identifier of the speaker enrollment job you are describing.

Return type

dict

Returns

Response Syntax

{
    'Job': {
        'CreatedAt': datetime(2015, 1, 1),
        'DataAccessRoleArn': 'string',
        'DomainId': 'string',
        'EndedAt': datetime(2015, 1, 1),
        'EnrollmentConfig': {
            'ExistingEnrollmentAction': 'SKIP'|'OVERWRITE',
            'FraudDetectionConfig': {
                'FraudDetectionAction': 'IGNORE'|'FAIL',
                'RiskThreshold': 123
            }
        },
        'FailureDetails': {
            'Message': 'string',
            'StatusCode': 123
        },
        'InputDataConfig': {
            'S3Uri': 'string'
        },
        'JobId': 'string',
        'JobName': 'string',
        'JobProgress': {
            'PercentComplete': 123
        },
        'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3Uri': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • Job (dict) --

      Contains details about the specified speaker enrollment job.

      • CreatedAt (datetime) --

        A timestamp showing the creation of the speaker enrollment job.

      • DataAccessRoleArn (string) --

        The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file.

      • DomainId (string) --

        The identifier of the domain that contains the speaker enrollment job.

      • EndedAt (datetime) --

        A timestamp showing when the speaker enrollment job ended.

      • EnrollmentConfig (dict) --

        The configuration that defines the action to take when the speaker is already enrolled in Voice ID, and the FraudDetectionConfig to use.

        • ExistingEnrollmentAction (string) --

          The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP , which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.

        • FraudDetectionConfig (dict) --

          The fraud detection configuration to use for the speaker enrollment job.

          • FraudDetectionAction (string) --

            The action to take when the given speaker is flagged by the fraud detection system. The default value is FAIL , which fails the speaker enrollment. Changing this value to IGNORE results in the speaker being enrolled even if they are flagged by the fraud detection system.

          • RiskThreshold (integer) --

            Threshold value for determining whether the speaker is a high risk to be fraudulent. If the detected risk score calculated by Voice ID is greater than or equal to the threshold, the speaker is considered a fraudster.

      • FailureDetails (dict) --

        Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

        • Message (string) --

          A description of the error that caused the batch job failure.

        • StatusCode (integer) --

          An HTTP status code representing the nature of the error.

      • InputDataConfig (dict) --

        The input data config containing an S3 URI for the input manifest file that contains the list of speaker enrollment job requests.

        • S3Uri (string) --

          The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

      • JobId (string) --

        The service-generated identifier for the speaker enrollment job.

      • JobName (string) --

        The client-provided name for the speaker enrollment job.

      • JobProgress (dict) --

        Provides details on job progress. This field shows the completed percentage of registration requests listed in the input file.

        • PercentComplete (integer) --

          Shows the completed percentage of enrollment or registration requests listed in the input file.

      • JobStatus (string) --

        The current status of the speaker enrollment job.

      • OutputDataConfig (dict) --

        The output data config containing the S3 location where Voice ID writes the job output file; you must also include a KMS Key ID to encrypt the file.

        • KmsKeyId (string) --

          the identifier of the KMS key you want Voice ID to use to encrypt the output file of the fraudster registration job.

        • S3Uri (string) --

          The S3 path of the folder to which Voice ID writes the job output file, which has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

Exceptions

evaluate_session(**kwargs)

Evaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.

See also: AWS API Documentation

Request Syntax

response = client.evaluate_session(
    DomainId='string',
    SessionNameOrId='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain where the session started.

  • SessionNameOrId (string) --

    [REQUIRED]

    The session identifier, or name of the session, that you want to evaluate. In Voice ID integration, this is the Contact-Id.

Return type

dict

Returns

Response Syntax

{
    'AuthenticationResult': {
        'AudioAggregationEndedAt': datetime(2015, 1, 1),
        'AudioAggregationStartedAt': datetime(2015, 1, 1),
        'AuthenticationResultId': 'string',
        'Configuration': {
            'AcceptanceThreshold': 123
        },
        'CustomerSpeakerId': 'string',
        'Decision': 'ACCEPT'|'REJECT'|'NOT_ENOUGH_SPEECH'|'SPEAKER_NOT_ENROLLED'|'SPEAKER_OPTED_OUT'|'SPEAKER_ID_NOT_PROVIDED',
        'GeneratedSpeakerId': 'string',
        'Score': 123
    },
    'DomainId': 'string',
    'FraudDetectionResult': {
        'AudioAggregationEndedAt': datetime(2015, 1, 1),
        'AudioAggregationStartedAt': datetime(2015, 1, 1),
        'Configuration': {
            'RiskThreshold': 123
        },
        'Decision': 'HIGH_RISK'|'LOW_RISK'|'NOT_ENOUGH_SPEECH',
        'FraudDetectionResultId': 'string',
        'Reasons': [
            'KNOWN_FRAUDSTER',
        ],
        'RiskDetails': {
            'KnownFraudsterRisk': {
                'GeneratedFraudsterId': 'string',
                'RiskScore': 123
            }
        }
    },
    'SessionId': 'string',
    'SessionName': 'string',
    'StreamingStatus': 'PENDING_CONFIGURATION'|'ONGOING'|'ENDED'
}

Response Structure

  • (dict) --

    • AuthenticationResult (dict) --

      Details resulting from the authentication process, such as authentication decision and authentication score.

      • AudioAggregationEndedAt (datetime) --

        A timestamp indicating when audio aggregation ended for this authentication result.

      • AudioAggregationStartedAt (datetime) --

        A timestamp indicating when audio aggregation started for this authentication result.

      • AuthenticationResultId (string) --

        The unique identifier for this authentication result. Because there can be multiple authentications for a given session, this field helps to identify if the returned result is from a previous streaming activity or a new result. Note that in absence of any new streaming activity, AcceptanceThreshold changes, or SpeakerId changes, Voice ID always returns cached Authentication Result for this API.

      • Configuration (dict) --

        The AuthenticationConfiguration used to generate this authentication result.

        • AcceptanceThreshold (integer) --

          The minimum threshold needed to successfully authenticate a speaker.

      • CustomerSpeakerId (string) --

        The client-provided identifier for the speaker whose authentication result is produced. Only present if a SpeakerId is provided for the session.

      • Decision (string) --

        The authentication decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.

      • GeneratedSpeakerId (string) --

        The service-generated identifier for the speaker whose authentication result is produced.

      • Score (integer) --

        The authentication score for the speaker whose authentication result is produced. This value is only present if the authentication decision is either ACCEPT or REJECT .

    • DomainId (string) --

      The identifier of the domain containing the session.

    • FraudDetectionResult (dict) --

      Details resulting from the fraud detection process, such as fraud detection decision and risk score.

      • AudioAggregationEndedAt (datetime) --

        A timestamp indicating when audio aggregation ended for this fraud detection result.

      • AudioAggregationStartedAt (datetime) --

        A timestamp indicating when audio aggregation started for this fraud detection result.

      • Configuration (dict) --

        The FraudDetectionConfiguration used to generate this fraud detection result.

        • RiskThreshold (integer) --

          Threshold value for determining whether the speaker is a fraudster. If the detected risk score calculated by Voice ID is higher than the threshold, the speaker is considered a fraudster.

      • Decision (string) --

        The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.

      • FraudDetectionResultId (string) --

        The unique identifier for this fraud detection result. Given there can be multiple fraud detections for a given session, this field helps in identifying if the returned result is from previous streaming activity or a new result. Note that in the absence of any new streaming activity or risk threshold changes, Voice ID always returns cached Fraud Detection result for this API.

      • Reasons (list) --

        The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is HIGH_RISK , and only has one possible value: KNOWN_FRAUDSTER .

        • (string) --
      • RiskDetails (dict) --

        Details about each risk analyzed for this speaker.

        • KnownFraudsterRisk (dict) --

          The details resulting from 'Known Fraudster Risk' analysis of the speaker.

          • GeneratedFraudsterId (string) --

            The identifier of the fraudster that is the closest match to the speaker. If there are no fraudsters registered in a given domain, or if there are no fraudsters with a non-zero RiskScore, this value is null .

          • RiskScore (integer) --

            The score indicating the likelihood the speaker is a known fraudster.

    • SessionId (string) --

      The service-generated identifier of the session.

    • SessionName (string) --

      The client-provided name of the session.

    • StreamingStatus (string) --

      The current status of audio streaming for this session. This field is useful to infer next steps when the Authentication or Fraud Detection results are empty or the decision is NOT_ENOUGH_SPEECH . In this situation, if the StreamingStatus is ONGOING/PENDING_CONFIGURATION , it can mean that the client should call the API again later, once Voice ID has enough audio to produce a result. If the decision remains NOT_ENOUGH_SPEECH even after StreamingStatus is ENDED , it means that the previously streamed session did not have enough speech to perform evaluation, and a new streaming session is needed to try again.

Exceptions

get_paginator(operation_name)

Create a paginator for an operation.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Raises OperationNotPageableError
Raised if the operation is not pageable. You can use the client.can_paginate method to check if an operation is pageable.
Return type
L{botocore.paginate.Paginator}
Returns
A paginator object.
get_waiter(waiter_name)

Returns an object that can wait for some condition.

Parameters
waiter_name (str) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters.
Returns
The specified waiter object.
Return type
botocore.waiter.Waiter
list_domains(**kwargs)

Lists all the domains in the Amazon Web Services account.

See also: AWS API Documentation

Request Syntax

response = client.list_domains(
    MaxResults=123,
    NextToken='string'
)
Parameters
  • MaxResults (integer) -- The maximum number of results that are returned per call. You can use NextToken to obtain further pages of results. The default is 100; the maximum allowed page size is also 100.
  • NextToken (string) -- If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
Return type

dict

Returns

Response Syntax

{
    'DomainSummaries': [
        {
            'Arn': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'Description': 'string',
            'DomainId': 'string',
            'DomainStatus': 'ACTIVE'|'PENDING'|'SUSPENDED',
            'Name': 'string',
            'ServerSideEncryptionConfiguration': {
                'KmsKeyId': 'string'
            },
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DomainSummaries (list) --

      A list containing details about each domain in the Amazon Web Services account.

      • (dict) --

        Contains a summary of information about a domain.

        • Arn (string) --

          The Amazon Resource Name (ARN) for the domain.

        • CreatedAt (datetime) --

          The timestamp showing when the domain is created.

        • Description (string) --

          The client-provided description of the domain.

        • DomainId (string) --

          The service-generated identifier for the domain.

        • DomainStatus (string) --

          The current status of the domain.

        • Name (string) --

          The client-provided name for the domain.

        • ServerSideEncryptionConfiguration (dict) --

          The server-side encryption configuration containing the KMS Key Identifier you want Voice ID to use to encrypt your data..

          • KmsKeyId (string) --

            The identifier of the KMS Key you want Voice ID to use to encrypt your data.

        • UpdatedAt (datetime) --

          The timestamp showing the domain's last update.

    • NextToken (string) --

      If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.

Exceptions

list_fraudster_registration_jobs(**kwargs)

Lists all the fraudster registration jobs in the domain with the given JobStatus . If JobStatus is not provided, this lists all fraudster registration jobs in the given domain.

See also: AWS API Documentation

Request Syntax

response = client.list_fraudster_registration_jobs(
    DomainId='string',
    JobStatus='SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain containing the fraudster registration Jobs.

  • JobStatus (string) -- Provides the status of your fraudster registration job.
  • MaxResults (integer) -- The maximum number of results that are returned per call. You can use NextToken to obtain further pages of results. The default is 100; the maximum allowed page size is also 100.
  • NextToken (string) -- If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
Return type

dict

Returns

Response Syntax

{
    'JobSummaries': [
        {
            'CreatedAt': datetime(2015, 1, 1),
            'DomainId': 'string',
            'EndedAt': datetime(2015, 1, 1),
            'FailureDetails': {
                'Message': 'string',
                'StatusCode': 123
            },
            'JobId': 'string',
            'JobName': 'string',
            'JobProgress': {
                'PercentComplete': 123
            },
            'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • JobSummaries (list) --

      A list containing details about each specified fraudster registration job.

      • (dict) --

        Contains a summary of information about a fraudster registration job.

        • CreatedAt (datetime) --

          A timestamp showing when the fraudster registration job is created.

        • DomainId (string) --

          The identifier of the domain containing the fraudster registration job.

        • EndedAt (datetime) --

          A timestamp showing when the fraudster registration job ended.

        • FailureDetails (dict) --

          Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

          • Message (string) --

            A description of the error that caused the batch job failure.

          • StatusCode (integer) --

            An HTTP status code representing the nature of the error.

        • JobId (string) --

          The service-generated identifier for the fraudster registration job.

        • JobName (string) --

          The client-provied name for the fraudster registration job.

        • JobProgress (dict) --

          Shows the completed percentage of registration requests listed in the input file.

          • PercentComplete (integer) --

            Shows the completed percentage of enrollment or registration requests listed in the input file.

        • JobStatus (string) --

          The current status of the fraudster registration job.

    • NextToken (string) --

      If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.

Exceptions

list_speaker_enrollment_jobs(**kwargs)

Lists all the speaker enrollment jobs in the domain with the specified JobStatus . If JobStatus is not provided, this lists all jobs with all possible speaker enrollment job statuses.

See also: AWS API Documentation

Request Syntax

response = client.list_speaker_enrollment_jobs(
    DomainId='string',
    JobStatus='SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain containing the speaker enrollment jobs.

  • JobStatus (string) -- Provides the status of your speaker enrollment Job.
  • MaxResults (integer) -- The maximum number of results that are returned per call. You can use NextToken to obtain further pages of results. The default is 100; the maximum allowed page size is also 100.
  • NextToken (string) -- If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
Return type

dict

Returns

Response Syntax

{
    'JobSummaries': [
        {
            'CreatedAt': datetime(2015, 1, 1),
            'DomainId': 'string',
            'EndedAt': datetime(2015, 1, 1),
            'FailureDetails': {
                'Message': 'string',
                'StatusCode': 123
            },
            'JobId': 'string',
            'JobName': 'string',
            'JobProgress': {
                'PercentComplete': 123
            },
            'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • JobSummaries (list) --

      A list containing details about each specified speaker enrollment job.

      • (dict) --

        Contains a summary of information about a speaker enrollment job.

        • CreatedAt (datetime) --

          A timestamp showing the creation time of the speaker enrollment job.

        • DomainId (string) --

          The identifier of the domain that contains the speaker enrollment job.

        • EndedAt (datetime) --

          A timestamp showing when the speaker enrollment job ended.

        • FailureDetails (dict) --

          Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

          • Message (string) --

            A description of the error that caused the batch job failure.

          • StatusCode (integer) --

            An HTTP status code representing the nature of the error.

        • JobId (string) --

          The service-generated identifier for the speaker enrollment job.

        • JobName (string) --

          The client-provided name for the speaker enrollment job.

        • JobProgress (dict) --

          Provides details regarding job progress. This field shows the completed percentage of enrollment requests listed in the input file.

          • PercentComplete (integer) --

            Shows the completed percentage of enrollment or registration requests listed in the input file.

        • JobStatus (string) --

          The current status of the speaker enrollment job.

    • NextToken (string) --

      If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.

Exceptions

list_speakers(**kwargs)

Lists all speakers in a specified domain.

See also: AWS API Documentation

Request Syntax

response = client.list_speakers(
    DomainId='string',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain.

  • MaxResults (integer) -- The maximum number of results that are returned per call. You can use NextToken to obtain further pages of results. The default is 100; the maximum allowed page size is also 100.
  • NextToken (string) -- If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
Return type

dict

Returns

Response Syntax

{
    'NextToken': 'string',
    'SpeakerSummaries': [
        {
            'CreatedAt': datetime(2015, 1, 1),
            'CustomerSpeakerId': 'string',
            'DomainId': 'string',
            'GeneratedSpeakerId': 'string',
            'Status': 'ENROLLED'|'EXPIRED'|'OPTED_OUT'|'PENDING',
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) --

    • NextToken (string) --

      If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.

    • SpeakerSummaries (list) --

      A list containing details about each speaker in the Amazon Web Services account.

      • (dict) --

        Contains a summary of information about a speaker.

        • CreatedAt (datetime) --

          A timestamp showing the speaker's creation time.

        • CustomerSpeakerId (string) --

          The client-provided identifier for the speaker.

        • DomainId (string) --

          The identifier of the domain that contains the speaker.

        • GeneratedSpeakerId (string) --

          The service-generated identifier for the speaker.

        • Status (string) --

          The current status of the speaker.

        • UpdatedAt (datetime) --

          A timestamp showing the speaker's last update.

Exceptions

list_tags_for_resource(**kwargs)

Lists all tags associated with a specified Voice ID resource.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    ResourceArn='string'
)
Parameters
ResourceArn (string) --

[REQUIRED]

The Amazon Resource Name (ARN) of the Voice ID resource for which you want to list the tags.

Return type
dict
Returns
Response Syntax
{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --
    • Tags (list) --

      The list of tags associated with the specified resource.

      • (dict) --

        A tag that can be assigned to a Voice ID resource.

        • Key (string) --

          The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the key is 'Department'.

        • Value (string) --

          The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the value is 'Sales'.

Exceptions

opt_out_speaker(**kwargs)

Opts out a speaker from Voice ID system. A speaker can be opted out regardless of whether or not they already exist in the system. If they don't yet exist, a new speaker is created in an opted out state. If they already exist, their existing status is overridden and they are opted out. Enrollment and evaluation authentication requests are rejected for opted out speakers, and opted out speakers have no voice embeddings stored in the system.

See also: AWS API Documentation

Request Syntax

response = client.opt_out_speaker(
    DomainId='string',
    SpeakerId='string'
)
Parameters
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain containing the speaker.

  • SpeakerId (string) --

    [REQUIRED]

    The identifier of the speaker you want opted-out.

Return type

dict

Returns

Response Syntax

{
    'Speaker': {
        'CreatedAt': datetime(2015, 1, 1),
        'CustomerSpeakerId': 'string',
        'DomainId': 'string',
        'GeneratedSpeakerId': 'string',
        'Status': 'ENROLLED'|'EXPIRED'|'OPTED_OUT'|'PENDING',
        'UpdatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • Speaker (dict) --

      Details about the opted-out speaker.

      • CreatedAt (datetime) --

        A timestamp showing when the speaker is created.

      • CustomerSpeakerId (string) --

        The client-provided identifier for the speaker.

      • DomainId (string) --

        The identifier of the domain that contains the speaker.

      • GeneratedSpeakerId (string) --

        The service-generated identifier for the speaker.

      • Status (string) --

        The current status of the speaker.

      • UpdatedAt (datetime) --

        A timestamp showing the speaker's last update.

Exceptions

start_fraudster_registration_job(**kwargs)

Starts a new batch fraudster registration job using provided details.

See also: AWS API Documentation

Request Syntax

response = client.start_fraudster_registration_job(
    ClientToken='string',
    DataAccessRoleArn='string',
    DomainId='string',
    InputDataConfig={
        'S3Uri': 'string'
    },
    JobName='string',
    OutputDataConfig={
        'KmsKeyId': 'string',
        'S3Uri': 'string'
    },
    RegistrationConfig={
        'DuplicateRegistrationAction': 'SKIP'|'REGISTER_AS_NEW',
        'FraudsterSimilarityThreshold': 123
    }
)
Parameters
  • ClientToken (string) --

    The idempotency token for starting a new fraudster registration job. If not provided, Amazon Web Services SDK populates this field.

    This field is autopopulated if not provided.

  • DataAccessRoleArn (string) --

    [REQUIRED]

    The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the Job output file. Refer to the Create and edit a fraudster watchlist documentation for the permissions needed in this role.

  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain containing the fraudster registration job and in which the fraudsters are registered.

  • InputDataConfig (dict) --

    [REQUIRED]

    The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration requests.

    • S3Uri (string) -- [REQUIRED]

      The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

  • JobName (string) -- The name of the new fraudster registration job.
  • OutputDataConfig (dict) --

    [REQUIRED]

    The output data config containing the S3 location where Voice ID writes the job output file; you must also include a KMS Key ID to encrypt the file.

    • KmsKeyId (string) --

      the identifier of the KMS key you want Voice ID to use to encrypt the output file of the fraudster registration job.

    • S3Uri (string) -- [REQUIRED]

      The S3 path of the folder to which Voice ID writes the job output file, which has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

  • RegistrationConfig (dict) --

    The registration config containing details such as the action to take when a duplicate fraudster is detected, and the similarity threshold to use for detecting a duplicate fraudster.

    • DuplicateRegistrationAction (string) --

      The action to take when a fraudster is identified as a duplicate. The default action is SKIP , which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW always registers a new fraudster into the specified domain.

    • FraudsterSimilarityThreshold (integer) --

      The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.

Return type

dict

Returns

Response Syntax

{
    'Job': {
        'CreatedAt': datetime(2015, 1, 1),
        'DataAccessRoleArn': 'string',
        'DomainId': 'string',
        'EndedAt': datetime(2015, 1, 1),
        'FailureDetails': {
            'Message': 'string',
            'StatusCode': 123
        },
        'InputDataConfig': {
            'S3Uri': 'string'
        },
        'JobId': 'string',
        'JobName': 'string',
        'JobProgress': {
            'PercentComplete': 123
        },
        'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3Uri': 'string'
        },
        'RegistrationConfig': {
            'DuplicateRegistrationAction': 'SKIP'|'REGISTER_AS_NEW',
            'FraudsterSimilarityThreshold': 123
        }
    }
}

Response Structure

  • (dict) --

    • Job (dict) --

      Details about the started fraudster registration job.

      • CreatedAt (datetime) --

        A timestamp showing the creation time of the fraudster registration job.

      • DataAccessRoleArn (string) --

        The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file.

      • DomainId (string) --

        The identifier of the domain containing the fraudster registration job.

      • EndedAt (datetime) --

        A timestamp showing when the fraudster registration job ended.

      • FailureDetails (dict) --

        Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

        • Message (string) --

          A description of the error that caused the batch job failure.

        • StatusCode (integer) --

          An HTTP status code representing the nature of the error.

      • InputDataConfig (dict) --

        The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration job requests.

        • S3Uri (string) --

          The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

      • JobId (string) --

        The service-generated identifier for the fraudster registration job.

      • JobName (string) --

        The client-provied name for the fraudster registration job.

      • JobProgress (dict) --

        Shows the completed percentage of registration requests listed in the input file.

        • PercentComplete (integer) --

          Shows the completed percentage of enrollment or registration requests listed in the input file.

      • JobStatus (string) --

        The current status of the fraudster registration job.

      • OutputDataConfig (dict) --

        The output data config containing the S3 location where you want Voice ID to write your job output file; you must also include a KMS Key ID in order to encrypt the file.

        • KmsKeyId (string) --

          the identifier of the KMS key you want Voice ID to use to encrypt the output file of the fraudster registration job.

        • S3Uri (string) --

          The S3 path of the folder to which Voice ID writes the job output file, which has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

      • RegistrationConfig (dict) --

        The registration config containing details such as the action to take when a duplicate fraudster is detected, and the similarity threshold to use for detecting a duplicate fraudster.

        • DuplicateRegistrationAction (string) --

          The action to take when a fraudster is identified as a duplicate. The default action is SKIP , which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW always registers a new fraudster into the specified domain.

        • FraudsterSimilarityThreshold (integer) --

          The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.

Exceptions

start_speaker_enrollment_job(**kwargs)

Starts a new batch speaker enrollment job using specified details.

See also: AWS API Documentation

Request Syntax

response = client.start_speaker_enrollment_job(
    ClientToken='string',
    DataAccessRoleArn='string',
    DomainId='string',
    EnrollmentConfig={
        'ExistingEnrollmentAction': 'SKIP'|'OVERWRITE',
        'FraudDetectionConfig': {
            'FraudDetectionAction': 'IGNORE'|'FAIL',
            'RiskThreshold': 123
        }
    },
    InputDataConfig={
        'S3Uri': 'string'
    },
    JobName='string',
    OutputDataConfig={
        'KmsKeyId': 'string',
        'S3Uri': 'string'
    }
)
Parameters
  • ClientToken (string) --

    The idempotency token for starting a new speaker enrollment Job. If not provided, Amazon Web Services SDK populates this field.

    This field is autopopulated if not provided.

  • DataAccessRoleArn (string) --

    [REQUIRED]

    The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file. Refer to Batch enrollment using audio data from prior calls documentation for the permissions needed in this role.

  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain that contains the speaker enrollment job and in which the speakers are enrolled.

  • EnrollmentConfig (dict) --

    The enrollment config that contains details such as the action to take when a speaker is already enrolled in the Voice ID system or when a speaker is identified as a fraudster.

    • ExistingEnrollmentAction (string) --

      The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP , which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.

    • FraudDetectionConfig (dict) --

      The fraud detection configuration to use for the speaker enrollment job.

      • FraudDetectionAction (string) --

        The action to take when the given speaker is flagged by the fraud detection system. The default value is FAIL , which fails the speaker enrollment. Changing this value to IGNORE results in the speaker being enrolled even if they are flagged by the fraud detection system.

      • RiskThreshold (integer) --

        Threshold value for determining whether the speaker is a high risk to be fraudulent. If the detected risk score calculated by Voice ID is greater than or equal to the threshold, the speaker is considered a fraudster.

  • InputDataConfig (dict) --

    [REQUIRED]

    The input data config containing the S3 location for the input manifest file that contains the list of speaker enrollment requests.

    • S3Uri (string) -- [REQUIRED]

      The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

  • JobName (string) -- A name for your speaker enrollment job.
  • OutputDataConfig (dict) --

    [REQUIRED]

    The output data config containing the S3 location where Voice ID writes the job output file; you must also include a KMS Key ID to encrypt the file.

    • KmsKeyId (string) --

      the identifier of the KMS key you want Voice ID to use to encrypt the output file of the fraudster registration job.

    • S3Uri (string) -- [REQUIRED]

      The S3 path of the folder to which Voice ID writes the job output file, which has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

Return type

dict

Returns

Response Syntax

{
    'Job': {
        'CreatedAt': datetime(2015, 1, 1),
        'DataAccessRoleArn': 'string',
        'DomainId': 'string',
        'EndedAt': datetime(2015, 1, 1),
        'EnrollmentConfig': {
            'ExistingEnrollmentAction': 'SKIP'|'OVERWRITE',
            'FraudDetectionConfig': {
                'FraudDetectionAction': 'IGNORE'|'FAIL',
                'RiskThreshold': 123
            }
        },
        'FailureDetails': {
            'Message': 'string',
            'StatusCode': 123
        },
        'InputDataConfig': {
            'S3Uri': 'string'
        },
        'JobId': 'string',
        'JobName': 'string',
        'JobProgress': {
            'PercentComplete': 123
        },
        'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'FAILED',
        'OutputDataConfig': {
            'KmsKeyId': 'string',
            'S3Uri': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • Job (dict) --

      Details about the started speaker enrollment job.

      • CreatedAt (datetime) --

        A timestamp showing the creation of the speaker enrollment job.

      • DataAccessRoleArn (string) --

        The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file.

      • DomainId (string) --

        The identifier of the domain that contains the speaker enrollment job.

      • EndedAt (datetime) --

        A timestamp showing when the speaker enrollment job ended.

      • EnrollmentConfig (dict) --

        The configuration that defines the action to take when the speaker is already enrolled in Voice ID, and the FraudDetectionConfig to use.

        • ExistingEnrollmentAction (string) --

          The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP , which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio.

        • FraudDetectionConfig (dict) --

          The fraud detection configuration to use for the speaker enrollment job.

          • FraudDetectionAction (string) --

            The action to take when the given speaker is flagged by the fraud detection system. The default value is FAIL , which fails the speaker enrollment. Changing this value to IGNORE results in the speaker being enrolled even if they are flagged by the fraud detection system.

          • RiskThreshold (integer) --

            Threshold value for determining whether the speaker is a high risk to be fraudulent. If the detected risk score calculated by Voice ID is greater than or equal to the threshold, the speaker is considered a fraudster.

      • FailureDetails (dict) --

        Contains details that are populated when an entire batch job fails. In cases of individual registration job failures, the batch job as a whole doesn't fail; it is completed with a JobStatus of COMPLETED_WITH_ERRORS . You can use the job output file to identify the individual registration requests that failed.

        • Message (string) --

          A description of the error that caused the batch job failure.

        • StatusCode (integer) --

          An HTTP status code representing the nature of the error.

      • InputDataConfig (dict) --

        The input data config containing an S3 URI for the input manifest file that contains the list of speaker enrollment job requests.

        • S3Uri (string) --

          The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests.

      • JobId (string) --

        The service-generated identifier for the speaker enrollment job.

      • JobName (string) --

        The client-provided name for the speaker enrollment job.

      • JobProgress (dict) --

        Provides details on job progress. This field shows the completed percentage of registration requests listed in the input file.

        • PercentComplete (integer) --

          Shows the completed percentage of enrollment or registration requests listed in the input file.

      • JobStatus (string) --

        The current status of the speaker enrollment job.

      • OutputDataConfig (dict) --

        The output data config containing the S3 location where Voice ID writes the job output file; you must also include a KMS Key ID to encrypt the file.

        • KmsKeyId (string) --

          the identifier of the KMS key you want Voice ID to use to encrypt the output file of the fraudster registration job.

        • S3Uri (string) --

          The S3 path of the folder to which Voice ID writes the job output file, which has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder , the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out .

Exceptions

tag_resource(**kwargs)

Tags an Amazon Connect Voice ID resource with the provided list of tags.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • ResourceArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the Voice ID resource you want to tag.

  • Tags (list) --

    [REQUIRED]

    The list of tags to assign to the specified resource.

    • (dict) --

      A tag that can be assigned to a Voice ID resource.

      • Key (string) -- [REQUIRED]

        The first part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the key is 'Department'.

      • Value (string) -- [REQUIRED]

        The second part of a key:value pair that forms a tag associated with a given resource. For example, in the tag ‘Department’:’Sales’, the value is 'Sales'.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

untag_resource(**kwargs)

Removes specified tags from a specified Amazon Connect Voice ID resource.

See also: AWS API Documentation

Request Syntax

response = client.untag_resource(
    ResourceArn='string',
    TagKeys=[
        'string',
    ]
)
Parameters
  • ResourceArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the Voice ID resource you want to remove tags from.

  • TagKeys (list) --

    [REQUIRED]

    The list of tag keys you want to remove from the specified resource.

    • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

update_domain(**kwargs)

Updates the specified domain. This API has clobber behavior, and clears and replaces all attributes. If an optional field, such as 'Description' is not provided, it is removed from the domain.

See also: AWS API Documentation

Request Syntax

response = client.update_domain(
    Description='string',
    DomainId='string',
    Name='string',
    ServerSideEncryptionConfiguration={
        'KmsKeyId': 'string'
    }
)
Parameters
  • Description (string) -- A brief description about this domain.
  • DomainId (string) --

    [REQUIRED]

    The identifier of the domain to be updated.

  • Name (string) --

    [REQUIRED]

    The name of the domain.

  • ServerSideEncryptionConfiguration (dict) --

    [REQUIRED]

    The configuration, containing the KMS Key Identifier, to be used by Voice ID for the server-side encryption of your data. Note that all the existing data in the domain are still encrypted using the existing key, only the data added to domain after updating the key is encrypted using the new key.

    • KmsKeyId (string) -- [REQUIRED]

      The identifier of the KMS Key you want Voice ID to use to encrypt your data.

Return type

dict

Returns

Response Syntax

{
    'Domain': {
        'Arn': 'string',
        'CreatedAt': datetime(2015, 1, 1),
        'Description': 'string',
        'DomainId': 'string',
        'DomainStatus': 'ACTIVE'|'PENDING'|'SUSPENDED',
        'Name': 'string',
        'ServerSideEncryptionConfiguration': {
            'KmsKeyId': 'string'
        },
        'UpdatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • Domain (dict) --

      Details about the updated domain

      • Arn (string) --

        The Amazon Resource Name (ARN) for the domain.

      • CreatedAt (datetime) --

        The timestamp at which the domain is created.

      • Description (string) --

        The client-provided description of the domain.

      • DomainId (string) --

        The service-generated identifier for the domain.

      • DomainStatus (string) --

        The current status of the domain.

      • Name (string) --

        The client-provided name for the domain.

      • ServerSideEncryptionConfiguration (dict) --

        The server-side encryption configuration containing the KMS Key Identifier you want Voice ID to use to encrypt your data.

        • KmsKeyId (string) --

          The identifier of the KMS Key you want Voice ID to use to encrypt your data.

      • UpdatedAt (datetime) --

        The timestamp showing the domain's last update.

Exceptions

Client Exceptions

Client exceptions are available on a client instance via the exceptions property. For more detailed instructions and examples on the exact usage of client exceptions, see the error handling user guide.

The available client exceptions are:

class VoiceID.Client.exceptions.AccessDeniedException

You do not have sufficient permissions to perform this action. Check the error message and try again.

Example

try:
  ...
except client.exceptions.AccessDeniedException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    You do not have sufficient permissions to perform this action. Check the error message and try again.

    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class VoiceID.Client.exceptions.ConflictException

The request failed due to a conflict. Check the ConflictType and error message for more details.

Example

try:
  ...
except client.exceptions.ConflictException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'ConflictType': 'ANOTHER_ACTIVE_STREAM'|'DOMAIN_NOT_ACTIVE'|'CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT'|'ENROLLMENT_ALREADY_EXISTS'|'SPEAKER_NOT_SET'|'SPEAKER_OPTED_OUT'|'CONCURRENT_CHANGES',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The request failed due to a conflict. Check the ConflictType and error message for more details.

    • ConflictType (string) --

      The type of conflict which caused a ConflictException. Possible types and the corresponding error messages are as follows:

      • DOMAIN_NOT_ACTIVE : The domain is not active.
      • CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT : You cannot change the speaker ID after an enrollment has been requested.
      • ENROLLMENT_ALREADY_EXISTS : There is already an enrollment for this session.
      • SPEAKER_NOT_SET : You must set the speaker ID before requesting an enrollment.
      • SPEAKER_OPTED_OUT : You cannot request an enrollment for an opted out speaker.
      • CONCURRENT_CHANGES : The request could not be processed as the resource was modified by another request during execution.
    • Message (string) --

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class VoiceID.Client.exceptions.InternalServerException

The request failed due to an unknown error on the server side.

Example

try:
  ...
except client.exceptions.InternalServerException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The request failed due to an unknown error on the server side.

    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class VoiceID.Client.exceptions.ResourceNotFoundException

The specified resource cannot be found. Check the ResourceType and error message for more details.

Example

try:
  ...
except client.exceptions.ResourceNotFoundException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'ResourceType': 'BATCH_JOB'|'COMPLIANCE_CONSENT'|'DOMAIN'|'FRAUDSTER'|'SESSION'|'SPEAKER',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The specified resource cannot be found. Check the ResourceType and error message for more details.

    • Message (string) --

    • ResourceType (string) --

      The type of resource which cannot not be found. Possible types are BATCH_JOB , COMPLIANCE_CONSENT , DOMAIN , FRAUDSTER , SESSION and SPEAKER .

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class VoiceID.Client.exceptions.ServiceQuotaExceededException

The request exceeded the service quota. Refer to Voice ID Service Quotas and try your request again.

Example

try:
  ...
except client.exceptions.ServiceQuotaExceededException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The request exceeded the service quota. Refer to Voice ID Service Quotas and try your request again.

    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class VoiceID.Client.exceptions.ThrottlingException

The request was denied due to request throttling. Please slow down your request rate. Refer to Amazon Connect Voice ID Service API throttling quotas and try your request again.

Example

try:
  ...
except client.exceptions.ThrottlingException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The request was denied due to request throttling. Please slow down your request rate. Refer to Amazon Connect Voice ID Service API throttling quotas and try your request again.

    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class VoiceID.Client.exceptions.ValidationException

The request failed one or more validations; check the error message for more details.

Example

try:
  ...
except client.exceptions.ValidationException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The request failed one or more validations; check the error message for more details.

    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.

Paginators

The available paginators are: