Skip to content

VoiceIDClient#

Index > VoiceID > VoiceIDClient

Auto-generated documentation for VoiceID type annotations stubs module mypy-boto3-voice-id.

VoiceIDClient#

Type annotations and code completion for boto3.client("voice-id"). boto3 documentation

# VoiceIDClient usage example

from boto3.session import Session
from mypy_boto3_voice_id.client import VoiceIDClient

def get_voice-id_client() -> VoiceIDClient:
    return Session().client("voice-id")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("voice-id").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("voice-id")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_voice_id.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

associate_fraudster#

Associates the fraudsters with the watchlist specified in the same domain.

Type annotations and code completion for boto3.client("voice-id").associate_fraudster method. boto3 documentation

# associate_fraudster method definition

def associate_fraudster(
    self,
    *,
    DomainId: str,
    FraudsterId: str,
    WatchlistId: str,
) -> AssociateFraudsterResponseTypeDef:  # (1)
    ...
  1. See AssociateFraudsterResponseTypeDef
# associate_fraudster method usage example with argument unpacking

kwargs: AssociateFraudsterRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "FraudsterId": ...,
    "WatchlistId": ...,
}

parent.associate_fraudster(**kwargs)
  1. See AssociateFraudsterRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("voice-id").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("voice-id").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_domain#

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

Type annotations and code completion for boto3.client("voice-id").create_domain method. boto3 documentation

# create_domain method definition

def create_domain(
    self,
    *,
    Name: str,
    ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationTypeDef,  # (1)
    ClientToken: str = ...,
    Description: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateDomainResponseTypeDef:  # (3)
    ...
  1. See ServerSideEncryptionConfigurationTypeDef
  2. See TagTypeDef
  3. See CreateDomainResponseTypeDef
# create_domain method usage example with argument unpacking

kwargs: CreateDomainRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "ServerSideEncryptionConfiguration": ...,
}

parent.create_domain(**kwargs)
  1. See CreateDomainRequestRequestTypeDef

create_watchlist#

Creates a watchlist that fraudsters can be a part of.

Type annotations and code completion for boto3.client("voice-id").create_watchlist method. boto3 documentation

# create_watchlist method definition

def create_watchlist(
    self,
    *,
    DomainId: str,
    Name: str,
    ClientToken: str = ...,
    Description: str = ...,
) -> CreateWatchlistResponseTypeDef:  # (1)
    ...
  1. See CreateWatchlistResponseTypeDef
# create_watchlist method usage example with argument unpacking

kwargs: CreateWatchlistRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "Name": ...,
}

parent.create_watchlist(**kwargs)
  1. See CreateWatchlistRequestRequestTypeDef

delete_domain#

Deletes the specified domain from Voice ID.

Type annotations and code completion for boto3.client("voice-id").delete_domain method. boto3 documentation

# delete_domain method definition

def delete_domain(
    self,
    *,
    DomainId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_domain method usage example with argument unpacking

kwargs: DeleteDomainRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
}

parent.delete_domain(**kwargs)
  1. See DeleteDomainRequestRequestTypeDef

delete_fraudster#

Deletes the specified fraudster from Voice ID.

Type annotations and code completion for boto3.client("voice-id").delete_fraudster method. boto3 documentation

# delete_fraudster method definition

def delete_fraudster(
    self,
    *,
    DomainId: str,
    FraudsterId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_fraudster method usage example with argument unpacking

kwargs: DeleteFraudsterRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "FraudsterId": ...,
}

parent.delete_fraudster(**kwargs)
  1. See DeleteFraudsterRequestRequestTypeDef

delete_speaker#

Deletes the specified speaker from Voice ID.

Type annotations and code completion for boto3.client("voice-id").delete_speaker method. boto3 documentation

# delete_speaker method definition

def delete_speaker(
    self,
    *,
    DomainId: str,
    SpeakerId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_speaker method usage example with argument unpacking

kwargs: DeleteSpeakerRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "SpeakerId": ...,
}

parent.delete_speaker(**kwargs)
  1. See DeleteSpeakerRequestRequestTypeDef

delete_watchlist#

Deletes the specified watchlist from Voice ID.

Type annotations and code completion for boto3.client("voice-id").delete_watchlist method. boto3 documentation

# delete_watchlist method definition

def delete_watchlist(
    self,
    *,
    DomainId: str,
    WatchlistId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_watchlist method usage example with argument unpacking

kwargs: DeleteWatchlistRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "WatchlistId": ...,
}

parent.delete_watchlist(**kwargs)
  1. See DeleteWatchlistRequestRequestTypeDef

describe_domain#

Describes the specified domain.

Type annotations and code completion for boto3.client("voice-id").describe_domain method. boto3 documentation

# describe_domain method definition

def describe_domain(
    self,
    *,
    DomainId: str,
) -> DescribeDomainResponseTypeDef:  # (1)
    ...
  1. See DescribeDomainResponseTypeDef
# describe_domain method usage example with argument unpacking

kwargs: DescribeDomainRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
}

parent.describe_domain(**kwargs)
  1. See DescribeDomainRequestRequestTypeDef

describe_fraudster#

Describes the specified fraudster.

Type annotations and code completion for boto3.client("voice-id").describe_fraudster method. boto3 documentation

# describe_fraudster method definition

def describe_fraudster(
    self,
    *,
    DomainId: str,
    FraudsterId: str,
) -> DescribeFraudsterResponseTypeDef:  # (1)
    ...
  1. See DescribeFraudsterResponseTypeDef
# describe_fraudster method usage example with argument unpacking

kwargs: DescribeFraudsterRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "FraudsterId": ...,
}

parent.describe_fraudster(**kwargs)
  1. See DescribeFraudsterRequestRequestTypeDef

describe_fraudster_registration_job#

Describes the specified fraudster registration job.

Type annotations and code completion for boto3.client("voice-id").describe_fraudster_registration_job method. boto3 documentation

# describe_fraudster_registration_job method definition

def describe_fraudster_registration_job(
    self,
    *,
    DomainId: str,
    JobId: str,
) -> DescribeFraudsterRegistrationJobResponseTypeDef:  # (1)
    ...
  1. See DescribeFraudsterRegistrationJobResponseTypeDef
# describe_fraudster_registration_job method usage example with argument unpacking

kwargs: DescribeFraudsterRegistrationJobRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "JobId": ...,
}

parent.describe_fraudster_registration_job(**kwargs)
  1. See DescribeFraudsterRegistrationJobRequestRequestTypeDef

describe_speaker#

Describes the specified speaker.

Type annotations and code completion for boto3.client("voice-id").describe_speaker method. boto3 documentation

# describe_speaker method definition

def describe_speaker(
    self,
    *,
    DomainId: str,
    SpeakerId: str,
) -> DescribeSpeakerResponseTypeDef:  # (1)
    ...
  1. See DescribeSpeakerResponseTypeDef
# describe_speaker method usage example with argument unpacking

kwargs: DescribeSpeakerRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "SpeakerId": ...,
}

parent.describe_speaker(**kwargs)
  1. See DescribeSpeakerRequestRequestTypeDef

describe_speaker_enrollment_job#

Describes the specified speaker enrollment job.

Type annotations and code completion for boto3.client("voice-id").describe_speaker_enrollment_job method. boto3 documentation

# describe_speaker_enrollment_job method definition

def describe_speaker_enrollment_job(
    self,
    *,
    DomainId: str,
    JobId: str,
) -> DescribeSpeakerEnrollmentJobResponseTypeDef:  # (1)
    ...
  1. See DescribeSpeakerEnrollmentJobResponseTypeDef
# describe_speaker_enrollment_job method usage example with argument unpacking

kwargs: DescribeSpeakerEnrollmentJobRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "JobId": ...,
}

parent.describe_speaker_enrollment_job(**kwargs)
  1. See DescribeSpeakerEnrollmentJobRequestRequestTypeDef

describe_watchlist#

Describes the specified watchlist.

Type annotations and code completion for boto3.client("voice-id").describe_watchlist method. boto3 documentation

# describe_watchlist method definition

def describe_watchlist(
    self,
    *,
    DomainId: str,
    WatchlistId: str,
) -> DescribeWatchlistResponseTypeDef:  # (1)
    ...
  1. See DescribeWatchlistResponseTypeDef
# describe_watchlist method usage example with argument unpacking

kwargs: DescribeWatchlistRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "WatchlistId": ...,
}

parent.describe_watchlist(**kwargs)
  1. See DescribeWatchlistRequestRequestTypeDef

disassociate_fraudster#

Disassociates the fraudsters from the watchlist specified.

Type annotations and code completion for boto3.client("voice-id").disassociate_fraudster method. boto3 documentation

# disassociate_fraudster method definition

def disassociate_fraudster(
    self,
    *,
    DomainId: str,
    FraudsterId: str,
    WatchlistId: str,
) -> DisassociateFraudsterResponseTypeDef:  # (1)
    ...
  1. See DisassociateFraudsterResponseTypeDef
# disassociate_fraudster method usage example with argument unpacking

kwargs: DisassociateFraudsterRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "FraudsterId": ...,
    "WatchlistId": ...,
}

parent.disassociate_fraudster(**kwargs)
  1. See DisassociateFraudsterRequestRequestTypeDef

evaluate_session#

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

Type annotations and code completion for boto3.client("voice-id").evaluate_session method. boto3 documentation

# evaluate_session method definition

def evaluate_session(
    self,
    *,
    DomainId: str,
    SessionNameOrId: str,
) -> EvaluateSessionResponseTypeDef:  # (1)
    ...
  1. See EvaluateSessionResponseTypeDef
# evaluate_session method usage example with argument unpacking

kwargs: EvaluateSessionRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "SessionNameOrId": ...,
}

parent.evaluate_session(**kwargs)
  1. See EvaluateSessionRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("voice-id").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

list_domains#

Lists all the domains in the Amazon Web Services account.

Type annotations and code completion for boto3.client("voice-id").list_domains method. boto3 documentation

# list_domains method definition

def list_domains(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListDomainsResponseTypeDef:  # (1)
    ...
  1. See ListDomainsResponseTypeDef
# list_domains method usage example with argument unpacking

kwargs: ListDomainsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_domains(**kwargs)
  1. See ListDomainsRequestRequestTypeDef

list_fraudster_registration_jobs#

Lists all the fraudster registration jobs in the domain with the given JobStatus.

Type annotations and code completion for boto3.client("voice-id").list_fraudster_registration_jobs method. boto3 documentation

# list_fraudster_registration_jobs method definition

def list_fraudster_registration_jobs(
    self,
    *,
    DomainId: str,
    JobStatus: FraudsterRegistrationJobStatusType = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListFraudsterRegistrationJobsResponseTypeDef:  # (2)
    ...
  1. See FraudsterRegistrationJobStatusType
  2. See ListFraudsterRegistrationJobsResponseTypeDef
# list_fraudster_registration_jobs method usage example with argument unpacking

kwargs: ListFraudsterRegistrationJobsRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
}

parent.list_fraudster_registration_jobs(**kwargs)
  1. See ListFraudsterRegistrationJobsRequestRequestTypeDef

list_fraudsters#

Lists all fraudsters in a specified watchlist or domain.

Type annotations and code completion for boto3.client("voice-id").list_fraudsters method. boto3 documentation

# list_fraudsters method definition

def list_fraudsters(
    self,
    *,
    DomainId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
    WatchlistId: str = ...,
) -> ListFraudstersResponseTypeDef:  # (1)
    ...
  1. See ListFraudstersResponseTypeDef
# list_fraudsters method usage example with argument unpacking

kwargs: ListFraudstersRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
}

parent.list_fraudsters(**kwargs)
  1. See ListFraudstersRequestRequestTypeDef

list_speaker_enrollment_jobs#

Lists all the speaker enrollment jobs in the domain with the specified JobStatus.

Type annotations and code completion for boto3.client("voice-id").list_speaker_enrollment_jobs method. boto3 documentation

# list_speaker_enrollment_jobs method definition

def list_speaker_enrollment_jobs(
    self,
    *,
    DomainId: str,
    JobStatus: SpeakerEnrollmentJobStatusType = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListSpeakerEnrollmentJobsResponseTypeDef:  # (2)
    ...
  1. See SpeakerEnrollmentJobStatusType
  2. See ListSpeakerEnrollmentJobsResponseTypeDef
# list_speaker_enrollment_jobs method usage example with argument unpacking

kwargs: ListSpeakerEnrollmentJobsRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
}

parent.list_speaker_enrollment_jobs(**kwargs)
  1. See ListSpeakerEnrollmentJobsRequestRequestTypeDef

list_speakers#

Lists all speakers in a specified domain.

Type annotations and code completion for boto3.client("voice-id").list_speakers method. boto3 documentation

# list_speakers method definition

def list_speakers(
    self,
    *,
    DomainId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListSpeakersResponseTypeDef:  # (1)
    ...
  1. See ListSpeakersResponseTypeDef
# list_speakers method usage example with argument unpacking

kwargs: ListSpeakersRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
}

parent.list_speakers(**kwargs)
  1. See ListSpeakersRequestRequestTypeDef

list_tags_for_resource#

Lists all tags associated with a specified Voice ID resource.

Type annotations and code completion for boto3.client("voice-id").list_tags_for_resource method. boto3 documentation

# list_tags_for_resource method definition

def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

list_watchlists#

Lists all watchlists in a specified domain.

Type annotations and code completion for boto3.client("voice-id").list_watchlists method. boto3 documentation

# list_watchlists method definition

def list_watchlists(
    self,
    *,
    DomainId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListWatchlistsResponseTypeDef:  # (1)
    ...
  1. See ListWatchlistsResponseTypeDef
# list_watchlists method usage example with argument unpacking

kwargs: ListWatchlistsRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
}

parent.list_watchlists(**kwargs)
  1. See ListWatchlistsRequestRequestTypeDef

opt_out_speaker#

Opts out a speaker from Voice ID.

Type annotations and code completion for boto3.client("voice-id").opt_out_speaker method. boto3 documentation

# opt_out_speaker method definition

def opt_out_speaker(
    self,
    *,
    DomainId: str,
    SpeakerId: str,
) -> OptOutSpeakerResponseTypeDef:  # (1)
    ...
  1. See OptOutSpeakerResponseTypeDef
# opt_out_speaker method usage example with argument unpacking

kwargs: OptOutSpeakerRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "SpeakerId": ...,
}

parent.opt_out_speaker(**kwargs)
  1. See OptOutSpeakerRequestRequestTypeDef

start_fraudster_registration_job#

Starts a new batch fraudster registration job using provided details.

Type annotations and code completion for boto3.client("voice-id").start_fraudster_registration_job method. boto3 documentation

# start_fraudster_registration_job method definition

def start_fraudster_registration_job(
    self,
    *,
    DataAccessRoleArn: str,
    DomainId: str,
    InputDataConfig: InputDataConfigTypeDef,  # (1)
    OutputDataConfig: OutputDataConfigTypeDef,  # (2)
    ClientToken: str = ...,
    JobName: str = ...,
    RegistrationConfig: RegistrationConfigTypeDef = ...,  # (3)
) -> StartFraudsterRegistrationJobResponseTypeDef:  # (4)
    ...
  1. See InputDataConfigTypeDef
  2. See OutputDataConfigTypeDef
  3. See RegistrationConfigTypeDef
  4. See StartFraudsterRegistrationJobResponseTypeDef
# start_fraudster_registration_job method usage example with argument unpacking

kwargs: StartFraudsterRegistrationJobRequestRequestTypeDef = {  # (1)
    "DataAccessRoleArn": ...,
    "DomainId": ...,
    "InputDataConfig": ...,
    "OutputDataConfig": ...,
}

parent.start_fraudster_registration_job(**kwargs)
  1. See StartFraudsterRegistrationJobRequestRequestTypeDef

start_speaker_enrollment_job#

Starts a new batch speaker enrollment job using specified details.

Type annotations and code completion for boto3.client("voice-id").start_speaker_enrollment_job method. boto3 documentation

# start_speaker_enrollment_job method definition

def start_speaker_enrollment_job(
    self,
    *,
    DataAccessRoleArn: str,
    DomainId: str,
    InputDataConfig: InputDataConfigTypeDef,  # (1)
    OutputDataConfig: OutputDataConfigTypeDef,  # (2)
    ClientToken: str = ...,
    EnrollmentConfig: EnrollmentConfigTypeDef = ...,  # (3)
    JobName: str = ...,
) -> StartSpeakerEnrollmentJobResponseTypeDef:  # (4)
    ...
  1. See InputDataConfigTypeDef
  2. See OutputDataConfigTypeDef
  3. See EnrollmentConfigTypeDef
  4. See StartSpeakerEnrollmentJobResponseTypeDef
# start_speaker_enrollment_job method usage example with argument unpacking

kwargs: StartSpeakerEnrollmentJobRequestRequestTypeDef = {  # (1)
    "DataAccessRoleArn": ...,
    "DomainId": ...,
    "InputDataConfig": ...,
    "OutputDataConfig": ...,
}

parent.start_speaker_enrollment_job(**kwargs)
  1. See StartSpeakerEnrollmentJobRequestRequestTypeDef

tag_resource#

Tags a Voice ID resource with the provided list of tags.

Type annotations and code completion for boto3.client("voice-id").tag_resource method. boto3 documentation

# tag_resource method definition

def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource#

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

Type annotations and code completion for boto3.client("voice-id").untag_resource method. boto3 documentation

# untag_resource method definition

def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_domain#

Updates the specified domain.

Type annotations and code completion for boto3.client("voice-id").update_domain method. boto3 documentation

# update_domain method definition

def update_domain(
    self,
    *,
    DomainId: str,
    Name: str,
    ServerSideEncryptionConfiguration: ServerSideEncryptionConfigurationTypeDef,  # (1)
    Description: str = ...,
) -> UpdateDomainResponseTypeDef:  # (2)
    ...
  1. See ServerSideEncryptionConfigurationTypeDef
  2. See UpdateDomainResponseTypeDef
# update_domain method usage example with argument unpacking

kwargs: UpdateDomainRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "Name": ...,
    "ServerSideEncryptionConfiguration": ...,
}

parent.update_domain(**kwargs)
  1. See UpdateDomainRequestRequestTypeDef

update_watchlist#

Updates the specified watchlist.

Type annotations and code completion for boto3.client("voice-id").update_watchlist method. boto3 documentation

# update_watchlist method definition

def update_watchlist(
    self,
    *,
    DomainId: str,
    WatchlistId: str,
    Description: str = ...,
    Name: str = ...,
) -> UpdateWatchlistResponseTypeDef:  # (1)
    ...
  1. See UpdateWatchlistResponseTypeDef
# update_watchlist method usage example with argument unpacking

kwargs: UpdateWatchlistRequestRequestTypeDef = {  # (1)
    "DomainId": ...,
    "WatchlistId": ...,
}

parent.update_watchlist(**kwargs)
  1. See UpdateWatchlistRequestRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("voice-id").get_paginator method with overloads.