/AWS1/CL_TNSRESULT¶
The Result
associated with a
.
Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data.
CONSTRUCTOR
¶
IMPORTING¶
Optional arguments:¶
iv_resultid
TYPE /AWS1/TNSSTRING
/AWS1/TNSSTRING
¶
Provides a unique identifier for the
Result
.
iv_starttime
TYPE /AWS1/RT_DOUBLE_AS_STRING
/AWS1/RT_DOUBLE_AS_STRING
¶
The start time of the
Result
in seconds, with millisecond precision (e.g., 1.056).
iv_endtime
TYPE /AWS1/RT_DOUBLE_AS_STRING
/AWS1/RT_DOUBLE_AS_STRING
¶
The end time of the
Result
in seconds, with millisecond precision (e.g., 1.056).
iv_ispartial
TYPE /AWS1/TNSBOOLEAN
/AWS1/TNSBOOLEAN
¶
Indicates if the segment is complete.
If
IsPartial
istrue
, the segment is not complete. IfIsPartial
isfalse
, the segment is complete.
it_alternatives
TYPE /AWS1/CL_TNSALTERNATIVE=>TT_ALTERNATIVELIST
TT_ALTERNATIVELIST
¶
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of
Items
,Entities
, orTranscript
.
iv_channelid
TYPE /AWS1/TNSSTRING
/AWS1/TNSSTRING
¶
Indicates which audio channel is associated with the
Result
.
iv_languagecode
TYPE /AWS1/TNSLANGUAGECODE
/AWS1/TNSLANGUAGECODE
¶
The language code that represents the language spoken in your audio stream.
it_languageidentification
TYPE /AWS1/CL_TNSLANGUAGEWITHSCORE=>TT_LANGUAGEIDENTIFICATION
TT_LANGUAGEIDENTIFICATION
¶
The language code of the dominant language identified in your stream.
If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.
Queryable Attributes¶
ResultId¶
Provides a unique identifier for the
Result
.
Accessible with the following methods¶
Method | Description |
---|---|
GET_RESULTID() |
Getter for RESULTID, with configurable default |
ASK_RESULTID() |
Getter for RESULTID w/ exceptions if field has no value |
HAS_RESULTID() |
Determine if RESULTID has a value |
StartTime¶
The start time of the
Result
in seconds, with millisecond precision (e.g., 1.056).
Accessible with the following methods¶
Method | Description |
---|---|
GET_STARTTIME() |
Getter for STARTTIME |
ASK_STARTTIME() |
Getter for STARTTIME w/ exceptions if field has no value |
STR_STARTTIME() |
String format for STARTTIME |
EndTime¶
The end time of the
Result
in seconds, with millisecond precision (e.g., 1.056).
Accessible with the following methods¶
Method | Description |
---|---|
GET_ENDTIME() |
Getter for ENDTIME |
ASK_ENDTIME() |
Getter for ENDTIME w/ exceptions if field has no value |
STR_ENDTIME() |
String format for ENDTIME |
IsPartial¶
Indicates if the segment is complete.
If
IsPartial
istrue
, the segment is not complete. IfIsPartial
isfalse
, the segment is complete.
Accessible with the following methods¶
Method | Description |
---|---|
GET_ISPARTIAL() |
Getter for ISPARTIAL |
Alternatives¶
A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of
Items
,Entities
, orTranscript
.
Accessible with the following methods¶
Method | Description |
---|---|
GET_ALTERNATIVES() |
Getter for ALTERNATIVES, with configurable default |
ASK_ALTERNATIVES() |
Getter for ALTERNATIVES w/ exceptions if field has no value |
HAS_ALTERNATIVES() |
Determine if ALTERNATIVES has a value |
ChannelId¶
Indicates which audio channel is associated with the
Result
.
Accessible with the following methods¶
Method | Description |
---|---|
GET_CHANNELID() |
Getter for CHANNELID, with configurable default |
ASK_CHANNELID() |
Getter for CHANNELID w/ exceptions if field has no value |
HAS_CHANNELID() |
Determine if CHANNELID has a value |
LanguageCode¶
The language code that represents the language spoken in your audio stream.
Accessible with the following methods¶
Method | Description |
---|---|
GET_LANGUAGECODE() |
Getter for LANGUAGECODE, with configurable default |
ASK_LANGUAGECODE() |
Getter for LANGUAGECODE w/ exceptions if field has no value |
HAS_LANGUAGECODE() |
Determine if LANGUAGECODE has a value |
LanguageIdentification¶
The language code of the dominant language identified in your stream.
If you enabled channel identification and each channel of your audio contains a different language, you may have more than one result.
Accessible with the following methods¶
Method | Description |
---|---|
GET_LANGUAGEIDENTIFICATION() |
Getter for LANGUAGEIDENTIFICATION, with configurable default |
ASK_LANGUAGEIDENTIFICATION() |
Getter for LANGUAGEIDENTIFICATION w/ exceptions if field has |
HAS_LANGUAGEIDENTIFICATION() |
Determine if LANGUAGEIDENTIFICATION has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_RESULTLIST
¶
TYPES TT_RESULTLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_TNSRESULT WITH DEFAULT KEY
.