Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lss233 committed Apr 20, 2023
1 parent 85339dc commit e8c3fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async def request(_session_id, prompt: str, conversation_context, _respond):
else:
await respond("提供的语音ID无效,请输入一个有效的语音ID。")
else:
await respond("无可用的TTS配置。")
await respond("未配置文字转语音引擎,无法使用语音功能。")
return

elif prompt in config.trigger.mixed_only_command:
Expand Down
2 changes: 1 addition & 1 deletion utils/azure_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def encode_to_silk(a=None):


async def synthesize_speech(text: str, output_file: str,
voice): # Singapore English, Wayne
voice):
if not config.azure.tts_speech_key:
logger.warning("[Azure TTS] 没有检测到 tts_speech_key,不进行语音转换。")
return False
Expand Down

0 comments on commit e8c3fc9

Please sign in to comment.