Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions astrbot/core/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,20 @@
"timeout": "20",
"proxy": "",
},
"StepFun ASR(API)": {
"id": "stepfun_asr",
"provider": "stepfun",
"type": "stepfun_asr",
"provider_type": "speech_to_text",
"enable": False,
"api_key": "",
"api_base": "https://api.stepfun.com/step_plan/v1",
"model": "stepaudio-2.5-asr",
"stepfun-asr-language": "zh",
"stepfun-asr-enable-itn": True,
"timeout": "20",
"proxy": "",
},
"Whisper(Local)": {
"provider": "openai",
"type": "openai_whisper_selfhost",
Expand Down Expand Up @@ -2681,6 +2695,16 @@
"type": "int",
"hint": "超时时间,单位为秒。",
},
"stepfun-asr-language": {
"description": "\u8bed\u8a00",
"type": "string",
"hint": "StepFun ASR \u7684\u8bc6\u522b\u8bed\u8a00\u3002\u9ed8\u8ba4 zh\u3002",
},
"stepfun-asr-enable-itn": {
"description": "\u6570\u5b57\u89c4\u6574",
"type": "bool",
"hint": "\u662f\u5426\u542f\u7528 StepFun ASR \u7684 ITN \u6570\u5b57\u89c4\u6574\u3002",
},
"openai-tts-voice": {
"description": "voice",
"type": "string",
Expand Down
4 changes: 4 additions & 0 deletions astrbot/core/provider/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ def dynamic_import_provider(self, type: str) -> None:
from .sources.mimo_stt_api_source import (
ProviderMiMoSTTAPI as ProviderMiMoSTTAPI,
)
case "stepfun_asr":
from .sources.stepfun_asr_source import (
ProviderStepFunASR as ProviderStepFunASR,
)
case "openai_whisper_selfhost":
from .sources.whisper_selfhosted_source import (
ProviderOpenAIWhisperSelfHost as ProviderOpenAIWhisperSelfHost,
Expand Down
Loading
Loading