diff --git a/plugins_new/read/plugin.py b/plugins_new/read/plugin.py index 9236076915014014980a80de2431111e6443b6b3..04f17ed1f880f7bafef1a0dae5732b9945e3a3a7 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()