Skip to main content

speakers

Creates, updates, deletes, gets or lists a speakers resource.

Overview

Namespeakers
TypeResource
Idaws.voice_id.speakers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)A timestamp of when the speaker was created.
customer_speaker_idstringThe client-provided identifier for the speaker. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9_-]*$</code>)
domain_idstringThe identifier of the domain that contains the speaker. (pattern: <code>^[a-zA-Z0-9]{22}$</code>)
generated_speaker_idstringThe service-generated identifier for the speaker. (pattern: <code>^id#[a-zA-Z0-9]{22}$</code>)
last_accessed_atstring (date-time)The timestamp of when the speaker was last accessed for enrollment, re-enrollment or a successful authentication. This timestamp is accurate to one hour.
statusstringThe current status of the speaker. (ENROLLED, EXPIRED, OPTED_OUT, PENDING)
updated_atstring (date-time)A timestamp of the speaker's last update.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_speakerselectregionDescribes the specified speaker.
list_speakersselectregionLists all speakers in a specified domain.
delete_speakerdeleteregionDeletes the specified speaker from Voice ID.
opt_out_speakerexecregion, DomainId, SpeakerIdOpts 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.
start_speaker_enrollment_jobexecregion, DataAccessRoleArn, DomainId, InputDataConfig, OutputDataConfigStarts a new batch speaker enrollment job using specified details.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the specified speaker.

SELECT
created_at,
customer_speaker_id,
domain_id,
generated_speaker_id,
last_accessed_at,
status,
updated_at
FROM aws.voice_id.speakers
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes the specified speaker from Voice ID.

DELETE FROM aws.voice_id.speakers
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

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.

EXEC aws.voice_id.speakers.opt_out_speaker
@region='{{ region }}' --required
@@json=
'{
"DomainId": "{{ DomainId }}",
"SpeakerId": "{{ SpeakerId }}"
}'
;