From: liangzhenying <867174124@qq.com> Date: Mon, 29 Jul 2024 08:57:32 +0000 (+0800) Subject: Asr、TTS、翻译、OCR、AIGC默认平台为aliyun X-Git-Tag: deepseek~12 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=e73077f7b4505125bffd1e9d0700c1d63ba63257;p=mirrors%2FMixSdk-iOS.git Asr、TTS、翻译、OCR、AIGC默认平台为aliyun --- diff --git a/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate b/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate index cd20d4b..af30e88 100644 Binary files a/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate and b/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/MixSdk/MixSdk/MixSdk/MixSdk.swift b/MixSdk/MixSdk/MixSdk/MixSdk.swift index 8a4c303..781b0a5 100644 --- a/MixSdk/MixSdk/MixSdk/MixSdk.swift +++ b/MixSdk/MixSdk/MixSdk/MixSdk.swift @@ -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\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" "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" new file mode 100644 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