Asr、TTS、翻译、OCR、AIGC默认平台为aliyun
authorliangzhenying <867174124@qq.com>
Mon, 29 Jul 2024 08:57:32 +0000 (16:57 +0800)
committerliangzhenying <867174124@qq.com>
Mon, 29 Jul 2024 08:57:32 +0000 (16:57 +0800)
MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate
MixSdk/MixSdk/MixSdk/MixSdk.swift
document/VoiceChat服务端接口协议(对外).pdf [new file with mode: 0644]

index cd20d4b..af30e88 100644 (file)
Binary files a/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate and b/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate differ
index 8a4c303..781b0a5 100644 (file)
@@ -22,6 +22,31 @@ import Foundation
 
 
 
+//Asr、TTS、翻译、OCR、AIGC
+//platform 参数支持
+//
+//1.
+//aliyun
+//
+//2.
+//huoshan
+//
+//Chat 大模型对话
+//platform 参数支持
+//
+//1.
+//baidu (文心一言 模型:ernie-3.5-8k-0329)
+//
+//2.
+//moonshot (kimi 模型:moonshot-v1-8k)
+//
+//3.
+//aliyun (通义千问 模型:qwen-plus)
+//
+//4.
+//huoshan (豆包 模型:ep-20240611101421-5qk8s)
+
+
 class MSConfig{
     static let wsBaseURL = "ws://amp.raisound.com/"
     static let httpBaseURL = "https://amp.raisound.com/"
@@ -42,12 +67,12 @@ class MSConfig{
  //       return httpBaseURL + api + ""
      }
     static func translateUrl(api:String)->String{
-        return httpBaseURL + api + "?platform=raisound&is_auth=1&dt=\(MixSdk.shared.auth.deviceToken)"
+        return httpBaseURL + api + "?platform=aliyun&is_auth=1&dt=\(MixSdk.shared.auth.deviceToken)"
  //        return httpBaseURL + api + "?platform=\(MixSdk.shared.aiPlatform.value)&is_auth=1&dt=\(MixSdk.shared.auth.deviceToken)"
  //       return httpBaseURL + api + ""
      }
    static func asr(api:String)->String{
-       return httpBaseURL + api + "?platform=\(MixSdk.shared.aiPlatform.value)&is_auth=1&dt=\(MixSdk.shared.auth.deviceToken)"
+       return httpBaseURL + api + "?platform=aliyun&is_auth=1&dt=\(MixSdk.shared.auth.deviceToken)"
     }
     static func webSocketUrl(api:String,addPlatform:Bool)->String{
         if addPlatform{
diff --git a/document/VoiceChat服务端接口协议(对外).pdf b/document/VoiceChat服务端接口协议(对外).pdf
new file mode 100644 (file)
index 0000000..0ea44ee
Binary files /dev/null and "b/document/VoiceChat\346\234\215\345\212\241\347\253\257\346\216\245\345\217\243\345\215\217\350\256\256\357\274\210\345\257\271\345\244\226\357\274\211.pdf" differ