Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data AuthenticationResult = AuthenticationResult' {
- customerSpeakerId :: Maybe (Sensitive Text)
- score :: Maybe Natural
- authenticationResultId :: Maybe Text
- decision :: Maybe AuthenticationDecision
- configuration :: Maybe AuthenticationConfiguration
- audioAggregationStartedAt :: Maybe POSIX
- generatedSpeakerId :: Maybe Text
- audioAggregationEndedAt :: Maybe POSIX
- newAuthenticationResult :: AuthenticationResult
- authenticationResult_customerSpeakerId :: Lens' AuthenticationResult (Maybe Text)
- authenticationResult_score :: Lens' AuthenticationResult (Maybe Natural)
- authenticationResult_authenticationResultId :: Lens' AuthenticationResult (Maybe Text)
- authenticationResult_decision :: Lens' AuthenticationResult (Maybe AuthenticationDecision)
- authenticationResult_configuration :: Lens' AuthenticationResult (Maybe AuthenticationConfiguration)
- authenticationResult_audioAggregationStartedAt :: Lens' AuthenticationResult (Maybe UTCTime)
- authenticationResult_generatedSpeakerId :: Lens' AuthenticationResult (Maybe Text)
- authenticationResult_audioAggregationEndedAt :: Lens' AuthenticationResult (Maybe UTCTime)
Documentation
data AuthenticationResult Source #
The authentication result produced by Voice ID, processed against the current session state and streamed audio of the speaker.
See: newAuthenticationResult
smart constructor.
AuthenticationResult' | |
|
Instances
newAuthenticationResult :: AuthenticationResult Source #
Create a value of AuthenticationResult
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:customerSpeakerId:AuthenticationResult'
, authenticationResult_customerSpeakerId
- The client-provided identifier for the speaker whose authentication
result is produced. Only present if a SpeakerId
is provided for the
session.
$sel:score:AuthenticationResult'
, authenticationResult_score
- The authentication score for the speaker whose authentication result is
produced. This value is only present if the authentication decision is
either ACCEPT
or REJECT
.
$sel:authenticationResultId:AuthenticationResult'
, authenticationResult_authenticationResultId
- The unique identifier for this authentication result. Because there can
be multiple authentications for a given session, this field helps to
identify if the returned result is from a previous streaming activity or
a new result. Note that in absence of any new streaming activity,
AcceptanceThreshold
changes, or SpeakerId
changes, Voice ID always
returns cached Authentication Result for this API.
$sel:decision:AuthenticationResult'
, authenticationResult_decision
- The authentication decision produced by Voice ID, processed against the
current session state and streamed audio of the speaker.
$sel:configuration:AuthenticationResult'
, authenticationResult_configuration
- The AuthenticationConfiguration
used to generate this authentication
result.
$sel:audioAggregationStartedAt:AuthenticationResult'
, authenticationResult_audioAggregationStartedAt
- A timestamp indicating when audio aggregation started for this
authentication result.
$sel:generatedSpeakerId:AuthenticationResult'
, authenticationResult_generatedSpeakerId
- The service-generated identifier for the speaker whose authentication
result is produced.
$sel:audioAggregationEndedAt:AuthenticationResult'
, authenticationResult_audioAggregationEndedAt
- A timestamp indicating when audio aggregation ended for this
authentication result.
authenticationResult_customerSpeakerId :: Lens' AuthenticationResult (Maybe Text) Source #
The client-provided identifier for the speaker whose authentication
result is produced. Only present if a SpeakerId
is provided for the
session.
authenticationResult_score :: Lens' AuthenticationResult (Maybe Natural) Source #
The authentication score for the speaker whose authentication result is
produced. This value is only present if the authentication decision is
either ACCEPT
or REJECT
.
authenticationResult_authenticationResultId :: Lens' AuthenticationResult (Maybe Text) Source #
The unique identifier for this authentication result. Because there can
be multiple authentications for a given session, this field helps to
identify if the returned result is from a previous streaming activity or
a new result. Note that in absence of any new streaming activity,
AcceptanceThreshold
changes, or SpeakerId
changes, Voice ID always
returns cached Authentication Result for this API.
authenticationResult_decision :: Lens' AuthenticationResult (Maybe AuthenticationDecision) Source #
The authentication decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.
authenticationResult_configuration :: Lens' AuthenticationResult (Maybe AuthenticationConfiguration) Source #
The AuthenticationConfiguration
used to generate this authentication
result.
authenticationResult_audioAggregationStartedAt :: Lens' AuthenticationResult (Maybe UTCTime) Source #
A timestamp indicating when audio aggregation started for this authentication result.
authenticationResult_generatedSpeakerId :: Lens' AuthenticationResult (Maybe Text) Source #
The service-generated identifier for the speaker whose authentication result is produced.
authenticationResult_audioAggregationEndedAt :: Lens' AuthenticationResult (Maybe UTCTime) Source #
A timestamp indicating when audio aggregation ended for this authentication result.