From 5896205fc40ce0d7e90fbb23384b848f2ad02e0e Mon Sep 17 00:00:00 2001 From: ganshihao21 <1410815216@qq.com> Date: Fri, 5 Jul 2024 08:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9fetchToken.py=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A3=80=E6=9F=A5audio=5Ftts=5Fpost=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Guide_stick_system/voice_assistant/fetchToken.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Guide_stick_system/voice_assistant/fetchToken.py b/src/Guide_stick_system/voice_assistant/fetchToken.py index ba23d52..851fa1d 100644 --- a/src/Guide_stick_system/voice_assistant/fetchToken.py +++ b/src/Guide_stick_system/voice_assistant/fetchToken.py @@ -58,7 +58,7 @@ def fetch_token(): # 检查结果中是否包含access_token和scope if ('access_token' in result.keys() and 'scope' in result.keys()): # 检查scope中是否包含audio_tts_post - if not 'audio_tts_post' in result['scope'].split(' '): + if 'audio_tts_post' not in result['scope'].split(' '): print('please ensure has check the tts ability') return '' # 返回access_token