amazonka-transcribe-2.0: Amazon Transcribe Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Transcribe.Types.RelativeTimeRange

Description

 
Synopsis

Documentation

data RelativeTimeRange Source #

A time range, in percentage, between two points in your media file.

You can use StartPercentage and EndPercentage to search a custom segment. For example, setting StartPercentage to 10 and EndPercentage to 50 only searches for your specified criteria in the audio contained between the 10 percent mark and the 50 percent mark of your media file.

You can use also First to search from the start of the media file until the time that you specify. Or use Last to search from the time that you specify until the end of the media file. For example, setting First to 10 only searches for your specified criteria in the audio contained in the first 10 percent of the media file.

If you prefer to use milliseconds instead of percentage, see .

See: newRelativeTimeRange smart constructor.

Constructors

RelativeTimeRange' 

Fields

  • endPercentage :: Maybe Natural

    The time, in percentage, when Amazon Transcribe stops searching for the specified criteria in your media file. If you include EndPercentage in your request, you must also include StartPercentage.

  • first :: Maybe Natural

    The time, in percentage, from the start of your media file until the specified value. Amazon Transcribe searches for your specified criteria in this time segment.

  • last :: Maybe Natural

    The time, in percentage, from the specified value until the end of your media file. Amazon Transcribe searches for your specified criteria in this time segment.

  • startPercentage :: Maybe Natural

    The time, in percentage, when Amazon Transcribe starts searching for the specified criteria in your media file. If you include StartPercentage in your request, you must also include EndPercentage.

Instances

Instances details
FromJSON RelativeTimeRange Source # 
Instance details

Defined in Amazonka.Transcribe.Types.RelativeTimeRange

ToJSON RelativeTimeRange Source # 
Instance details

Defined in Amazonka.Transcribe.Types.RelativeTimeRange

Generic RelativeTimeRange Source # 
Instance details

Defined in Amazonka.Transcribe.Types.RelativeTimeRange

Associated Types

type Rep RelativeTimeRange :: Type -> Type #

Read RelativeTimeRange Source # 
Instance details

Defined in Amazonka.Transcribe.Types.RelativeTimeRange

Show RelativeTimeRange Source # 
Instance details

Defined in Amazonka.Transcribe.Types.RelativeTimeRange

NFData RelativeTimeRange Source # 
Instance details

Defined in Amazonka.Transcribe.Types.RelativeTimeRange

Methods

rnf :: RelativeTimeRange -> () #

Eq RelativeTimeRange Source # 
Instance details

Defined in Amazonka.Transcribe.Types.RelativeTimeRange

Hashable RelativeTimeRange Source # 
Instance details

Defined in Amazonka.Transcribe.Types.RelativeTimeRange

type Rep RelativeTimeRange Source # 
Instance details

Defined in Amazonka.Transcribe.Types.RelativeTimeRange

type Rep RelativeTimeRange = D1 ('MetaData "RelativeTimeRange" "Amazonka.Transcribe.Types.RelativeTimeRange" "amazonka-transcribe-2.0-4BjJqzwmm0K94bsEMe1tnF" 'False) (C1 ('MetaCons "RelativeTimeRange'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "endPercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "first") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "last") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "startPercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))

newRelativeTimeRange :: RelativeTimeRange Source #

Create a value of RelativeTimeRange 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:endPercentage:RelativeTimeRange', relativeTimeRange_endPercentage - The time, in percentage, when Amazon Transcribe stops searching for the specified criteria in your media file. If you include EndPercentage in your request, you must also include StartPercentage.

$sel:first:RelativeTimeRange', relativeTimeRange_first - The time, in percentage, from the start of your media file until the specified value. Amazon Transcribe searches for your specified criteria in this time segment.

$sel:last:RelativeTimeRange', relativeTimeRange_last - The time, in percentage, from the specified value until the end of your media file. Amazon Transcribe searches for your specified criteria in this time segment.

$sel:startPercentage:RelativeTimeRange', relativeTimeRange_startPercentage - The time, in percentage, when Amazon Transcribe starts searching for the specified criteria in your media file. If you include StartPercentage in your request, you must also include EndPercentage.

relativeTimeRange_endPercentage :: Lens' RelativeTimeRange (Maybe Natural) Source #

The time, in percentage, when Amazon Transcribe stops searching for the specified criteria in your media file. If you include EndPercentage in your request, you must also include StartPercentage.

relativeTimeRange_first :: Lens' RelativeTimeRange (Maybe Natural) Source #

The time, in percentage, from the start of your media file until the specified value. Amazon Transcribe searches for your specified criteria in this time segment.

relativeTimeRange_last :: Lens' RelativeTimeRange (Maybe Natural) Source #

The time, in percentage, from the specified value until the end of your media file. Amazon Transcribe searches for your specified criteria in this time segment.

relativeTimeRange_startPercentage :: Lens' RelativeTimeRange (Maybe Natural) Source #

The time, in percentage, when Amazon Transcribe starts searching for the specified criteria in your media file. If you include StartPercentage in your request, you must also include EndPercentage.