libZSservicesZSamazonka-voice-idZSamazonka-voice-id
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.VoiceId.Types.AuthenticationResult

Description

 
Synopsis

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.

Constructors

AuthenticationResult' 

Fields

  • customerSpeakerId :: Maybe (Sensitive Text)

    The client-provided identifier for the speaker whose authentication result is produced. Only present if a SpeakerId is provided for the session.

  • score :: Maybe Natural

    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.

  • authenticationResultId :: Maybe Text

    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.

  • decision :: Maybe AuthenticationDecision

    The authentication decision produced by Voice ID, processed against the current session state and streamed audio of the speaker.

  • configuration :: Maybe AuthenticationConfiguration

    The AuthenticationConfiguration used to generate this authentication result.

  • audioAggregationStartedAt :: Maybe POSIX

    A timestamp indicating when audio aggregation started for this authentication result.

  • generatedSpeakerId :: Maybe Text

    The service-generated identifier for the speaker whose authentication result is produced.

  • audioAggregationEndedAt :: Maybe POSIX

    A timestamp indicating when audio aggregation ended for this authentication result.

Instances

Instances details
Eq AuthenticationResult Source # 
Instance details

Defined in Amazonka.VoiceId.Types.AuthenticationResult

Show AuthenticationResult Source # 
Instance details

Defined in Amazonka.VoiceId.Types.AuthenticationResult

Generic AuthenticationResult Source # 
Instance details

Defined in Amazonka.VoiceId.Types.AuthenticationResult

Associated Types

type Rep AuthenticationResult :: Type -> Type #

NFData AuthenticationResult Source # 
Instance details

Defined in Amazonka.VoiceId.Types.AuthenticationResult

Methods

rnf :: AuthenticationResult -> () #

Hashable AuthenticationResult Source # 
Instance details

Defined in Amazonka.VoiceId.Types.AuthenticationResult

FromJSON AuthenticationResult Source # 
Instance details

Defined in Amazonka.VoiceId.Types.AuthenticationResult

type Rep AuthenticationResult Source # 
Instance details

Defined in Amazonka.VoiceId.Types.AuthenticationResult

type Rep AuthenticationResult = D1 ('MetaData "AuthenticationResult" "Amazonka.VoiceId.Types.AuthenticationResult" "libZSservicesZSamazonka-voice-idZSamazonka-voice-id" 'False) (C1 ('MetaCons "AuthenticationResult'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "customerSpeakerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "authenticationResultId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "decision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AuthenticationDecision)))) :*: ((S1 ('MetaSel ('Just "configuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AuthenticationConfiguration)) :*: S1 ('MetaSel ('Just "audioAggregationStartedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "generatedSpeakerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "audioAggregationEndedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))))

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.