Skip to content

Commit 3ea53db

Browse files
authored
Merge pull request #2 from cc-Jimmy/jimmy
🐞 fix: apiUrl & default voice
2 parents 5c07783 + 3f669a2 commit 3ea53db

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/info.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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 文本转语音插件",
@@ -20,7 +20,7 @@
2020
"identifier": "voice",
2121
"type": "menu",
2222
"title": "音色",
23-
"defaultValue": "沉稳女声 - anna",
23+
"defaultValue": "anna",
2424
"menuValues": [
2525
{
2626
"title": "沉稳男声 - alex",
@@ -231,4 +231,4 @@
231231
}
232232
}
233233
]
234-
}
234+
}

src/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)