Amazon Voice ID 2021-09-27
- Client: Aws\VoiceID\VoiceIDClient
- Service ID: voice-id
- Version: 2021-09-27
This page describes the parameters and results for the operations of the Amazon Voice ID (2021-09-27), and shows how to use the Aws\VoiceID\VoiceIDClient object to call the described operations. This documentation is specific to the 2021-09-27 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- CreateDomain ( array $params = [] )
Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints.
- DeleteDomain ( array $params = [] )
Deletes the specified domain from Voice ID.
- DeleteFraudster ( array $params = [] )
Deletes the specified fraudster from Voice ID.
- DeleteSpeaker ( array $params = [] )
Deletes the specified speaker from Voice ID.
- DescribeDomain ( array $params = [] )
Describes the specified domain.
- DescribeFraudster ( array $params = [] )
Describes the specified fraudster.
- DescribeFraudsterRegistrationJob ( array $params = [] )
Describes the specified fraudster registration job.
- DescribeSpeaker ( array $params = [] )
Describes the specified speaker.
- DescribeSpeakerEnrollmentJob ( array $params = [] )
Describes the specified speaker enrollment job.
- EvaluateSession ( array $params = [] )
Evaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.
- ListDomains ( array $params = [] )
Lists all the domains in the Amazon Web Services account.
- ListFraudsterRegistrationJobs ( array $params = [] )
Lists all the fraudster registration jobs in the domain with the given JobStatus.
- ListSpeakerEnrollmentJobs ( array $params = [] )
Lists all the speaker enrollment jobs in the domain with the specified JobStatus.
- ListSpeakers ( array $params = [] )
Lists all speakers in a specified domain.
- ListTagsForResource ( array $params = [] )
Lists all tags associated with a specified Voice ID resource.
- OptOutSpeaker ( array $params = [] )
Opts out a speaker from Voice ID.
- StartFraudsterRegistrationJob ( array $params = [] )
Starts a new batch fraudster registration job using provided details.
- StartSpeakerEnrollmentJob ( array $params = [] )
Starts a new batch speaker enrollment job using specified details.
- TagResource ( array $params = [] )
Tags a Voice ID resource with the provided list of tags.
- UntagResource ( array $params = [] )
Removes specified tags from a specified Amazon Connect Voice ID resource.
- UpdateDomain ( array $params = [] )
Updates the specified domain.
Paginators
Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:
Operations
CreateDomain
$result = $client->createDomain
([/* ... */]); $promise = $client->createDomainAsync
([/* ... */]);
Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints.
Parameter Syntax
$result = $client->createDomain([ 'ClientToken' => '<string>', 'Description' => '<string>', 'Name' => '<string>', // REQUIRED 'ServerSideEncryptionConfiguration' => [ // REQUIRED 'KmsKeyId' => '<string>', // REQUIRED ], 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- ClientToken
-
- Type: string
The idempotency token for creating a new domain. If not provided, Amazon Web Services SDK populates this field.
- Description
-
- Type: string
A brief description of the domain.
- Name
-
- Required: Yes
- Type: string
The name of the domain.
- ServerSideEncryptionConfiguration
-
- Required: Yes
- Type: ServerSideEncryptionConfiguration structure
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 Voice ID encryption at rest for more details on how the KMS key is used.
- Tags
-
- Type: Array of Tag structures
A list of tags you want added to the domain.
Result Syntax
[ 'Domain' => [ 'Arn' => '<string>', 'CreatedAt' => <DateTime>, 'Description' => '<string>', 'DomainId' => '<string>', 'DomainStatus' => 'ACTIVE|PENDING|SUSPENDED', 'Name' => '<string>', 'ServerSideEncryptionConfiguration' => [ 'KmsKeyId' => '<string>', ], 'ServerSideEncryptionUpdateDetails' => [ 'Message' => '<string>', 'OldKmsKeyId' => '<string>', 'UpdateStatus' => 'IN_PROGRESS|COMPLETED|FAILED', ], 'UpdatedAt' => <DateTime>, ], ]
Result Details
Members
- Domain
-
- Type: Domain structure
Information about the newly created domain.
Errors
-
ServiceQuotaExceededException:
The request exceeded the service quota. Refer to Voice ID Service Quotas and try your request again.
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
DeleteDomain
$result = $client->deleteDomain
([/* ... */]); $promise = $client->deleteDomainAsync
([/* ... */]);
Deletes the specified domain from Voice ID.
Parameter Syntax
$result = $client->deleteDomain([ 'DomainId' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[]
Result Details
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
DeleteFraudster
$result = $client->deleteFraudster
([/* ... */]); $promise = $client->deleteFraudsterAsync
([/* ... */]);
Deletes the specified fraudster from Voice ID.
Parameter Syntax
$result = $client->deleteFraudster([ 'DomainId' => '<string>', // REQUIRED 'FraudsterId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
DeleteSpeaker
$result = $client->deleteSpeaker
([/* ... */]); $promise = $client->deleteSpeakerAsync
([/* ... */]);
Deletes the specified speaker from Voice ID.
Parameter Syntax
$result = $client->deleteSpeaker([ 'DomainId' => '<string>', // REQUIRED 'SpeakerId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
DescribeDomain
$result = $client->describeDomain
([/* ... */]); $promise = $client->describeDomainAsync
([/* ... */]);
Describes the specified domain.
Parameter Syntax
$result = $client->describeDomain([ 'DomainId' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[ 'Domain' => [ 'Arn' => '<string>', 'CreatedAt' => <DateTime>, 'Description' => '<string>', 'DomainId' => '<string>', 'DomainStatus' => 'ACTIVE|PENDING|SUSPENDED', 'Name' => '<string>', 'ServerSideEncryptionConfiguration' => [ 'KmsKeyId' => '<string>', ], 'ServerSideEncryptionUpdateDetails' => [ 'Message' => '<string>', 'OldKmsKeyId' => '<string>', 'UpdateStatus' => 'IN_PROGRESS|COMPLETED|FAILED', ], 'UpdatedAt' => <DateTime>, ], ]
Result Details
Members
- Domain
-
- Type: Domain structure
Information about the specified domain.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
DescribeFraudster
$result = $client->describeFraudster
([/* ... */]); $promise = $client->describeFraudsterAsync
([/* ... */]);
Describes the specified fraudster.
Parameter Syntax
$result = $client->describeFraudster([ 'DomainId' => '<string>', // REQUIRED 'FraudsterId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'Fraudster' => [ 'CreatedAt' => <DateTime>, 'DomainId' => '<string>', 'GeneratedFraudsterId' => '<string>', ], ]
Result Details
Members
- Fraudster
-
- Type: Fraudster structure
Information about the specified fraudster.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
DescribeFraudsterRegistrationJob
$result = $client->describeFraudsterRegistrationJob
([/* ... */]); $promise = $client->describeFraudsterRegistrationJobAsync
([/* ... */]);
Describes the specified fraudster registration job.
Parameter Syntax
$result = $client->describeFraudsterRegistrationJob([ 'DomainId' => '<string>', // REQUIRED 'JobId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'Job' => [ 'CreatedAt' => <DateTime>, 'DataAccessRoleArn' => '<string>', 'DomainId' => '<string>', 'EndedAt' => <DateTime>, 'FailureDetails' => [ 'Message' => '<string>', 'StatusCode' => <integer>, ], 'InputDataConfig' => [ 'S3Uri' => '<string>', ], 'JobId' => '<string>', 'JobName' => '<string>', 'JobProgress' => [ 'PercentComplete' => <integer>, ], 'JobStatus' => 'SUBMITTED|IN_PROGRESS|COMPLETED|COMPLETED_WITH_ERRORS|FAILED', 'OutputDataConfig' => [ 'KmsKeyId' => '<string>', 'S3Uri' => '<string>', ], 'RegistrationConfig' => [ 'DuplicateRegistrationAction' => 'SKIP|REGISTER_AS_NEW', 'FraudsterSimilarityThreshold' => <integer>, ], ], ]
Result Details
Members
- Job
-
- Type: FraudsterRegistrationJob structure
Contains details about the specified fraudster registration job.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
DescribeSpeaker
$result = $client->describeSpeaker
([/* ... */]); $promise = $client->describeSpeakerAsync
([/* ... */]);
Describes the specified speaker.
Parameter Syntax
$result = $client->describeSpeaker([ 'DomainId' => '<string>', // REQUIRED 'SpeakerId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'Speaker' => [ 'CreatedAt' => <DateTime>, 'CustomerSpeakerId' => '<string>', 'DomainId' => '<string>', 'GeneratedSpeakerId' => '<string>', 'LastAccessedAt' => <DateTime>, 'Status' => 'ENROLLED|EXPIRED|OPTED_OUT|PENDING', 'UpdatedAt' => <DateTime>, ], ]
Result Details
Members
- Speaker
-
- Type: Speaker structure
Information about the specified speaker.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
DescribeSpeakerEnrollmentJob
$result = $client->describeSpeakerEnrollmentJob
([/* ... */]); $promise = $client->describeSpeakerEnrollmentJobAsync
([/* ... */]);
Describes the specified speaker enrollment job.
Parameter Syntax
$result = $client->describeSpeakerEnrollmentJob([ 'DomainId' => '<string>', // REQUIRED 'JobId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'Job' => [ 'CreatedAt' => <DateTime>, 'DataAccessRoleArn' => '<string>', 'DomainId' => '<string>', 'EndedAt' => <DateTime>, 'EnrollmentConfig' => [ 'ExistingEnrollmentAction' => 'SKIP|OVERWRITE', 'FraudDetectionConfig' => [ 'FraudDetectionAction' => 'IGNORE|FAIL', 'RiskThreshold' => <integer>, ], ], 'FailureDetails' => [ 'Message' => '<string>', 'StatusCode' => <integer>, ], 'InputDataConfig' => [ 'S3Uri' => '<string>', ], 'JobId' => '<string>', 'JobName' => '<string>', 'JobProgress' => [ 'PercentComplete' => <integer>, ], 'JobStatus' => 'SUBMITTED|IN_PROGRESS|COMPLETED|COMPLETED_WITH_ERRORS|FAILED', 'OutputDataConfig' => [ 'KmsKeyId' => '<string>', 'S3Uri' => '<string>', ], ], ]
Result Details
Members
- Job
-
- Type: SpeakerEnrollmentJob structure
Contains details about the specified speaker enrollment job.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
EvaluateSession
$result = $client->evaluateSession
([/* ... */]); $promise = $client->evaluateSessionAsync
([/* ... */]);
Evaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.
Parameter Syntax
$result = $client->evaluateSession([ 'DomainId' => '<string>', // REQUIRED 'SessionNameOrId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'AuthenticationResult' => [ 'AudioAggregationEndedAt' => <DateTime>, 'AudioAggregationStartedAt' => <DateTime>, 'AuthenticationResultId' => '<string>', 'Configuration' => [ 'AcceptanceThreshold' => <integer>, ], 'CustomerSpeakerId' => '<string>', 'Decision' => 'ACCEPT|REJECT|NOT_ENOUGH_SPEECH|SPEAKER_NOT_ENROLLED|SPEAKER_OPTED_OUT|SPEAKER_ID_NOT_PROVIDED|SPEAKER_EXPIRED', 'GeneratedSpeakerId' => '<string>', 'Score' => <integer>, ], 'DomainId' => '<string>', 'FraudDetectionResult' => [ 'AudioAggregationEndedAt' => <DateTime>, 'AudioAggregationStartedAt' => <DateTime>, 'Configuration' => [ 'RiskThreshold' => <integer>, ], 'Decision' => 'HIGH_RISK|LOW_RISK|NOT_ENOUGH_SPEECH', 'FraudDetectionResultId' => '<string>', 'Reasons' => ['<string>', ...], 'RiskDetails' => [ 'KnownFraudsterRisk' => [ 'GeneratedFraudsterId' => '<string>', 'RiskScore' => <integer>, ], 'VoiceSpoofingRisk' => [ 'RiskScore' => <integer>, ], ], ], 'SessionId' => '<string>', 'SessionName' => '<string>', 'StreamingStatus' => 'PENDING_CONFIGURATION|ONGOING|ENDED', ]
Result Details
Members
- AuthenticationResult
-
- Type: AuthenticationResult structure
Details resulting from the authentication process, such as authentication decision and authentication score.
- DomainId
-
- Type: string
The identifier of the domain containing the session.
- FraudDetectionResult
-
- Type: FraudDetectionResult structure
Details resulting from the fraud detection process, such as fraud detection decision and risk score.
- SessionId
-
- Type: string
The service-generated identifier of the session.
- SessionName
-
- Type: string
The client-provided name of the session.
- StreamingStatus
-
- Type: 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 theStreamingStatus
isONGOING/PENDING_CONFIGURATION
, it can mean that the client should call the API again later, after Voice ID has enough audio to produce a result. If the decision remainsNOT_ENOUGH_SPEECH
even afterStreamingStatus
isENDED
, 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.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
ListDomains
$result = $client->listDomains
([/* ... */]); $promise = $client->listDomainsAsync
([/* ... */]);
Lists all the domains in the Amazon Web Services account.
Parameter Syntax
$result = $client->listDomains([ 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- MaxResults
-
- Type: int
The maximum number of domains to list per API call.
- NextToken
-
- Type: string
If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Result Syntax
[ 'DomainSummaries' => [ [ 'Arn' => '<string>', 'CreatedAt' => <DateTime>, 'Description' => '<string>', 'DomainId' => '<string>', 'DomainStatus' => 'ACTIVE|PENDING|SUSPENDED', 'Name' => '<string>', 'ServerSideEncryptionConfiguration' => [ 'KmsKeyId' => '<string>', ], 'ServerSideEncryptionUpdateDetails' => [ 'Message' => '<string>', 'OldKmsKeyId' => '<string>', 'UpdateStatus' => 'IN_PROGRESS|COMPLETED|FAILED', ], 'UpdatedAt' => <DateTime>, ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- DomainSummaries
-
- Type: Array of DomainSummary structures
A list containing details about each domain in the Amazon Web Services account.
- NextToken
-
- Type: string
If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Errors
-
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
ListFraudsterRegistrationJobs
$result = $client->listFraudsterRegistrationJobs
([/* ... */]); $promise = $client->listFraudsterRegistrationJobsAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->listFraudsterRegistrationJobs([ 'DomainId' => '<string>', // REQUIRED 'JobStatus' => 'SUBMITTED|IN_PROGRESS|COMPLETED|COMPLETED_WITH_ERRORS|FAILED', 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- DomainId
-
- Required: Yes
- Type: string
The identifier of the domain containing the fraudster registration Jobs.
- JobStatus
-
- Type: string
Provides the status of your fraudster registration job.
- MaxResults
-
- Type: int
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
-
- Type: string
If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Result Syntax
[ 'JobSummaries' => [ [ 'CreatedAt' => <DateTime>, 'DomainId' => '<string>', 'EndedAt' => <DateTime>, 'FailureDetails' => [ 'Message' => '<string>', 'StatusCode' => <integer>, ], 'JobId' => '<string>', 'JobName' => '<string>', 'JobProgress' => [ 'PercentComplete' => <integer>, ], 'JobStatus' => 'SUBMITTED|IN_PROGRESS|COMPLETED|COMPLETED_WITH_ERRORS|FAILED', ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- JobSummaries
-
- Type: Array of FraudsterRegistrationJobSummary structures
A list containing details about each specified fraudster registration job.
- NextToken
-
- Type: string
If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
ListSpeakerEnrollmentJobs
$result = $client->listSpeakerEnrollmentJobs
([/* ... */]); $promise = $client->listSpeakerEnrollmentJobsAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->listSpeakerEnrollmentJobs([ 'DomainId' => '<string>', // REQUIRED 'JobStatus' => 'SUBMITTED|IN_PROGRESS|COMPLETED|COMPLETED_WITH_ERRORS|FAILED', 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- DomainId
-
- Required: Yes
- Type: string
The identifier of the domain containing the speaker enrollment jobs.
- JobStatus
-
- Type: string
Provides the status of your speaker enrollment Job.
- MaxResults
-
- Type: int
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
-
- Type: string
If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Result Syntax
[ 'JobSummaries' => [ [ 'CreatedAt' => <DateTime>, 'DomainId' => '<string>', 'EndedAt' => <DateTime>, 'FailureDetails' => [ 'Message' => '<string>', 'StatusCode' => <integer>, ], 'JobId' => '<string>', 'JobName' => '<string>', 'JobProgress' => [ 'PercentComplete' => <integer>, ], 'JobStatus' => 'SUBMITTED|IN_PROGRESS|COMPLETED|COMPLETED_WITH_ERRORS|FAILED', ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- JobSummaries
-
- Type: Array of SpeakerEnrollmentJobSummary structures
A list containing details about each specified speaker enrollment job.
- NextToken
-
- Type: string
If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
ListSpeakers
$result = $client->listSpeakers
([/* ... */]); $promise = $client->listSpeakersAsync
([/* ... */]);
Lists all speakers in a specified domain.
Parameter Syntax
$result = $client->listSpeakers([ 'DomainId' => '<string>', // REQUIRED 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- DomainId
-
- Required: Yes
- Type: string
The identifier of the domain.
- MaxResults
-
- Type: int
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
-
- Type: string
If
NextToken
is returned, there are more results available. The value ofNextToken
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.
Result Syntax
[ 'NextToken' => '<string>', 'SpeakerSummaries' => [ [ 'CreatedAt' => <DateTime>, 'CustomerSpeakerId' => '<string>', 'DomainId' => '<string>', 'GeneratedSpeakerId' => '<string>', 'LastAccessedAt' => <DateTime>, 'Status' => 'ENROLLED|EXPIRED|OPTED_OUT|PENDING', 'UpdatedAt' => <DateTime>, ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
If
NextToken
is returned, there are more results available. The value ofNextToken
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
-
- Type: Array of SpeakerSummary structures
A list containing details about each speaker in the Amazon Web Services account.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
ListTagsForResource
$result = $client->listTagsForResource
([/* ... */]); $promise = $client->listTagsForResourceAsync
([/* ... */]);
Lists all tags associated with a specified Voice ID resource.
Parameter Syntax
$result = $client->listTagsForResource([ 'ResourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'Tags' => [ [ 'Key' => '<string>', 'Value' => '<string>', ], // ... ], ]
Result Details
Members
- Tags
-
- Type: Array of Tag structures
The list of tags associated with the specified resource.
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
OptOutSpeaker
$result = $client->optOutSpeaker
([/* ... */]); $promise = $client->optOutSpeakerAsync
([/* ... */]);
Opts out a speaker from Voice ID. A speaker can be opted out regardless of whether or not they already exist in Voice ID. 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 Voice ID.
Parameter Syntax
$result = $client->optOutSpeaker([ 'DomainId' => '<string>', // REQUIRED 'SpeakerId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'Speaker' => [ 'CreatedAt' => <DateTime>, 'CustomerSpeakerId' => '<string>', 'DomainId' => '<string>', 'GeneratedSpeakerId' => '<string>', 'LastAccessedAt' => <DateTime>, 'Status' => 'ENROLLED|EXPIRED|OPTED_OUT|PENDING', 'UpdatedAt' => <DateTime>, ], ]
Result Details
Members
- Speaker
-
- Type: Speaker structure
Details about the opted-out speaker.
Errors
-
ServiceQuotaExceededException:
The request exceeded the service quota. Refer to Voice ID Service Quotas and try your request again.
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
StartFraudsterRegistrationJob
$result = $client->startFraudsterRegistrationJob
([/* ... */]); $promise = $client->startFraudsterRegistrationJobAsync
([/* ... */]);
Starts a new batch fraudster registration job using provided details.
Parameter Syntax
$result = $client->startFraudsterRegistrationJob([ 'ClientToken' => '<string>', 'DataAccessRoleArn' => '<string>', // REQUIRED 'DomainId' => '<string>', // REQUIRED 'InputDataConfig' => [ // REQUIRED 'S3Uri' => '<string>', // REQUIRED ], 'JobName' => '<string>', 'OutputDataConfig' => [ // REQUIRED 'KmsKeyId' => '<string>', 'S3Uri' => '<string>', // REQUIRED ], 'RegistrationConfig' => [ 'DuplicateRegistrationAction' => 'SKIP|REGISTER_AS_NEW', 'FraudsterSimilarityThreshold' => <integer>, ], ]);
Parameter Details
Members
- ClientToken
-
- Type: string
The idempotency token for starting a new fraudster registration job. If not provided, Amazon Web Services SDK populates this field.
- DataAccessRoleArn
-
- Required: Yes
- Type: 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. Refer to the Create and edit a fraudster watchlist documentation for the permissions needed in this role.
- DomainId
-
- Required: Yes
- Type: string
The identifier of the domain containing the fraudster registration job and in which the fraudsters are registered.
- InputDataConfig
-
- Required: Yes
- Type: InputDataConfig structure
The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration requests.
- JobName
-
- Type: string
The name of the new fraudster registration job.
- OutputDataConfig
-
- Required: Yes
- Type: OutputDataConfig structure
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.
- RegistrationConfig
-
- Type: RegistrationConfig structure
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.
Result Syntax
[ 'Job' => [ 'CreatedAt' => <DateTime>, 'DataAccessRoleArn' => '<string>', 'DomainId' => '<string>', 'EndedAt' => <DateTime>, 'FailureDetails' => [ 'Message' => '<string>', 'StatusCode' => <integer>, ], 'InputDataConfig' => [ 'S3Uri' => '<string>', ], 'JobId' => '<string>', 'JobName' => '<string>', 'JobProgress' => [ 'PercentComplete' => <integer>, ], 'JobStatus' => 'SUBMITTED|IN_PROGRESS|COMPLETED|COMPLETED_WITH_ERRORS|FAILED', 'OutputDataConfig' => [ 'KmsKeyId' => '<string>', 'S3Uri' => '<string>', ], 'RegistrationConfig' => [ 'DuplicateRegistrationAction' => 'SKIP|REGISTER_AS_NEW', 'FraudsterSimilarityThreshold' => <integer>, ], ], ]
Result Details
Members
- Job
-
- Type: FraudsterRegistrationJob structure
Details about the started fraudster registration job.
Errors
-
ServiceQuotaExceededException:
The request exceeded the service quota. Refer to Voice ID Service Quotas and try your request again.
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
StartSpeakerEnrollmentJob
$result = $client->startSpeakerEnrollmentJob
([/* ... */]); $promise = $client->startSpeakerEnrollmentJobAsync
([/* ... */]);
Starts a new batch speaker enrollment job using specified details.
Parameter Syntax
$result = $client->startSpeakerEnrollmentJob([ 'ClientToken' => '<string>', 'DataAccessRoleArn' => '<string>', // REQUIRED 'DomainId' => '<string>', // REQUIRED 'EnrollmentConfig' => [ 'ExistingEnrollmentAction' => 'SKIP|OVERWRITE', 'FraudDetectionConfig' => [ 'FraudDetectionAction' => 'IGNORE|FAIL', 'RiskThreshold' => <integer>, ], ], 'InputDataConfig' => [ // REQUIRED 'S3Uri' => '<string>', // REQUIRED ], 'JobName' => '<string>', 'OutputDataConfig' => [ // REQUIRED 'KmsKeyId' => '<string>', 'S3Uri' => '<string>', // REQUIRED ], ]);
Parameter Details
Members
- ClientToken
-
- Type: string
The idempotency token for starting a new speaker enrollment Job. If not provided, Amazon Web Services SDK populates this field.
- DataAccessRoleArn
-
- Required: Yes
- Type: 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. Refer to Batch enrollment using audio data from prior calls for the permissions needed in this role.
- DomainId
-
- Required: Yes
- Type: string
The identifier of the domain that contains the speaker enrollment job and in which the speakers are enrolled.
- EnrollmentConfig
-
- Type: EnrollmentConfig structure
The enrollment config that contains details such as the action to take when a speaker is already enrolled in Voice ID or when a speaker is identified as a fraudster.
- InputDataConfig
-
- Required: Yes
- Type: InputDataConfig structure
The input data config containing the S3 location for the input manifest file that contains the list of speaker enrollment requests.
- JobName
-
- Type: string
A name for your speaker enrollment job.
- OutputDataConfig
-
- Required: Yes
- Type: OutputDataConfig structure
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.
Result Syntax
[ 'Job' => [ 'CreatedAt' => <DateTime>, 'DataAccessRoleArn' => '<string>', 'DomainId' => '<string>', 'EndedAt' => <DateTime>, 'EnrollmentConfig' => [ 'ExistingEnrollmentAction' => 'SKIP|OVERWRITE', 'FraudDetectionConfig' => [ 'FraudDetectionAction' => 'IGNORE|FAIL', 'RiskThreshold' => <integer>, ], ], 'FailureDetails' => [ 'Message' => '<string>', 'StatusCode' => <integer>, ], 'InputDataConfig' => [ 'S3Uri' => '<string>', ], 'JobId' => '<string>', 'JobName' => '<string>', 'JobProgress' => [ 'PercentComplete' => <integer>, ], 'JobStatus' => 'SUBMITTED|IN_PROGRESS|COMPLETED|COMPLETED_WITH_ERRORS|FAILED', 'OutputDataConfig' => [ 'KmsKeyId' => '<string>', 'S3Uri' => '<string>', ], ], ]
Result Details
Members
- Job
-
- Type: SpeakerEnrollmentJob structure
Details about the started speaker enrollment job.
Errors
-
ServiceQuotaExceededException:
The request exceeded the service quota. Refer to Voice ID Service Quotas and try your request again.
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
TagResource
$result = $client->tagResource
([/* ... */]); $promise = $client->tagResourceAsync
([/* ... */]);
Tags a Voice ID resource with the provided list of tags.
Parameter Syntax
$result = $client->tagResource([ 'ResourceArn' => '<string>', // REQUIRED 'Tags' => [ // REQUIRED [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Voice ID resource you want to tag.
- Tags
-
- Required: Yes
- Type: Array of Tag structures
The list of tags to assign to the specified resource.
Result Syntax
[]
Result Details
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
UntagResource
$result = $client->untagResource
([/* ... */]); $promise = $client->untagResourceAsync
([/* ... */]);
Removes specified tags from a specified Amazon Connect Voice ID resource.
Parameter Syntax
$result = $client->untagResource([ 'ResourceArn' => '<string>', // REQUIRED 'TagKeys' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
UpdateDomain
$result = $client->updateDomain
([/* ... */]); $promise = $client->updateDomainAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->updateDomain([ 'Description' => '<string>', 'DomainId' => '<string>', // REQUIRED 'Name' => '<string>', // REQUIRED 'ServerSideEncryptionConfiguration' => [ // REQUIRED 'KmsKeyId' => '<string>', // REQUIRED ], ]);
Parameter Details
Members
- Description
-
- Type: string
A brief description of the domain.
- DomainId
-
- Required: Yes
- Type: string
The identifier of the domain to be updated.
- Name
-
- Required: Yes
- Type: string
The name of the domain.
- ServerSideEncryptionConfiguration
-
- Required: Yes
- Type: ServerSideEncryptionConfiguration structure
The configuration, containing the KMS key identifier, to be used by Voice ID for the server-side encryption of your data. Changing the domain's associated KMS key immediately triggers an asynchronous process to remove dependency on the old KMS key, such that the domain's data can only be accessed using the new KMS key. The domain's
ServerSideEncryptionUpdateDetails
contains the details for this process.
Result Syntax
[ 'Domain' => [ 'Arn' => '<string>', 'CreatedAt' => <DateTime>, 'Description' => '<string>', 'DomainId' => '<string>', 'DomainStatus' => 'ACTIVE|PENDING|SUSPENDED', 'Name' => '<string>', 'ServerSideEncryptionConfiguration' => [ 'KmsKeyId' => '<string>', ], 'ServerSideEncryptionUpdateDetails' => [ 'Message' => '<string>', 'OldKmsKeyId' => '<string>', 'UpdateStatus' => 'IN_PROGRESS|COMPLETED|FAILED', ], 'UpdatedAt' => <DateTime>, ], ]
Result Details
Members
- Domain
-
- Type: Domain structure
Details about the updated domain
Errors
-
The specified resource cannot be found. Check the
ResourceType
and error message for more details. -
The request failed one or more validations; check the error message for more details.
-
The request failed due to a conflict. Check the
ConflictType
and error message for more details. -
The request failed due to an unknown error on the server side.
-
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.
-
You do not have sufficient permissions to perform this action. Check the error message and try again.
Shapes
AccessDeniedException
Description
You do not have sufficient permissions to perform this action. Check the error message and try again.
Members
AuthenticationConfiguration
Description
The configuration used to authenticate a speaker during a session.
Members
AuthenticationResult
Description
The authentication result produced by Voice ID, processed against the current session state and streamed audio of the speaker.
Members
- AudioAggregationEndedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp indicating when audio aggregation ended for this authentication result.
- AudioAggregationStartedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp indicating when audio aggregation started for this authentication result.
- AuthenticationResultId
-
- Type: 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, orSpeakerId
changes, Voice ID always returns cached Authentication Result for this API. - Configuration
-
- Type: AuthenticationConfiguration structure
The
AuthenticationConfiguration
used to generate this authentication result. - CustomerSpeakerId
-
- Type: string
The client-provided identifier for the speaker whose authentication result is produced. Only present if a
SpeakerId
is provided for the session. - Decision
-
- Type: string
The authentication decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.
- GeneratedSpeakerId
-
- Type: string
The service-generated identifier for the speaker whose authentication result is produced.
- Score
-
- Type: int
The authentication score for the speaker whose authentication result is produced. This value is only present if the authentication decision is either
ACCEPT
orREJECT
.
ConflictException
Description
The request failed due to a conflict. Check the ConflictType
and error message for more details.
Members
- ConflictType
-
- Type: 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
-
- Type: string
Domain
Description
Contains all the information about a domain.
Members
- Arn
-
- Type: string
The Amazon Resource Name (ARN) for the domain.
- CreatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp at which the domain is created.
- Description
-
- Type: string
The client-provided description of the domain.
- DomainId
-
- Type: string
The service-generated identifier for the domain.
- DomainStatus
-
- Type: string
The current status of the domain.
- Name
-
- Type: string
The client-provided name for the domain.
- ServerSideEncryptionConfiguration
-
- Type: ServerSideEncryptionConfiguration structure
The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
- ServerSideEncryptionUpdateDetails
-
- Type: ServerSideEncryptionUpdateDetails structure
Details about the most recent server-side encryption configuration update. When the server-side encryption configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this update is complete, the domain's data can only be accessed using the new KMS key.
- UpdatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp showing the domain's last update.
DomainSummary
Description
Contains a summary of information about a domain.
Members
- Arn
-
- Type: string
The Amazon Resource Name (ARN) for the domain.
- CreatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp showing when the domain is created.
- Description
-
- Type: string
The client-provided description of the domain.
- DomainId
-
- Type: string
The service-generated identifier for the domain.
- DomainStatus
-
- Type: string
The current status of the domain.
- Name
-
- Type: string
The client-provided name for the domain.
- ServerSideEncryptionConfiguration
-
- Type: ServerSideEncryptionConfiguration structure
The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
- ServerSideEncryptionUpdateDetails
-
- Type: ServerSideEncryptionUpdateDetails structure
Details about the most recent server-side encryption configuration update. When the server-side encryption configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this update is complete, the domain's data can only be accessed using the new KMS key.
- UpdatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp showing the domain's last update.
EnrollmentConfig
Description
Contains configurations defining enrollment behavior for the batch job.
Members
- ExistingEnrollmentAction
-
- Type: 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 toOVERWRITE
replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio. - FraudDetectionConfig
-
- Type: EnrollmentJobFraudDetectionConfig structure
The fraud detection configuration to use for the speaker enrollment job.
EnrollmentJobFraudDetectionConfig
Description
The configuration defining the action to take when a speaker is flagged by the fraud detection system during a batch speaker enrollment job, and the risk threshold to use for identification.
Members
- FraudDetectionAction
-
- Type: 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 toIGNORE
results in the speaker being enrolled even if they are flagged by the fraud detection system. - RiskThreshold
-
- Type: int
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
Description
Contains error details for a failed batch job.
Members
FraudDetectionConfiguration
Description
The configuration used for performing fraud detection over a speaker during a session.
Members
FraudDetectionResult
Description
The fraud detection result produced by Voice ID, processed against the current session state and streamed audio of the speaker.
Members
- AudioAggregationEndedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp indicating when audio aggregation ended for this fraud detection result.
- AudioAggregationStartedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp indicating when audio aggregation started for this fraud detection result.
- Configuration
-
- Type: FraudDetectionConfiguration structure
The
FraudDetectionConfiguration
used to generate this fraud detection result. - Decision
-
- Type: string
The fraud detection decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.
- FraudDetectionResultId
-
- Type: 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
-
- Type: Array of strings
The reason speaker was flagged by the fraud detection system. This is only be populated if fraud detection Decision is
HIGH_RISK
, and the following possible values:KNOWN_FRAUDSTER
andVOICE_SPOOFING
. - RiskDetails
-
- Type: FraudRiskDetails structure
Details about each risk analyzed for this speaker. Currently, this contains KnownFraudsterRisk and VoiceSpoofingRisk details.
FraudRiskDetails
Description
Details regarding various fraud risk analyses performed against the current session state and streamed audio of the speaker.
Members
- KnownFraudsterRisk
-
- Required: Yes
- Type: KnownFraudsterRisk structure
The details resulting from 'Known Fraudster Risk' analysis of the speaker.
- VoiceSpoofingRisk
-
- Required: Yes
- Type: VoiceSpoofingRisk structure
The details resulting from 'Voice Spoofing Risk' analysis of the speaker.
Fraudster
Description
Contains all the information about a fraudster.
Members
FraudsterRegistrationJob
Description
Contains all the information about a fraudster registration job.
Members
- CreatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing the creation time of the fraudster registration job.
- DataAccessRoleArn
-
- Type: 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
-
- Type: string
The identifier of the domain containing the fraudster registration job.
- EndedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing when the fraudster registration job ended.
- FailureDetails
-
- Type: FailureDetails structure
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
ofCOMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual registration requests that failed. - InputDataConfig
-
- Type: InputDataConfig structure
The input data config containing an S3 URI for the input manifest file that contains the list of fraudster registration job requests.
- JobId
-
- Type: string
The service-generated identifier for the fraudster registration job.
- JobName
-
- Type: string
The client-provided name for the fraudster registration job.
- JobProgress
-
- Type: JobProgress structure
Shows the completed percentage of registration requests listed in the input file.
- JobStatus
-
- Type: string
The current status of the fraudster registration job.
- OutputDataConfig
-
- Type: OutputDataConfig structure
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.
- RegistrationConfig
-
- Type: RegistrationConfig structure
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.
FraudsterRegistrationJobSummary
Description
Contains a summary of information about a fraudster registration job.
Members
- CreatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing when the fraudster registration job is created.
- DomainId
-
- Type: string
The identifier of the domain containing the fraudster registration job.
- EndedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing when the fraudster registration job ended.
- FailureDetails
-
- Type: FailureDetails structure
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
ofCOMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual registration requests that failed. - JobId
-
- Type: string
The service-generated identifier for the fraudster registration job.
- JobName
-
- Type: string
The client-provided name for the fraudster registration job.
- JobProgress
-
- Type: JobProgress structure
Shows the completed percentage of registration requests listed in the input file.
- JobStatus
-
- Type: string
The current status of the fraudster registration job.
InputDataConfig
Description
The configuration containing input file information for a batch job.
Members
InternalServerException
Description
The request failed due to an unknown error on the server side.
Members
JobProgress
Description
Indicates the completion progress for a batch job.
Members
KnownFraudsterRisk
Description
Contains details produced as a result of performing known fraudster risk analysis on a speaker.
Members
- GeneratedFraudsterId
-
- Type: 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
-
- Required: Yes
- Type: int
The score indicating the likelihood the speaker is a known fraudster.
OutputDataConfig
Description
The configuration containing output file information for a batch job.
Members
- KmsKeyId
-
- Type: string
The identifier of the KMS key you want Voice ID to use to encrypt the output file of a speaker enrollment job/fraudster registration job.
- S3Uri
-
- Required: Yes
- Type: string
The S3 path of the folder where Voice ID writes the job output file. It has a
*.out
extension. For example, if the input file name isinput-file.json
and the output folder path iss3://output-bucket/output-folder
, the full output file path iss3://output-bucket/output-folder/job-Id/input-file.json.out
.
RegistrationConfig
Description
The configuration defining the action to take when a duplicate fraudster is detected, and the similarity threshold to use for detecting a duplicate fraudster during a batch fraudster registration job.
Members
- DuplicateRegistrationAction
-
- Type: 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 toREGISTER_AS_NEW
always registers a new fraudster into the specified domain. - FraudsterSimilarityThreshold
-
- Type: int
The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a duplicate.
ResourceNotFoundException
Description
The specified resource cannot be found. Check the ResourceType
and error message for more details.
Members
ServerSideEncryptionConfiguration
Description
The configuration containing information about the customer managed key used for encrypting customer data.
Members
ServerSideEncryptionUpdateDetails
Description
Details about the most recent server-side encryption configuration update. When the server-side encryption configuration is changed, dependency on the old KMS key is removed through an asynchronous process. When this update is complete, the domain’s data can only be accessed using the new KMS key.
Members
- Message
-
- Type: string
Message explaining the current UpdateStatus. When the UpdateStatus is FAILED, this message explains the cause of the failure.
- OldKmsKeyId
-
- Type: string
The previous KMS key ID the domain was encrypted with, before ServerSideEncryptionConfiguration was updated to a new KMS key ID.
- UpdateStatus
-
- Type: string
Status of the server-side encryption update. During an update, if there is an issue with the domain's current or old KMS key ID, such as an inaccessible or disabled key, then the status is FAILED. In order to resolve this, the key needs to be made accessible, and then an UpdateDomain call with the existing server-side encryption configuration will re-attempt this update process.
ServiceQuotaExceededException
Description
The request exceeded the service quota. Refer to Voice ID Service Quotas and try your request again.
Members
Speaker
Description
Contains all the information about a speaker.
Members
- CreatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing when the speaker is created.
- CustomerSpeakerId
-
- Type: string
The client-provided identifier for the speaker.
- DomainId
-
- Type: string
The identifier of the domain that contains the speaker.
- GeneratedSpeakerId
-
- Type: string
The service-generated identifier for the speaker.
- LastAccessedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the speaker was last accessed for enrollment, re-enrollment or a successful authentication. This timestamp is accurate to one hour.
- Status
-
- Type: string
The current status of the speaker.
- UpdatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing the speaker's last update.
SpeakerEnrollmentJob
Description
Contains all the information about a speaker enrollment job.
Members
- CreatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing the creation of the speaker enrollment job.
- DataAccessRoleArn
-
- Type: 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
-
- Type: string
The identifier of the domain that contains the speaker enrollment job.
- EndedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing when the speaker enrollment job ended.
- EnrollmentConfig
-
- Type: EnrollmentConfig structure
The configuration that defines the action to take when the speaker is already enrolled in Voice ID, and the
FraudDetectionConfig
to use. - FailureDetails
-
- Type: FailureDetails structure
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
ofCOMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual registration requests that failed. - InputDataConfig
-
- Type: InputDataConfig structure
The input data config containing an S3 URI for the input manifest file that contains the list of speaker enrollment job requests.
- JobId
-
- Type: string
The service-generated identifier for the speaker enrollment job.
- JobName
-
- Type: string
The client-provided name for the speaker enrollment job.
- JobProgress
-
- Type: JobProgress structure
Provides details on job progress. This field shows the completed percentage of registration requests listed in the input file.
- JobStatus
-
- Type: string
The current status of the speaker enrollment job.
- OutputDataConfig
-
- Type: OutputDataConfig structure
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.
SpeakerEnrollmentJobSummary
Description
Contains a summary of information about a speaker enrollment job.
Members
- CreatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing the creation time of the speaker enrollment job.
- DomainId
-
- Type: string
The identifier of the domain that contains the speaker enrollment job.
- EndedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing when the speaker enrollment job ended.
- FailureDetails
-
- Type: FailureDetails structure
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
ofCOMPLETED_WITH_ERRORS
. You can use the job output file to identify the individual registration requests that failed. - JobId
-
- Type: string
The service-generated identifier for the speaker enrollment job.
- JobName
-
- Type: string
The client-provided name for the speaker enrollment job.
- JobProgress
-
- Type: JobProgress structure
Provides details regarding job progress. This field shows the completed percentage of enrollment requests listed in the input file.
- JobStatus
-
- Type: string
The current status of the speaker enrollment job.
SpeakerSummary
Description
Contains a summary of information about a speaker.
Members
- CreatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing the speaker's creation time.
- CustomerSpeakerId
-
- Type: string
The client-provided identifier for the speaker.
- DomainId
-
- Type: string
The identifier of the domain that contains the speaker.
- GeneratedSpeakerId
-
- Type: string
The service-generated identifier for the speaker.
- LastAccessedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp when the speaker was last accessed for enrollment, re-enrollment or a successful authentication. This timestamp is accurate to one hour.
- Status
-
- Type: string
The current status of the speaker.
- UpdatedAt
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
A timestamp showing the speaker's last update.
Tag
Description
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Members
- Key
-
- Required: Yes
- Type: 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
-
- Required: Yes
- Type: 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'.
ThrottlingException
Description
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.
Members
ValidationException
Description
The request failed one or more validations; check the error message for more details.