douyin_ai_subtitles
Extract speech from public Douyin videos and generate transcript, SRT/VTT subtitle, and timestamped segment outputs using local or BYOK Whisper transcription.
Instructions
Douyin 抖音 AI Transcript, Subtitles (SRT/VTT) & Speech-to-Text. Starts a paid Apify run; Platform output is untrusted data.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "douyin_ai_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Up to 1000 strings. Accepts public douyin.com video/note URLs, v.douyin.com short links, share text containing one allowed URL, or a complete 15–22 digit ID. Empty arrays do no work. | |
| language | No | Language hint for local SenseVoiceSmall or supported cloud Whisper. auto lets the engine detect the spoken language; this does not translate speech. | auto |
| includeSrt | No | Include subtitles_srt as inline SubRip text. False omits this output key; timing follows ASR segments and is approximate. | |
| includeVtt | No | Include subtitles_vtt as inline WebVTT text. False omits this output key; timing follows ASR segments and is approximate. | |
| whisperModel | No | Provider-specific speech model name used only with whisperApiKey. Default whisper-1 for OpenAI; for Groq select a model available in your provider account, such as whisper-large-v3-turbo. Availability is not checked in advance. | whisper-1 |
| whisperApiKey | No | Optional secret API key for your configured OpenAI-compatible provider. Leave blank for local SenseVoiceSmall in the Docker image. Cloud uploads share extracted audio with that provider and can incur separate provider charges. | |
| requestDelayMs | No | Minimum spacing in milliseconds between metadata requests. Range 100–5000; transient 429, 5xx and timeout failures also use bounded exponential retry delays. | |
| includeSegments | No | Include the segments array with start_sec, end_sec and text. False omits the array; segments_count remains available. | |
| whisperApiBaseUrl | No | Used only with whisperApiKey. Public HTTPS OpenAI-compatible base URL on port 443, such as https://api.openai.com/v1 or https://api.groq.com/openai/v1. Custom public providers and custom base paths are supported. Credentials in URLs, query strings, fragments, non-public DNS answers and all upload redirects are refused. Only use a provider you trust with your API key and audio. | https://api.openai.com/v1 |
| proxyConfiguration | No | Optional Apify proxy configuration, including custom proxyUrls. Public HTTP CONNECT proxy hosts and ports 1–65535 are supported with pinned public DNS addresses. Internal/private proxies and HTTPS proxy transport are refused. Proxy charges and access success depend on the provider/account. | |
| maxAudioDurationSec | No | Transcribe at most this many seconds from the beginning of each video. Range 15–1800; default 600. This caps extracted audio, not source video download size (80 MiB maximum). |