From 06c692c60d6607a63378988f6b5b178bdfaa17b3 Mon Sep 17 00:00:00 2001 From: Antares Date: Wed, 4 Mar 2020 12:30:52 +0800 Subject: [PATCH] qwq --- plugins_new/read/plugin.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins_new/read/plugin.py b/plugins_new/read/plugin.py index 9236076..04f17ed 100644 --- a/plugins_new/read/plugin.py +++ b/plugins_new/read/plugin.py @@ -29,15 +29,15 @@ class ReadConfig(ConfigBase): class ReadPlugin(Plugin): async def get_voice(self, text: str, token: str) -> bytes: - async with self.aioclient.post("https://tsn.baidu.com/text2audio",data={ - "tex":urllib.parse.quote(text), - "tok":token, - "cuid":"qwqqwqqwq", + async with self.aioclient.post("https://tsn.baidu.com/text2audio", data={ + "tex": urllib.parse.quote(text), + "tok": token, + "cuid": "qwqqwqqwq", "ctp": 1, - "spd":self.config.SPEED, - "per":4, - "vol":self.config.VOLUME, - "lan":"zh" + "spd": self.config.SPEED, + "per": 4, + "vol": self.config.VOLUME, + "lan": "zh" }) as resp: resp: aiohttp.ClientResponse result = await resp.read() -- Gitee