mirror of
https://github.com/hanzoai/go-cosyvoice.git
synced 2026-09-30 21:53:53 +00:00
18 lines
294 B
Go
18 lines
294 B
Go
package cosyvoice
|
|
|
|
const (
|
|
wsUrl = "wss://dashscope.aliyuncs.com/api-ws/v1/inference"
|
|
)
|
|
|
|
type ClientConfig struct {
|
|
ApiKey string `json:"api_key"`
|
|
WsUrl string `json:"ws_url"`
|
|
}
|
|
|
|
func DefaultConfig(apiKey string) ClientConfig {
|
|
return ClientConfig{
|
|
ApiKey: apiKey,
|
|
WsUrl: wsUrl,
|
|
}
|
|
}
|