New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running in python script #11
Comments
You can do it in two ways:
|
I did manage to synthesize it but over time it's stops working, so I assume it's the token being expired. I did try to make a define to renew the token on keyboard press but it didn't work, as it seemed like I needed to return it; could you give me a concrete example on how to refresh the token? |
If you are using the If you just use |
An easy to use python API is on the way(#12 ), I will provide examples after implementing that feature. |
Using the second method, I just can't call simply |
Yes, you need to recreate |
When will you get the API running? |
Maybe I will release a preview version this weekend. |
A prerelease version v2.0.0.dev1 has been released. I will write the documentations later. There are examples in https://github.com/kxxt/aspeak/tree/feat/api/src/examples |
The functional API has been stabilized in v2.0.0.dev2 |
Maybe I will release a preview version this weekend.
…________________________________
From: Funktionar ***@***.***>
Sent: Friday, May 13, 2022 2:47:34 AM
To: kxxt/aspeak ***@***.***>
Cc: Levi Zim ***@***.***>; Comment ***@***.***>
Subject: Re: [kxxt/aspeak] Running in python script (Issue #11)
When will you get the API running?
—
Reply to this email directly, view it on GitHub<#11 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEJ7NL6W5WM7LD2DZ3TTH3DVJVG4NANCNFSM5VRDP7DA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
How can I run this in my python script, just that without text being typed in, there would be used translated_text instead:
def speak_paste(): try: spoken_text = driver1.find_element_by_xpath("/html/body/div/div[2]/div[3]/span").text test_str = (spoken_text) res = " ".join(lookp_dict.get(ele, ele) for ele in test_str.split()) pyperclip.copy(res) translator = deepl.Translator('') result = translator.translate_text((res), target_lang="ru", formality="less", preserve_formatting="1") translated_text = result.text
This is basically using subtitle text to translate it with deepl, but I want just to pass this translated text to azure tts to synthesize it.
The text was updated successfully, but these errors were encountered: