Amazon Voice ID

2021/09/27 - Amazon Voice ID - 21 new api methods

Changes  Released the Amazon Voice ID SDK, for usage with the Amazon Connect Voice ID feature released for Amazon Connect.

DeleteDomain (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.delete_domain(
    DomainId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain you want to delete.

returns

None

StartSpeakerEnrollmentJob (new) Link ¶

Starts a new batch speaker enrollment job using specified details.

See also: AWS API Documentation

Request Syntax

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'
    }
)
type ClientToken

string

param ClientToken

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.

type DataAccessRoleArn

string

param DataAccessRoleArn

[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.

type DomainId

string

param DomainId

[REQUIRED]

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

type EnrollmentConfig

dict

param EnrollmentConfig

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.

type InputDataConfig

dict

param InputDataConfig

[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.

type JobName

string

param JobName

A name for your speaker enrollment job.

type OutputDataConfig

dict

param OutputDataConfig

[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 .

rtype

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 .

OptOutSpeaker (new) Link ¶

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

client.opt_out_speaker(
    DomainId='string',
    SpeakerId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain containing the speaker.

type SpeakerId

string

param SpeakerId

[REQUIRED]

The identifier of the speaker you want opted-out.

rtype

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.

StartFraudsterRegistrationJob (new) Link ¶

Starts a new batch fraudster registration job using provided details.

See also: AWS API Documentation

Request Syntax

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
    }
)
type ClientToken

string

param ClientToken

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.

type DataAccessRoleArn

string

param DataAccessRoleArn

[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.

type DomainId

string

param DomainId

[REQUIRED]

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

type InputDataConfig

dict

param InputDataConfig

[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.

type JobName

string

param JobName

The name of the new fraudster registration job.

type OutputDataConfig

dict

param OutputDataConfig

[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 .

type RegistrationConfig

dict

param RegistrationConfig

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.

rtype

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.

ListFraudsterRegistrationJobs (new) Link ¶

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

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

string

param DomainId

[REQUIRED]

The identifier of the domain containing the fraudster registration Jobs.

type JobStatus

string

param JobStatus

Provides the status of your fraudster registration job.

type MaxResults

integer

param MaxResults

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.

type NextToken

string

param NextToken

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.

rtype

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.

UntagResource (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    ResourceArn='string',
    TagKeys=[
        'string',
    ]
)
type ResourceArn

string

param ResourceArn

[REQUIRED]

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

type TagKeys

list

param TagKeys

[REQUIRED]

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

  • (string) --

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

DeleteSpeaker (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.delete_speaker(
    DomainId='string',
    SpeakerId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain containing the speaker.

type SpeakerId

string

param SpeakerId

[REQUIRED]

The identifier of the speaker you want to delete.

returns

None

ListDomains (new) Link ¶

Lists all the domains in the Amazon Web Services account.

See also: AWS API Documentation

Request Syntax

client.list_domains(
    MaxResults=123,
    NextToken='string'
)
type MaxResults

integer

param MaxResults

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.

type NextToken

string

param NextToken

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.

rtype

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.

DescribeFraudsterRegistrationJob (new) Link ¶

Describes the specified fraudster registration job.

See also: AWS API Documentation

Request Syntax

client.describe_fraudster_registration_job(
    DomainId='string',
    JobId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier for the domain containing the fraudster registration job.

type JobId

string

param JobId

[REQUIRED]

The identifier for the fraudster registration job you are describing.

rtype

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.

CreateDomain (new) Link ¶

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

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

string

param ClientToken

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.

type Description

string

param Description

A brief description of this domain.

type Name

string

param Name

[REQUIRED]

The name of the domain.

type ServerSideEncryptionConfiguration

dict

param ServerSideEncryptionConfiguration

[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.

type Tags

list

param Tags

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'.

rtype

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.

DeleteFraudster (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.delete_fraudster(
    DomainId='string',
    FraudsterId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain containing the fraudster.

type FraudsterId

string

param FraudsterId

[REQUIRED]

The identifier of the fraudster you want to delete.

returns

None

DescribeSpeaker (new) Link ¶

Describes the specified speaker.

See also: AWS API Documentation

Request Syntax

client.describe_speaker(
    DomainId='string',
    SpeakerId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain that contains the speaker.

type SpeakerId

string

param SpeakerId

[REQUIRED]

The identifier of the speaker you are describing.

rtype

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.

EvaluateSession (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.evaluate_session(
    DomainId='string',
    SessionNameOrId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain where the session started.

type SessionNameOrId

string

param SessionNameOrId

[REQUIRED]

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

rtype

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.

ListSpeakers (new) Link ¶

Lists all speakers in a specified domain.

See also: AWS API Documentation

Request Syntax

client.list_speakers(
    DomainId='string',
    MaxResults=123,
    NextToken='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain.

type MaxResults

integer

param MaxResults

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.

type NextToken

string

param NextToken

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.

rtype

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.

UpdateDomain (new) Link ¶

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

client.update_domain(
    Description='string',
    DomainId='string',
    Name='string',
    ServerSideEncryptionConfiguration={
        'KmsKeyId': 'string'
    }
)
type Description

string

param Description

A brief description about this domain.

type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain to be updated.

type Name

string

param Name

[REQUIRED]

The name of the domain.

type ServerSideEncryptionConfiguration

dict

param ServerSideEncryptionConfiguration

[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.

rtype

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.

ListSpeakerEnrollmentJobs (new) Link ¶

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

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

string

param DomainId

[REQUIRED]

The identifier of the domain containing the speaker enrollment jobs.

type JobStatus

string

param JobStatus

Provides the status of your speaker enrollment Job.

type MaxResults

integer

param MaxResults

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.

type NextToken

string

param NextToken

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.

rtype

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.

TagResource (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    ResourceArn='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type ResourceArn

string

param ResourceArn

[REQUIRED]

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

type Tags

list

param Tags

[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'.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

DescribeSpeakerEnrollmentJob (new) Link ¶

Describes the specified speaker enrollment job.

See also: AWS API Documentation

Request Syntax

client.describe_speaker_enrollment_job(
    DomainId='string',
    JobId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain containing the speaker enrollment job.

type JobId

string

param JobId

[REQUIRED]

The identifier of the speaker enrollment job you are describing.

rtype

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 .

DescribeDomain (new) Link ¶

Describes the specified domain.

See also: AWS API Documentation

Request Syntax

client.describe_domain(
    DomainId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain you are describing.

rtype

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.

DescribeFraudster (new) Link ¶

Describes the specified fraudster.

See also: AWS API Documentation

Request Syntax

client.describe_fraudster(
    DomainId='string',
    FraudsterId='string'
)
type DomainId

string

param DomainId

[REQUIRED]

The identifier of the domain containing the fraudster.

type FraudsterId

string

param FraudsterId

[REQUIRED]

The identifier of the fraudster you are describing.

rtype

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.

ListTagsForResource (new) Link ¶

Lists all tags associated with a specified Voice ID resource.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    ResourceArn='string'
)
type ResourceArn

string

param ResourceArn

[REQUIRED]

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

rtype

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'.