feat: 百度语音的配置
This commit is contained in:
parent
780564f6e1
commit
924d7f2b61
|
@ -159,8 +159,9 @@ def save_voice_and_speak(event: Event):
|
|||
if event.voice: # 如果已经生成了报警声音不用再请求
|
||||
pass
|
||||
else:
|
||||
_, event.voice, _ = generate_voice(event.voice_msg, v_p)
|
||||
event.save()
|
||||
if getattr(settings, 'BD_SP_ENABLED', False):
|
||||
_, event.voice, _ = generate_voice(event.voice_msg, v_p)
|
||||
event.save()
|
||||
if main_cate.speaker_on:
|
||||
sps = []
|
||||
if event.area: # 如果事件存在发生区域
|
||||
|
|
Loading…
Reference in New Issue