348 lines
12 KiB
JSON
348 lines
12 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"site": "www.doubao.com",
|
|
"adapter_version": "2026.09.26",
|
|
"min_app_version": "3.0.0",
|
|
"config": {
|
|
"presets": {
|
|
"文本-图像预设": {
|
|
"selectors": {
|
|
"input_box": "div[data-testid=\"chat_input_input\"] div.tiptap, [data-testid=\"chat_input_input\"] [contenteditable=\"true\"], div.tiptap.ProseMirror, textarea[data-testid=\"chat_input_input\"], textarea[placeholder], textarea",
|
|
"send_btn": "button[data-testid=\"chat_input_send_button\"], button[aria-label*=\"发送\"], button[type=\"submit\"]",
|
|
"result_container": "main [aria-label=\"doc_editor\"], [data-testid=\"message_content\"], [data-testid=\"message-content\"]",
|
|
"new_chat_btn": "[data-testid=\"create_conversation_button\"], [data-testid=\"create-new-chat-button\"], button[aria-label*=\"新对话\"]"
|
|
},
|
|
"workflow": [
|
|
{
|
|
"action": "KEY_PRESS",
|
|
"target": "ctrl+k",
|
|
"optional": true,
|
|
"value": null
|
|
},
|
|
{
|
|
"action": "WAIT",
|
|
"target": "",
|
|
"optional": false,
|
|
"value": "0.5"
|
|
},
|
|
{
|
|
"action": "FILL_INPUT",
|
|
"target": "input_box",
|
|
"optional": false,
|
|
"value": null
|
|
},
|
|
{
|
|
"action": "KEY_PRESS",
|
|
"target": "Enter",
|
|
"optional": true,
|
|
"value": null
|
|
},
|
|
{
|
|
"action": "STREAM_WAIT",
|
|
"target": "result_container",
|
|
"optional": false,
|
|
"value": null
|
|
}
|
|
],
|
|
"stealth": false,
|
|
"image_extraction": {
|
|
"enabled": true,
|
|
"modalities": {
|
|
"image": {
|
|
"enabled": true,
|
|
"run_policy": "on_signal",
|
|
"quick_probe_timeout_seconds": 1,
|
|
"late_wait_timeout_seconds": 45,
|
|
"blind_wait_timeout_seconds": 1
|
|
},
|
|
"audio": {
|
|
"enabled": false,
|
|
"run_policy": "disabled",
|
|
"quick_probe_timeout_seconds": 1,
|
|
"capture_timeout_seconds": 15
|
|
},
|
|
"video": {
|
|
"enabled": false,
|
|
"run_policy": "disabled",
|
|
"quick_probe_timeout_seconds": 1,
|
|
"late_wait_timeout_seconds": 90
|
|
}
|
|
},
|
|
"selector": "img",
|
|
"audio_selector": "audio, audio source",
|
|
"video_selector": "video, video source",
|
|
"container_selector": null,
|
|
"force_postprocess": false,
|
|
"debounce_seconds": 2,
|
|
"wait_for_load": true,
|
|
"load_timeout_seconds": 10,
|
|
"download_blobs": true,
|
|
"max_size_mb": 10,
|
|
"canvas_export_mime": "image/jpeg",
|
|
"canvas_export_quality": 0.88,
|
|
"src_allow_patterns": [],
|
|
"mode": "all",
|
|
"audio_capture_enabled": false,
|
|
"audio_capture_mute_playback": true,
|
|
"audio_capture_preload_enabled": true,
|
|
"audio_capture_reload_before_workflow": false,
|
|
"audio_capture_preserve_graph": true,
|
|
"audio_capture_terminal_settle_seconds": 0.35,
|
|
"audio_trigger_selector": "",
|
|
"audio_trigger_labels": [
|
|
"朗读",
|
|
"语音朗读",
|
|
"收听"
|
|
],
|
|
"audio_capture_max_wait_seconds": 15,
|
|
"audio_capture_min_wait_seconds": 2,
|
|
"audio_capture_hard_max_wait_seconds": 45,
|
|
"audio_capture_estimated_chars_per_second": 4.8,
|
|
"audio_capture_wait_padding_seconds": 1.2,
|
|
"audio_network_capture": {
|
|
"enabled": false,
|
|
"timeout_seconds": 2.5,
|
|
"transport": "page_websocket_probe",
|
|
"url_patterns": [
|
|
"voicegenie",
|
|
"speech",
|
|
"audio",
|
|
"tts"
|
|
],
|
|
"extractor": "voicegenie_ogg_pages",
|
|
"settle_seconds": 0.35,
|
|
"max_payload_bytes": 10485760
|
|
},
|
|
"audio_browser_tts_fallback": {
|
|
"enabled": false,
|
|
"provider": "doubao_samantha",
|
|
"speaker": "2",
|
|
"speech_rate": 0,
|
|
"pitch": 0,
|
|
"format": "aac",
|
|
"timeout_seconds": 30,
|
|
"pc_version": "3.20.2",
|
|
"aid": "497858",
|
|
"real_aid": "497858",
|
|
"language": "zh",
|
|
"device_platform": "web",
|
|
"pkg_type": "release_version",
|
|
"region": "CN",
|
|
"sys_region": "CN",
|
|
"use_olympus_account": "1",
|
|
"samantha_web": "1"
|
|
},
|
|
"audio_capture_poll_seconds": 0.25,
|
|
"audio_capture_silence_seconds": 1.2,
|
|
"audio_capture_activity_threshold": 0.006,
|
|
"audio_capture_activity_silence_seconds": 0.65
|
|
},
|
|
"file_paste": {
|
|
"enabled": true,
|
|
"threshold": 50000,
|
|
"temp_file_type": "txt",
|
|
"hint_text": "完全专注于文件内容",
|
|
"txt_hint_text": "完全专注于文件内容",
|
|
"pdf_hint_text": "完全专注于文件内容",
|
|
"error_hint_text": "输入文本长度超过限制,已中止发送",
|
|
"reacquire_input_after_upload": false,
|
|
"post_upload_input_selector": "",
|
|
"post_upload_settle": 0,
|
|
"upload_signal_timeout": 2.5,
|
|
"upload_signal_grace": 3,
|
|
"state_probe": {
|
|
"enabled": false,
|
|
"code": ""
|
|
}
|
|
},
|
|
"stream_config": {
|
|
"mode": "network",
|
|
"hard_timeout": 300,
|
|
"network": {
|
|
"listen_pattern": "chat/completion",
|
|
"parser": "doubao",
|
|
"silence_threshold": 3,
|
|
"response_interval": 0.5
|
|
}
|
|
},
|
|
"prompt_padding": {
|
|
"enabled": false,
|
|
"marker_text": "测试号,无实际意义",
|
|
"segments_per_side": 12,
|
|
"random_insert_enabled": false,
|
|
"random_insert_chars": ""
|
|
}
|
|
},
|
|
"朗读": {
|
|
"selectors": {
|
|
"input_box": "div[data-testid=\"chat_input_input\"] div.tiptap, [data-testid=\"chat_input_input\"] [contenteditable=\"true\"], div.tiptap.ProseMirror, textarea[data-testid=\"chat_input_input\"], textarea[placeholder], textarea",
|
|
"send_btn": "button[data-testid=\"chat_input_send_button\"], button[aria-label*=\"发送\"], button[type=\"submit\"]",
|
|
"result_container": "main [aria-label=\"doc_editor\"], [data-testid=\"message_content\"], [data-testid=\"message-content\"]",
|
|
"new_chat_btn": "[data-testid=\"create_conversation_button\"], [data-testid=\"create-new-chat-button\"], button[aria-label*=\"新对话\"]"
|
|
},
|
|
"workflow": [
|
|
{
|
|
"action": "KEY_PRESS",
|
|
"target": "ctrl+k",
|
|
"optional": false,
|
|
"value": null
|
|
},
|
|
{
|
|
"action": "WAIT",
|
|
"target": "",
|
|
"optional": false,
|
|
"value": "0.5"
|
|
},
|
|
{
|
|
"action": "FILL_INPUT",
|
|
"target": "input_box",
|
|
"optional": false,
|
|
"value": null
|
|
},
|
|
{
|
|
"action": "KEY_PRESS",
|
|
"target": "Enter",
|
|
"optional": true,
|
|
"value": null
|
|
},
|
|
{
|
|
"action": "STREAM_WAIT",
|
|
"target": "result_container",
|
|
"optional": false,
|
|
"value": null
|
|
}
|
|
],
|
|
"stealth": true,
|
|
"image_extraction": {
|
|
"enabled": true,
|
|
"modalities": {
|
|
"image": {
|
|
"enabled": false,
|
|
"run_policy": "disabled",
|
|
"quick_probe_timeout_seconds": 1,
|
|
"late_wait_timeout_seconds": 45,
|
|
"blind_wait_timeout_seconds": 1
|
|
},
|
|
"audio": {
|
|
"enabled": true,
|
|
"run_policy": "probe_if_trigger_found",
|
|
"quick_probe_timeout_seconds": 1,
|
|
"capture_timeout_seconds": 10
|
|
},
|
|
"video": {
|
|
"enabled": false,
|
|
"run_policy": "disabled",
|
|
"quick_probe_timeout_seconds": 1,
|
|
"late_wait_timeout_seconds": 90
|
|
}
|
|
},
|
|
"selector": "img",
|
|
"audio_selector": "audio, audio source",
|
|
"video_selector": "video, video source",
|
|
"container_selector": null,
|
|
"force_postprocess": false,
|
|
"debounce_seconds": 0,
|
|
"wait_for_load": true,
|
|
"load_timeout_seconds": 10,
|
|
"download_blobs": true,
|
|
"max_size_mb": 10,
|
|
"canvas_export_mime": "image/jpeg",
|
|
"canvas_export_quality": 0.88,
|
|
"src_allow_patterns": [],
|
|
"mode": "all",
|
|
"audio_capture_enabled": true,
|
|
"audio_capture_mute_playback": true,
|
|
"audio_capture_preload_enabled": false,
|
|
"audio_capture_reload_before_workflow": false,
|
|
"audio_capture_preserve_graph": true,
|
|
"audio_capture_terminal_settle_seconds": 0.45,
|
|
"audio_trigger_selector": "button[aria-label=\"朗读\"], button[aria-label*=\"朗读\"], button[aria-label*=\"播报\"], button[data-dbx-name=\"button\"][aria-label*=\"朗读\"], button[data-dbx-name=\"button\"][aria-label*=\"播报\"], button.voiceButton-GAZh3G, [data-testid*=\"voice\"] button, [class*=\"voice\"] button, [role=\"button\"][aria-label*=\"朗读\"], [role=\"button\"][aria-label*=\"播报\"]",
|
|
"audio_trigger_labels": [
|
|
"朗读",
|
|
"语音朗读",
|
|
"收听",
|
|
"开启自动播报",
|
|
"自动播报",
|
|
"播报"
|
|
],
|
|
"audio_capture_max_wait_seconds": 10,
|
|
"audio_capture_min_wait_seconds": 2,
|
|
"audio_capture_hard_max_wait_seconds": 45,
|
|
"audio_capture_estimated_chars_per_second": 4.8,
|
|
"audio_capture_wait_padding_seconds": 1.2,
|
|
"audio_network_capture": {
|
|
"enabled": true,
|
|
"timeout_seconds": 2.5,
|
|
"transport": "page_websocket_probe",
|
|
"url_patterns": [
|
|
"voicegenie"
|
|
],
|
|
"extractor": "voicegenie_binary_stream",
|
|
"settle_seconds": 0.35,
|
|
"max_payload_bytes": 10485760
|
|
},
|
|
"audio_browser_tts_fallback": {
|
|
"enabled": true,
|
|
"provider": "doubao_samantha",
|
|
"speaker": "2",
|
|
"speech_rate": 0,
|
|
"pitch": 0,
|
|
"format": "aac",
|
|
"timeout_seconds": 30,
|
|
"pc_version": "3.20.2",
|
|
"aid": "497858",
|
|
"real_aid": "497858",
|
|
"language": "zh",
|
|
"device_platform": "web",
|
|
"pkg_type": "release_version",
|
|
"region": "CN",
|
|
"sys_region": "CN",
|
|
"use_olympus_account": "1",
|
|
"samantha_web": "1"
|
|
},
|
|
"audio_capture_poll_seconds": 0.25,
|
|
"audio_capture_silence_seconds": 0.8,
|
|
"audio_capture_activity_threshold": 0.006,
|
|
"audio_capture_activity_silence_seconds": 0.65
|
|
},
|
|
"file_paste": {
|
|
"enabled": true,
|
|
"threshold": 50000,
|
|
"temp_file_type": "txt",
|
|
"hint_text": "完全专注于文件内容",
|
|
"txt_hint_text": "完全专注于文件内容",
|
|
"pdf_hint_text": "完全专注于文件内容",
|
|
"error_hint_text": "输入文本长度超过限制,已中止发送",
|
|
"reacquire_input_after_upload": false,
|
|
"post_upload_input_selector": "",
|
|
"post_upload_settle": 0,
|
|
"upload_signal_timeout": 2.5,
|
|
"upload_signal_grace": 3,
|
|
"state_probe": {
|
|
"enabled": false,
|
|
"code": ""
|
|
}
|
|
},
|
|
"stream_config": {
|
|
"mode": "network",
|
|
"hard_timeout": 300,
|
|
"network": {
|
|
"listen_pattern": "chat/completion",
|
|
"parser": "doubao",
|
|
"silence_threshold": 3,
|
|
"response_interval": 0.5
|
|
}
|
|
},
|
|
"prompt_padding": {
|
|
"enabled": false,
|
|
"marker_text": "测试号,无实际意义",
|
|
"segments_per_side": 12,
|
|
"random_insert_enabled": false,
|
|
"random_insert_chars": ""
|
|
}
|
|
}
|
|
},
|
|
"default_preset": "朗读"
|
|
}
|
|
}
|