opt_out_speaker
¶
opt_out_speaker(
domain_id: DomainId,
speaker_id: SpeakerId,
*,
config_overrides: Optional[VoiceIDClientConfig] = None,
) -> OptOutSpeakerResponse
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.
Parameters:
-
domain_id(DomainId) –The identifier of the domain that contains the speaker.
-
speaker_id(SpeakerId) –The identifier of the speaker you want opted-out.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action. Check the error message and try again.
-
ConflictException–The request failed due to a conflict. Check the
ConflictTypeand error message for more details. -
InternalServerException–The request failed due to an unknown error on the server side.
-
ResourceNotFoundException–The specified resource cannot be found. Check the
ResourceTypeand error message for more details. -
ServiceQuotaExceededException–The request exceeded the service quota. Refer to Voice ID Service Quotas and try your request again.
-
ThrottlingException–The request was denied due to request throttling. Please slow down your request rate. Refer to Amazon Connect Voice ID Service API throttling quotas and try your request again.
-
ValidationException–The request failed one or more validations; check the error message for more details.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_voice_id/_services/voice_id.py
1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 | |