Skip to content

Commit

Permalink
use f-strings on constants for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewf committed Oct 2, 2024
1 parent dfd4cab commit cb7b893
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/edge_tts/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit cb7b893

Please sign in to comment.