dashscopeStreamingAPI.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Dashscope (阿里云通义千问) Fun-ASR Streaming Configuration
  2. # For details, see: https://help.aliyun.com/zh/dashscope/developer-reference/asr-api
  3. NAME: dashscopeStreamingASR
  4. VERSION: "v1.0.0"
  5. DESC: "阿里云通义千问 Fun-ASR 流式实时语音识别"
  6. META:
  7. official: "https://help.aliyun.com/zh/dashscope/"
  8. tips: "使用阿里云通义千问的 Fun-ASR 流式 API 进行实时语音识别,支持中英文混合识别,实时返回识别结果"
  9. fee: "付费"
  10. infer_type: "stream"
  11. CUSTOM:
  12. api_key: ""
  13. PARAMETERS: [
  14. {
  15. name: "model",
  16. description: "识别模型",
  17. type: "string",
  18. required: false,
  19. choices: ["fun-asr-realtime", "paraformer-realtime-v2", "paraformer-v2"],
  20. default: "fun-asr-realtime"
  21. },
  22. {
  23. name: "sample_rate",
  24. description: "音频采样率",
  25. type: "int",
  26. required: false,
  27. choices: [8000, 16000],
  28. default: 16000
  29. },
  30. {
  31. name: "format",
  32. description: "音频格式",
  33. type: "string",
  34. required: false,
  35. choices: ["pcm", "wav"],
  36. default: "pcm"
  37. },
  38. {
  39. name: "language_hints",
  40. description: "语言提示(仅 paraformer-realtime-v2 支持)",
  41. type: "list",
  42. required: false,
  43. choices: [],
  44. default: ["zh", "en"]
  45. }
  46. ]