Class GetTranscriptArgs
Arguments for the asynchronous GetTranscriptAsyncAsync(GetTranscriptArgs) GetTranscriptAsyncAsync(GetTranscriptArgs) route. Exactly one of FileIdOrUrl.FileId, FileIdOrUrl.Path, or FileIdOrUrl.Url must be supplied via FileIdOrUrl to identify the audio or video asset to transcribe.
Inherited Members
Namespace: Dropbox.Api.Riviera
Assembly: Dropbox.Api.dll
Syntax
public class GetTranscriptArgs
Constructors
View SourceGetTranscriptArgs(FileIdOrUrl, TimestampLevel, string, string)
Initializes a new instance of the GetTranscriptArgs class.
Declaration
public GetTranscriptArgs(FileIdOrUrl fileIdOrUrl = null, TimestampLevel timestampLevel = null, string includedSpecialWords = "", string audioLanguage = "")
Parameters
| Type | Name | Description |
|---|---|---|
| FileIdOrUrl | fileIdOrUrl | Identifier of the media asset to transcribe. Callers must set exactly one of the FileIdOrUrl variants. The referenced asset must be an audio or video file in a supported format (see the route description for the list); requests against files with no audio track fail with ContentApiV2Error.NoAudioError. |
| TimestampLevel | timestampLevel | Granularity of the time offsets returned for each transcript segment. Defaults to TimestampLevel.Sentence when the field is omitted. |
| string | includedSpecialWords | Comma-delimited list of non-lexical filler words
to preserve in the transcript output, e.g. |
| string | audioLanguage | Hint for the spoken language of the source audio, as an ISO 639-1 code (e.g. "en", "ja"). When empty, the service auto-detects the language; supplying a hint improves accuracy and latency for short or ambiguous clips. Languages the service does not support fall back to auto-detection. |
Properties
View SourceAudioLanguage
Hint for the spoken language of the source audio, as an ISO 639-1 code (e.g. "en", "ja"). When empty, the service auto-detects the language; supplying a hint improves accuracy and latency for short or ambiguous clips. Languages the service does not support fall back to auto-detection.
Declaration
public string AudioLanguage { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
FileIdOrUrl
Identifier of the media asset to transcribe. Callers must set exactly one of the FileIdOrUrl variants. The referenced asset must be an audio or video file in a supported format (see the route description for the list); requests against files with no audio track fail with ContentApiV2Error.NoAudioError.
Declaration
public FileIdOrUrl FileIdOrUrl { get; protected set; }
Property Value
| Type | Description |
|---|---|
| FileIdOrUrl |
IncludedSpecialWords
Comma-delimited list of non-lexical filler words to preserve in the transcript output, e.g. `"uh, ah, uhm"`. By default these fillers are stripped. Unrecognized tokens are ignored. Leave empty to use the default filtering behavior.
Declaration
public string IncludedSpecialWords { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
TimestampLevel
Granularity of the time offsets returned for each transcript segment. Defaults to TimestampLevel.Sentence when the field is omitted.
Declaration
public TimestampLevel TimestampLevel { get; protected set; }
Property Value
| Type | Description |
|---|---|
| TimestampLevel |