mirror of
https://github.com/rany2/edge-tts
synced 2024-11-22 01:45:02 +00:00
Use f-strings on constants for better readability (#260)
This commit is contained in:
parent
dfd4cab849
commit
209269ebf5
@ -2,14 +2,8 @@
|
|||||||
Constants for the Edge TTS project.
|
Constants for the Edge TTS project.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
BASE_URL = "speech.platform.bing.com/consumer/speech/synthesize/readaloud"
|
||||||
TRUSTED_CLIENT_TOKEN = "6A5AA1D4EAFF4E9FB37E23D68491D6F4"
|
TRUSTED_CLIENT_TOKEN = "6A5AA1D4EAFF4E9FB37E23D68491D6F4"
|
||||||
WSS_URL = (
|
|
||||||
"wss://speech.platform.bing.com/consumer/speech/synthesize/"
|
WSS_URL = f"wss://{BASE_URL}/edge/v1?TrustedClientToken={TRUSTED_CLIENT_TOKEN}"
|
||||||
+ "readaloud/edge/v1?TrustedClientToken="
|
VOICE_LIST = f"https://{BASE_URL}/voices/list?trustedclienttoken={TRUSTED_CLIENT_TOKEN}"
|
||||||
+ TRUSTED_CLIENT_TOKEN
|
|
||||||
)
|
|
||||||
VOICE_LIST = (
|
|
||||||
"https://speech.platform.bing.com/consumer/speech/synthesize/"
|
|
||||||
+ "readaloud/voices/list?trustedclienttoken="
|
|
||||||
+ TRUSTED_CLIENT_TOKEN
|
|
||||||
)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user