Skip to content

Commit

Permalink
Merge pull request #1045 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
优化:修改默认multitts的语速为50
  • Loading branch information
Ikaros-521 authored Oct 31, 2024
2 parents 0ff1350 + 894b134 commit e9da3f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@
},
"multitts": {
"api_ip_port": "http://192.168.31.180:8774",
"speed": 1.0,
"speed": 50,
"volume": 50,
"pitch": 50,
"voice": ""
Expand Down
2 changes: 1 addition & 1 deletion config.json.bak
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@
},
"multitts": {
"api_ip_port": "http://192.168.31.180:8774",
"speed": 1.0,
"speed": 50,
"volume": 50,
"pitch": 50,
"voice": ""
Expand Down
2 changes: 1 addition & 1 deletion utils/audio_handle/my_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ async def multitts_api(self, data):

data_json = {
"text": data["content"],
"speed": data["multitts"]["speed"],
"speed": int(data["multitts"]["speed"]),
"volume": int(data["multitts"]["volume"]),
"pitch": int(data["multitts"]["pitch"])
}
Expand Down
2 changes: 1 addition & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2788,7 +2788,7 @@ def update_config(config_mapping, config, config_data, type="common_config"):
},
"multitts": {
"api_ip_port": (input_multitts_api_ip_port, 'str'),
"speed": (input_multitts_speed, 'float'),
"speed": (input_multitts_speed, 'int'),
"volume": (input_multitts_volume, 'int'),
"pitch": (input_multitts_pitch, 'int'),
"voice": (input_multitts_voice, 'str'),
Expand Down

0 comments on commit e9da3f7

Please sign in to comment.