Fix double encoding issue in google_translate TTS (#38429)
This commit is contained in:
parent
f4c0dc99c2
commit
1c9a36b731
1 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ from aiohttp.hdrs import REFERER, USER_AGENT
|
|||
import async_timeout
|
||||
from gtts_token import gtts_token
|
||||
import voluptuous as vol
|
||||
import yarl
|
||||
|
||||
from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider
|
||||
from homeassistant.const import HTTP_OK
|
||||
|
@ -129,7 +128,7 @@ class GoogleProvider(Provider):
|
|||
url_param = {
|
||||
"ie": "UTF-8",
|
||||
"tl": language,
|
||||
"q": yarl.URL(part).raw_path,
|
||||
"q": part,
|
||||
"tk": part_token,
|
||||
"total": len(message_parts),
|
||||
"idx": idx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue