config.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. # 机器人AI语音识别配置文件
  2. # 服务配置
  3. machine-name: "robot_ai"
  4. version: "1.0.0"
  5. machine-id: "d21e4997e4f78314ca991ffa8734c366"
  6. machinename: "小勇"
  7. # 摄像头位置
  8. server:
  9. # ip: "192.168.123.21"
  10. ip: "192.168.123.38"
  11. port: 19199
  12. # 摄像头地址
  13. camera_url: "http://127.0.0.1:34550/camera_base64"
  14. # 语音识别服务选择配置
  15. speech_recognition:
  16. # 选择使用的语音识别服务: "xunfei_aiui", "baidu_realtime" 或 "xunfei_linux"
  17. service: "xunfei_linux"
  18. #params_data:
  19. # app_id: "121000000147"
  20. # process_code: "queryListAPIVcloud"
  21. # dataId: "2100000009"
  22. # key: "G7H3J9K2L5M8N4P1Q6R3S2T9U6V7W8X5"
  23. # userId: "jyyd"
  24. # full_identifier: "newland@523652"
  25. # params:
  26. # regId: "r1957649584173424640"
  27. ## 基站客流数据
  28. #base_stations_url: "http://robot.yun36.com:8066/base_stations"
  29. ssh_host: "robot.yun36.com"
  30. ssh_port: 2066
  31. ssh_user: "root"
  32. ssh_pass: "7P8xxEEw9vGx0Yf%"
  33. db_host: "127.0.0.1"
  34. db_port: 33066
  35. db_user: "root"
  36. db_pass: "qweICT!@#444"
  37. db_name: "passenger_flow"
  38. table: "flow_data"
  39. # 百炼知识库
  40. baolian_api_key: "sk-1dcf9fc95ee54c3bbb2a3fdc9ebaa49f"
  41. baolian_model: "qwen-vl-max-latest"
  42. baolian_nlp_model: "qwen-plus-latest"
  43. # 网络配置
  44. network:
  45. connection_timeout: 5 # 连接超时时间(秒)
  46. receive_timeout: 3 # 接收超时时间(秒)
  47. ping_interval: 10 # 心跳检测间隔(秒)
  48. reconnect_delay: 5 # 重连延迟时间(秒)
  49. # 日志配置
  50. logging:
  51. level: "INFO"
  52. file: "log/robot_ai.log"
  53. format: "%(asctime)s.%(msecs)03d %(levelname)s:%(message)s"
  54. date_format: "%Y-%m-%d %H:%M:%S"
  55. # 百度端到端实时语音识别配置
  56. baidu_realtime:
  57. client_id: "erJ8dFilykzXBLf09Sm0u0YQ"
  58. client_secret: "EP4TqMs3eRriCFnJ3Dbu9YtHAq1FtP5H"
  59. api_key: "" # iam API_KEY或TOKEN二选一
  60. streaming_url: "wss://aip.baidubce.com/ws/2.0/speech/v1/realtime"
  61. model_name: "audio-realtime"
  62. # 音频参数配置
  63. audio:
  64. sample_rate: 16000
  65. channels: 1
  66. format: "int16"
  67. chunk_size: 1024
  68. # 输出音频配置
  69. output_audio:
  70. sample_rate: 24000
  71. channels: 1
  72. format: "int16"
  73. # TTS配置
  74. tts:
  75. voice: "x5_lingfeiyi_flow"
  76. speed: 50
  77. pitch: 50
  78. volume: 50
  79. # 科大讯飞TTS配置
  80. xunfei:
  81. app_id: "f016fce3"
  82. api_key: "fcb58dc79de9b0568d2287bd8184e291"
  83. api_secret: "YTFiN2NkOGVjNTVjY2QyMTlmMTViOTBh"
  84. streaming_tts_url: "wss://aiui.xf-yun.com/v3/aiint/sos"
  85. scene: "test"
  86. category:
  87. - "OS20015785810.ACTIONS"
  88. - "OS20015785810.ACTIONS_${area}"
  89. - "OS20015785810.control_aiot"
  90. - "OS20015785810.VoiceNavigation"
  91. - "OS20015785810.CMD_ACTIONS"
  92. # 开发环境配置
  93. development:
  94. debug: false
  95. log_to_console: true
  96. log_to_file: true
  97. # 生产环境配置
  98. production:
  99. debug: false
  100. log_to_console: false
  101. log_to_file: true
  102. pc2:
  103. ip: "192.168.123.164"
  104. port: 8839
  105. base_url: "http://192.168.123.164:8839"
  106. endpoints:
  107. robot_action: "/dbqa_app/pub_webrtc"
  108. robot_waypoint: "/dbqa_app/pub_waypoint"
  109. robot_cmd_action: "/dbqa_app/pub_remote_cmd"
  110. qa_callback: "/rest_api/qa_callback"
  111. led: "/rest_api/led"
  112. music_url: "http://192.168.0.10:34505/tts_audio_control_http"