Skip to content

Commit 7b213f5

Browse files
committed
fix: update default voice type and options in VolcanicEngineTTSModelGeneralParams
1 parent 7e4e2e9 commit 7b213f5

File tree

2 files changed

+11
-13
lines changed
  • apps/setting/models_provider/impl/volcanic_engine_model_provider

2 files changed

+11
-13
lines changed

apps/setting/models_provider/impl/volcanic_engine_model_provider/credential/tts.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,19 @@
1313
class VolcanicEngineTTSModelGeneralParams(BaseForm):
1414
voice_type = forms.SingleSelect(
1515
TooltipLabel(_('timbre'), _('Chinese sounds can support mixed scenes of Chinese and English')),
16-
required=True, default_value='BV002_streaming',
16+
required=True, default_value='zh_female_cancan_mars_bigtts',
1717
text_field='value',
1818
value_field='value',
1919
option_list=[
20-
{'text': 'CanCan 2.0', 'value': 'BV700_V2_streaming'},
21-
{'text': 'Yangyang', 'value': 'BV705_streaming'},
22-
{'text': 'Qingcang 2.0', 'value': 'BV701_V2_streaming'},
23-
{'text': _('Universal female voice'), 'value': 'BV001_V2_streaming'},
24-
{'text': 'CanCan', 'value': 'BV700_streaming'},
25-
{'text': _('Supernatural timbre-ZiZi 2.0'), 'value': 'BV406_V2_streaming'},
26-
{'text': _('Supernatural timbre-ZiZi'), 'value': 'BV406_streaming'},
27-
{'text': _('Supernatural sound-Ranran 2.0'), 'value': 'BV407_V2_streaming'},
28-
{'text': _('Supernatural sound-Ranran'), 'value': 'BV407_streaming'},
29-
{'text': _('Universal female voice'), 'value': 'BV001_streaming'},
30-
{'text': _('Universal male voice'), 'value': 'BV002_streaming'},
20+
{'text': '灿灿/Shiny', 'value': 'zh_female_cancan_mars_bigtts'},
21+
{'text': '清新女声', 'value': 'zh_female_qingxinnvsheng_mars_bigtts'},
22+
{'text': '爽快思思/Skye', 'value': 'zh_female_shuangkuaisisi_moon_bigtts'},
23+
{'text': '湾区大叔', 'value': 'zh_female_wanqudashu_moon_bigtts' },
24+
{'text': '呆萌川妹', 'value': 'zh_female_daimengchuanmei_moon_bigtts'},
25+
{'text': '广州德哥', 'value': 'zh_male_guozhoudege_moon_bigtts'},
26+
{'text': '北京小爷', 'value': 'zh_male_beijingxiaoye_moon_bigtts'},
27+
{'text': '少年梓辛/Brayan', 'value': 'zh_male_shaonianzixin_moon_bigtts'},
28+
{'text': '魅力女友', 'value': 'zh_female_meilinvyou_moon_bigtts'},
3129
])
3230
speed_ratio = forms.SliderField(
3331
TooltipLabel(_('speaking speed'), _('[0.2,3], the default is 1, usually one decimal place is enough')),

apps/setting/models_provider/impl/volcanic_engine_model_provider/model/tts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, **kwargs):
6161

6262
@staticmethod
6363
def new_instance(model_type, model_name, model_credential: Dict[str, object], **model_kwargs):
64-
optional_params = {'params': {'voice_type': 'BV002_streaming', 'speed_ratio': 1.0}}
64+
optional_params = {'params': {'voice_type': 'zh_female_cancan_mars_bigtts', 'speed_ratio': 1.0}}
6565
for key, value in model_kwargs.items():
6666
if key not in ['model_id', 'use_local', 'streaming']:
6767
optional_params['params'][key] = value

0 commit comments

Comments
 (0)