start_speaker_enrollment_job
async
¶
start_speaker_enrollment_job(
domain_id: DomainId,
data_access_role_arn: IamRoleArn,
input_data_config: InputDataConfig,
output_data_config: OutputDataConfig,
*,
config_overrides: Optional[AsyncVoiceIDClientConfig] = None,
client_token: Optional[ClientTokenString] = None,
job_name: Optional[JobName] = None,
enrollment_config: Optional[EnrollmentConfig] = None,
) -> StartSpeakerEnrollmentJobResponse
Starts a new batch speaker enrollment job using specified details.
Parameters:
-
client_token(Optional[ClientTokenString], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
-
job_name(Optional[JobName], default:None) –A name for your speaker enrollment job.
-
domain_id(DomainId) –The identifier of the domain that contains the speaker enrollment job and in which the speakers are enrolled.
-
data_access_role_arn(IamRoleArn) –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.
-
enrollment_config(Optional[EnrollmentConfig], default:None) –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.
-
input_data_config(InputDataConfig) –The input data config containing the S3 location for the input manifest file that contains the list of speaker enrollment requests.
-
output_data_config(OutputDataConfig) –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.
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/async_voice_id.py
1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 | |