Class: Aws::VoiceID::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::VoiceID::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-voiceid/client.rb
Overview
An API client for VoiceID. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::VoiceID::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#associate_fraudster(params = {}) ⇒ Types::AssociateFraudsterResponse
Associates the fraudsters with the watchlist specified in the same domain.
-
#create_domain(params = {}) ⇒ Types::CreateDomainResponse
Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints.
-
#create_watchlist(params = {}) ⇒ Types::CreateWatchlistResponse
Creates a watchlist that fraudsters can be a part of.
-
#delete_domain(params = {}) ⇒ Struct
Deletes the specified domain from Voice ID.
-
#delete_fraudster(params = {}) ⇒ Struct
Deletes the specified fraudster from Voice ID.
-
#delete_speaker(params = {}) ⇒ Struct
Deletes the specified speaker from Voice ID.
-
#delete_watchlist(params = {}) ⇒ Struct
Deletes the specified watchlist from Voice ID.
-
#describe_domain(params = {}) ⇒ Types::DescribeDomainResponse
Describes the specified domain.
-
#describe_fraudster(params = {}) ⇒ Types::DescribeFraudsterResponse
Describes the specified fraudster.
-
#describe_fraudster_registration_job(params = {}) ⇒ Types::DescribeFraudsterRegistrationJobResponse
Describes the specified fraudster registration job.
-
#describe_speaker(params = {}) ⇒ Types::DescribeSpeakerResponse
Describes the specified speaker.
-
#describe_speaker_enrollment_job(params = {}) ⇒ Types::DescribeSpeakerEnrollmentJobResponse
Describes the specified speaker enrollment job.
-
#describe_watchlist(params = {}) ⇒ Types::DescribeWatchlistResponse
Describes the specified watchlist.
-
#disassociate_fraudster(params = {}) ⇒ Types::DisassociateFraudsterResponse
Disassociates the fraudsters from the watchlist specified.
-
#evaluate_session(params = {}) ⇒ Types::EvaluateSessionResponse
Evaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.
-
#list_domains(params = {}) ⇒ Types::ListDomainsResponse
Lists all the domains in the Amazon Web Services account.
-
#list_fraudster_registration_jobs(params = {}) ⇒ Types::ListFraudsterRegistrationJobsResponse
Lists all the fraudster registration jobs in the domain with the given ‘JobStatus`.
-
#list_fraudsters(params = {}) ⇒ Types::ListFraudstersResponse
Lists all fraudsters in a specified watchlist or domain.
-
#list_speaker_enrollment_jobs(params = {}) ⇒ Types::ListSpeakerEnrollmentJobsResponse
Lists all the speaker enrollment jobs in the domain with the specified ‘JobStatus`.
-
#list_speakers(params = {}) ⇒ Types::ListSpeakersResponse
Lists all speakers in a specified domain.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all tags associated with a specified Voice ID resource.
-
#list_watchlists(params = {}) ⇒ Types::ListWatchlistsResponse
Lists all watchlists in a specified domain.
-
#opt_out_speaker(params = {}) ⇒ Types::OptOutSpeakerResponse
Opts out a speaker from Voice ID.
-
#start_fraudster_registration_job(params = {}) ⇒ Types::StartFraudsterRegistrationJobResponse
Starts a new batch fraudster registration job using provided details.
-
#start_speaker_enrollment_job(params = {}) ⇒ Types::StartSpeakerEnrollmentJobResponse
Starts a new batch speaker enrollment job using specified details.
-
#tag_resource(params = {}) ⇒ Struct
Tags a Voice ID resource with the provided list of tags.
-
#untag_resource(params = {}) ⇒ Struct
Removes specified tags from a specified Amazon Connect Voice ID resource.
-
#update_domain(params = {}) ⇒ Types::UpdateDomainResponse
Updates the specified domain.
-
#update_watchlist(params = {}) ⇒ Types::UpdateWatchlistResponse
Updates the specified watchlist.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
441 442 443 |
# File 'lib/aws-sdk-voiceid/client.rb', line 441 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1907 1908 1909 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1907 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1910 1911 1912 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1910 def errors_module Errors end |
Instance Method Details
#associate_fraudster(params = {}) ⇒ Types::AssociateFraudsterResponse
Associates the fraudsters with the watchlist specified in the same domain.
484 485 486 487 |
# File 'lib/aws-sdk-voiceid/client.rb', line 484 def associate_fraudster(params = {}, = {}) req = build_request(:associate_fraudster, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1880 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::VoiceID') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-voiceid' context[:gem_version] = '1.30.0' Seahorse::Client::Request.new(handlers, context) end |
#create_domain(params = {}) ⇒ Types::CreateDomainResponse
Creates a domain that contains all Amazon Connect Voice ID data, such as speakers, fraudsters, customer audio, and voiceprints. Every domain is created with a default watchlist that fraudsters can be a part of.
565 566 567 568 |
# File 'lib/aws-sdk-voiceid/client.rb', line 565 def create_domain(params = {}, = {}) req = build_request(:create_domain, params) req.send_request() end |
#create_watchlist(params = {}) ⇒ Types::CreateWatchlistResponse
Creates a watchlist that fraudsters can be a part of.
621 622 623 624 |
# File 'lib/aws-sdk-voiceid/client.rb', line 621 def create_watchlist(params = {}, = {}) req = build_request(:create_watchlist, params) req.send_request() end |
#delete_domain(params = {}) ⇒ Struct
Deletes the specified domain from Voice ID.
643 644 645 646 |
# File 'lib/aws-sdk-voiceid/client.rb', line 643 def delete_domain(params = {}, = {}) req = build_request(:delete_domain, params) req.send_request() end |
#delete_fraudster(params = {}) ⇒ Struct
Deletes the specified fraudster from Voice ID. This action disassociates the fraudster from any watchlists it is a part of.
670 671 672 673 |
# File 'lib/aws-sdk-voiceid/client.rb', line 670 def delete_fraudster(params = {}, = {}) req = build_request(:delete_fraudster, params) req.send_request() end |
#delete_speaker(params = {}) ⇒ Struct
Deletes the specified speaker from Voice ID.
696 697 698 699 |
# File 'lib/aws-sdk-voiceid/client.rb', line 696 def delete_speaker(params = {}, = {}) req = build_request(:delete_speaker, params) req.send_request() end |
#delete_watchlist(params = {}) ⇒ Struct
Deletes the specified watchlist from Voice ID. This API throws an exception when there are fraudsters in the watchlist that you are trying to delete. You must delete the fraudsters, and then delete the watchlist. Every domain has a default watchlist which cannot be deleted.
726 727 728 729 |
# File 'lib/aws-sdk-voiceid/client.rb', line 726 def delete_watchlist(params = {}, = {}) req = build_request(:delete_watchlist, params) req.send_request() end |
#describe_domain(params = {}) ⇒ Types::DescribeDomainResponse
Describes the specified domain.
765 766 767 768 |
# File 'lib/aws-sdk-voiceid/client.rb', line 765 def describe_domain(params = {}, = {}) req = build_request(:describe_domain, params) req.send_request() end |
#describe_fraudster(params = {}) ⇒ Types::DescribeFraudsterResponse
Describes the specified fraudster.
801 802 803 804 |
# File 'lib/aws-sdk-voiceid/client.rb', line 801 def describe_fraudster(params = {}, = {}) req = build_request(:describe_fraudster, params) req.send_request() end |
#describe_fraudster_registration_job(params = {}) ⇒ Types::DescribeFraudsterRegistrationJobResponse
Describes the specified fraudster registration job.
850 851 852 853 |
# File 'lib/aws-sdk-voiceid/client.rb', line 850 def describe_fraudster_registration_job(params = {}, = {}) req = build_request(:describe_fraudster_registration_job, params) req.send_request() end |
#describe_speaker(params = {}) ⇒ Types::DescribeSpeakerResponse
Describes the specified speaker.
888 889 890 891 |
# File 'lib/aws-sdk-voiceid/client.rb', line 888 def describe_speaker(params = {}, = {}) req = build_request(:describe_speaker, params) req.send_request() end |
#describe_speaker_enrollment_job(params = {}) ⇒ Types::DescribeSpeakerEnrollmentJobResponse
Describes the specified speaker enrollment job.
937 938 939 940 |
# File 'lib/aws-sdk-voiceid/client.rb', line 937 def describe_speaker_enrollment_job(params = {}, = {}) req = build_request(:describe_speaker_enrollment_job, params) req.send_request() end |
#describe_watchlist(params = {}) ⇒ Types::DescribeWatchlistResponse
Describes the specified watchlist.
975 976 977 978 |
# File 'lib/aws-sdk-voiceid/client.rb', line 975 def describe_watchlist(params = {}, = {}) req = build_request(:describe_watchlist, params) req.send_request() end |
#disassociate_fraudster(params = {}) ⇒ Types::DisassociateFraudsterResponse
Disassociates the fraudsters from the watchlist specified. Voice ID always expects a fraudster to be a part of at least one watchlist. If you try to disassociate a fraudster from its only watchlist, a ‘ValidationException` is thrown.
1020 1021 1022 1023 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1020 def disassociate_fraudster(params = {}, = {}) req = build_request(:disassociate_fraudster, params) req.send_request() end |
#evaluate_session(params = {}) ⇒ Types::EvaluateSessionResponse
Evaluates a specified session based on audio data accumulated during a streaming Amazon Connect Voice ID call.
1081 1082 1083 1084 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1081 def evaluate_session(params = {}, = {}) req = build_request(:evaluate_session, params) req.send_request() end |
#list_domains(params = {}) ⇒ Types::ListDomainsResponse
Lists all the domains in the Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1135 1136 1137 1138 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1135 def list_domains(params = {}, = {}) req = build_request(:list_domains, params) req.send_request() end |
#list_fraudster_registration_jobs(params = {}) ⇒ Types::ListFraudsterRegistrationJobsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1197 1198 1199 1200 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1197 def list_fraudster_registration_jobs(params = {}, = {}) req = build_request(:list_fraudster_registration_jobs, params) req.send_request() end |
#list_fraudsters(params = {}) ⇒ Types::ListFraudstersResponse
Lists all fraudsters in a specified watchlist or domain.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1254 1255 1256 1257 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1254 def list_fraudsters(params = {}, = {}) req = build_request(:list_fraudsters, params) req.send_request() end |
#list_speaker_enrollment_jobs(params = {}) ⇒ Types::ListSpeakerEnrollmentJobsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1316 1317 1318 1319 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1316 def list_speaker_enrollment_jobs(params = {}, = {}) req = build_request(:list_speaker_enrollment_jobs, params) req.send_request() end |
#list_speakers(params = {}) ⇒ Types::ListSpeakersResponse
Lists all speakers in a specified domain.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1369 1370 1371 1372 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1369 def list_speakers(params = {}, = {}) req = build_request(:list_speakers, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists all tags associated with a specified Voice ID resource.
1400 1401 1402 1403 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1400 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_watchlists(params = {}) ⇒ Types::ListWatchlistsResponse
Lists all watchlists in a specified domain.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1453 1454 1455 1456 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1453 def list_watchlists(params = {}, = {}) req = build_request(:list_watchlists, params) req.send_request() end |
#opt_out_speaker(params = {}) ⇒ Types::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.
1497 1498 1499 1500 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1497 def opt_out_speaker(params = {}, = {}) req = build_request(:opt_out_speaker, params) req.send_request() end |
#start_fraudster_registration_job(params = {}) ⇒ Types::StartFraudsterRegistrationJobResponse
Starts a new batch fraudster registration job using provided details.
1598 1599 1600 1601 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1598 def start_fraudster_registration_job(params = {}, = {}) req = build_request(:start_fraudster_registration_job, params) req.send_request() end |
#start_speaker_enrollment_job(params = {}) ⇒ Types::StartSpeakerEnrollmentJobResponse
Starts a new batch speaker enrollment job using specified details.
1703 1704 1705 1706 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1703 def start_speaker_enrollment_job(params = {}, = {}) req = build_request(:start_speaker_enrollment_job, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Tags a Voice ID resource with the provided list of tags.
1735 1736 1737 1738 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1735 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes specified tags from a specified Amazon Connect Voice ID resource.
1763 1764 1765 1766 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1763 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_domain(params = {}) ⇒ Types::UpdateDomainResponse
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.
1824 1825 1826 1827 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1824 def update_domain(params = {}, = {}) req = build_request(:update_domain, params) req.send_request() end |
#update_watchlist(params = {}) ⇒ Types::UpdateWatchlistResponse
Updates the specified watchlist. Every domain has a default watchlist which cannot be updated.
1871 1872 1873 1874 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1871 def update_watchlist(params = {}, = {}) req = build_request(:update_watchlist, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1900 1901 1902 |
# File 'lib/aws-sdk-voiceid/client.rb', line 1900 def waiter_names [] end |