dashscopeAPI.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Dashscope (阿里云通义千问) Fun-ASR Configuration
  2. # For details, see: https://help.aliyun.com/zh/dashscope/developer-reference/asr-api
  3. NAME: dashscopeASR
  4. VERSION: "v2.0.0"
  5. DESC: "阿里云通义千问 Fun-ASR 实时语音识别(支持通义千问3-ASR-Flash)"
  6. META:
  7. official: "https://help.aliyun.com/zh/dashscope/"
  8. tips: "使用阿里云通义千问的 Fun-ASR API 进行语音识别,支持中英文混合识别。推荐使用 fun-asr-realtime 模型(通义千问3-ASR-Flash)"
  9. fee: "付费"
  10. infer_type: "normal"
  11. CUSTOM:
  12. api_key: "sk-b4c852e0727f4b0c90bb191842dfe0a0"
  13. PARAMETERS: [
  14. {
  15. name: "model",
  16. description: "识别模型(推荐使用fun-asr-realtime,即通义千问3-ASR-Flash)",
  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", "mp3", "opus", "speex", "aac"],
  36. default: "mp3"
  37. },
  38. {
  39. name: "language_hints",
  40. description: "语言提示(仅 paraformer-realtime-v2 和 paraformer-v2 支持)",
  41. type: "list",
  42. required: false,
  43. choices: [],
  44. default: ["zh", "en"]
  45. }
  46. ,
  47. {
  48. name: "wake_word",
  49. description: "唤醒词(识别到后才开始交互)",
  50. type: "string",
  51. required: false,
  52. choices: [],
  53. default: "小天小天"
  54. }
  55. ,
  56. {
  57. name: "inactivity_seconds",
  58. description: "空闲超时秒数(识别调用超时)",
  59. type: "int",
  60. required: false,
  61. choices: [],
  62. default: 300
  63. }
  64. ]