File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "identifier" : " com.whymeta.bob-plugin-siliconflow-tts" ,
3- "version" : " 0.0.3 " ,
3+ "version" : " 0.0.4 " ,
44 "category" : " tts" ,
55 "name" : " Siliconflow 文本转语音插件" ,
66 "summary" : " Siliconflow 文本转语音插件" ,
2020 "identifier" : " voice" ,
2121 "type" : " menu" ,
2222 "title" : " 音色" ,
23- "defaultValue" : " 沉稳女声 - anna" ,
23+ "defaultValue" : " anna" ,
2424 "menuValues" : [
2525 {
2626 "title" : " 沉稳男声 - alex" ,
231231 }
232232 }
233233 ]
234- }
234+ }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function pluginValidate(completion) {
2222
2323 const resp = await $http . request ( {
2424 method : "GET" ,
25- url : `${ $option . apiUrl } /v1/audio/voice/list` ,
25+ url : `${ $info . apiUrl } /v1/audio/voice/list` ,
2626 header : {
2727 'Authorization' : `Bearer ${ $option . apiKey } `
2828 }
@@ -64,15 +64,15 @@ function tts(query, completion) {
6464 try {
6565 $http . request ( {
6666 method : 'POST' ,
67- url : `${ $option . apiUrl } /v1/audio/speech` ,
67+ url : `${ $info . apiUrl } /v1/audio/speech` ,
6868 header : {
6969 'Authorization' : `Bearer ${ $option . apiKey } ` ,
7070 'Content-Type' : 'application/json'
7171 } ,
7272 body : {
7373 model : 'FunAudioLLM/CosyVoice2-0.5B' ,
7474 input : originText ,
75- voice : `FunAudioLLM/CosyVoice2-0.5B :${ $option . voice } ` ,
75+ voice : `fishaudio/fish-speech-1.4 :${ $option . voice } ` ,
7676 speed : parseFloat ( $option . speed ) ,
7777 gain : parseFloat ( $option . gain ) ,
7878 response_format : "mp3" ,
You can’t perform that action at this time.
0 commit comments