#[non_exhaustive]pub struct GetTranscriptArgs {
pub file_id_or_url: Option<FileIdOrUrl>,
pub timestamp_level: TimestampLevel,
pub included_special_words: String,
pub audio_language: String,
}dbx_riviera only.Expand description
Arguments for the asynchronous get_transcript_async route. Exactly one of file_id, path,
or url must be supplied via file_id_or_url to identify the audio or video asset to
transcribe.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file_id_or_url: Option<FileIdOrUrl>Identifier of the media asset to transcribe. Callers must set exactly one of the oneof
variants: - file_id: a Dropbox-issued file id (format: “id:url
requests against Dropbox links are rejected with an ACCESS_ERROR). Links protected by a
password are rejected with shared_link_password_protected; links with downloads disabled
are rejected with link_download_disabled_error. - External URLs are fetched over HTTPS
through the backend’s egress proxy and must point at a supported audio/video file extension.
The referenced asset must be an audio or video file in a supported format; requests against
files with no audio track return a no_audio_error.
timestamp_level: TimestampLevelGranularity of the time offsets returned for each transcript segment. Defaults to `SENTENCE.
- SENTENCE: one segment per spoken sentence (recommended). - WORD: one segment per word, useful for fine-grained alignment such as captioning or highlight-as-you-listen experiences.
included_special_words: StringComma-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.
audio_language: StringOptional BCP-47 language tag hinting the spoken language of the source audio (e.g. “en-US”, “ja-JP”). When empty, the service auto-detects the language; supplying a hint improves accuracy and latency for short or ambiguous clips. Unsupported languages fall back to auto-detection.
Implementations§
Source§impl GetTranscriptArgs
impl GetTranscriptArgs
pub fn with_file_id_or_url(self, value: FileIdOrUrl) -> Self
pub fn with_timestamp_level(self, value: TimestampLevel) -> Self
pub fn with_included_special_words(self, value: String) -> Self
pub fn with_audio_language(self, value: String) -> Self
Trait Implementations§
Source§impl Clone for GetTranscriptArgs
impl Clone for GetTranscriptArgs
Source§fn clone(&self) -> GetTranscriptArgs
fn clone(&self) -> GetTranscriptArgs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetTranscriptArgs
impl Debug for GetTranscriptArgs
Source§impl Default for GetTranscriptArgs
impl Default for GetTranscriptArgs
Source§impl<'de> Deserialize<'de> for GetTranscriptArgs
impl<'de> Deserialize<'de> for GetTranscriptArgs
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl PartialEq for GetTranscriptArgs
impl PartialEq for GetTranscriptArgs
Source§fn eq(&self, other: &GetTranscriptArgs) -> bool
fn eq(&self, other: &GetTranscriptArgs) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for GetTranscriptArgs
impl Serialize for GetTranscriptArgs
impl Eq for GetTranscriptArgs
impl StructuralPartialEq for GetTranscriptArgs
Auto Trait Implementations§
impl Freeze for GetTranscriptArgs
impl RefUnwindSafe for GetTranscriptArgs
impl Send for GetTranscriptArgs
impl Sync for GetTranscriptArgs
impl Unpin for GetTranscriptArgs
impl UnsafeUnpin for GetTranscriptArgs
impl UnwindSafe for GetTranscriptArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.