diff --git a/src/edge_tts/constants.py b/src/edge_tts/constants.py index 54f1fc0..f430283 100644 --- a/src/edge_tts/constants.py +++ b/src/edge_tts/constants.py @@ -3,13 +3,6 @@ """ TRUSTED_CLIENT_TOKEN = "6A5AA1D4EAFF4E9FB37E23D68491D6F4" -WSS_URL = ( - "wss://speech.platform.bing.com/consumer/speech/synthesize/" - + "readaloud/edge/v1?TrustedClientToken=" - + TRUSTED_CLIENT_TOKEN -) -VOICE_LIST = ( - "https://speech.platform.bing.com/consumer/speech/synthesize/" - + "readaloud/voices/list?trustedclienttoken=" - + TRUSTED_CLIENT_TOKEN -) + +WSS_URL = f"wss://speech.platform.bing.com/consumer/speech/synthesize/readaloud/edge/v1?TrustedClientToken={TRUSTED_CLIENT_TOKEN}" +VOICE_LIST = f"https://speech.platform.bing.com/consumer/speech/synthesize/readaloud/voices/list?trustedclienttoken={TRUSTED_CLIENT_TOKEN}"