-
Notifications
You must be signed in to change notification settings - Fork 689
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
Added serverless API #282
Added serverless API #282
Conversation
Thanks for your PR! The new docs for the serverless API are well-written too. I'll merge it in a bit and might try to add support for other serverless platforms. |
@rany2 I think I fixed the formatting issues |
I won't merge it. I don't really want this to be used outside of personal use and I think deploying to a serverless API encourages this use-case. Microsoft is already cracking down on this library in Mainland China as it's being used heavily for commercial reasons. Sorry about this but I've already had to deal with adding a new DRM they implemented to make it not work in Mainland China: #303 It's really odd that Chinese companies are using it commercially as the Azure API isn't really expensive in the first place and I've never encouraged this use-case when people asked me if it's OK to, but whatever. I initially used it to generate e-books and later to generate short <10second MP3s to use in Home Assistant, later it became the only way to use this service on Linux because Microsoft dropped support for the TTS on Linux for some reason :') |
Edge-tts is good for teaching and learning English. We English teachers need it. |
@zhongtanru It should work again with edge-tts version 6.1.16 :) |
So great!Many thanks! We English teachers really need it in China.
获取Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Rany ***@***.***>
Sent: Saturday, November 9, 2024 12:38:58 AM
To: rany2/edge-tts ***@***.***>
Cc: zhongtanru ***@***.***>; Mention ***@***.***>
Subject: Re: [rany2/edge-tts] Added serverless API (PR #282)
@zhongtanru<https://github.com/zhongtanru> It should work again with edge-tts version 6.1.16 :)
―
Reply to this email directly, view it on GitHub<#282 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A72PW5P76UJBSBOYL3DRZXTZ7TSKFAVCNFSM6AAAAABQNAATHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRVGIZTIOJWGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
It doesn't work today in china.
获取Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: zhong Lenny ***@***.***>
Sent: Saturday, November 9, 2024 1:10:01 AM
To: rany2/edge-tts ***@***.***>; rany2/edge-tts ***@***.***>
Cc: Mention ***@***.***>
Subject: Re: [rany2/edge-tts] Added serverless API (PR #282)
So great!Many thanks! We English teachers really need it in China.
获取Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Rany ***@***.***>
Sent: Saturday, November 9, 2024 12:38:58 AM
To: rany2/edge-tts ***@***.***>
Cc: zhongtanru ***@***.***>; Mention ***@***.***>
Subject: Re: [rany2/edge-tts] Added serverless API (PR #282)
@zhongtanru<https://github.com/zhongtanru> It should work again with edge-tts version 6.1.16 :)
―
Reply to this email directly, view it on GitHub<#282 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A72PW5P76UJBSBOYL3DRZXTZ7TSKFAVCNFSM6AAAAABQNAATHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRVGIZTIOJWGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@zhongtanru I tried implementing a fix that might help related to clock skew. You can try it with edge-tts version 6.1.18. |
Thank you! I will try it. I compiled an application using VB.NET to read the dialogue between two or three roles. The application reads the text line by line according to the roles (e.g., A:B:) by calling the main Python script. Everything worked fine before version 6.1.15. However, with the new version, the application starts reading from the second line instead of the first line. I tried to fix the application but found no issues. It's really strange.
获取Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: zhong Lenny ***@***.***>
Sent: Monday, November 11, 2024 9:12:20 PM
To: rany2/edge-tts ***@***.***>; rany2/edge-tts ***@***.***>
Cc: Mention ***@***.***>
Subject: Re: [rany2/edge-tts] Added serverless API (PR #282)
Thank you! I will. I I compiled an application by VB.net, in order to read the dialogue of two or three roles,The application will read the text line by line according to the roles such as A:B: by calling the main python . Before version six 6.1.15,It was OK.However from the new version ,the application will not read From line one but from the line two. I try to fix my application But find nothing wrong. Its so weird.
获取Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Rany ***@***.***>
Sent: Monday, November 11, 2024 7:56:40 PM
To: rany2/edge-tts ***@***.***>
Cc: zhongtanru ***@***.***>; Mention ***@***.***>
Subject: Re: [rany2/edge-tts] Added serverless API (PR #282)
@zhongtanru<https://github.com/zhongtanru> I tried implementing a fix that might help related to clock skew. You can try it with edge-tts version 6.1.18.
―
Reply to this email directly, view it on GitHub<#282 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A72PW5NSAEWGJ26JQ2EP5532ACLPRAVCNFSM6AAAAABQNAATHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRXHE4TQNJQGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I just undagted the version 6.1.19, however, when i packed my APP, it COULDN'T read. When I RAN by python, it CAN read. Why?
…________________________________
发件人: Rany ***@***.***>
发送时间: 2024年11月11日 19:56
收件人: rany2/edge-tts ***@***.***>
抄送: zhongtanru ***@***.***>; Mention ***@***.***>
主题: Re: [rany2/edge-tts] Added serverless API (PR #282)
@zhongtanru<https://github.com/zhongtanru> I tried implementing a fix that might help related to clock skew. You can try it with edge-tts version 6.1.18.
―
Reply to this email directly, view it on GitHub<#282 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A72PW5NSAEWGJ26JQ2EP5532ACLPRAVCNFSM6AAAAABQNAATHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRXHE4TQNJQGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I just undagted the version 6.1.19, however, when i packed my APP, it COULDN'T read. When I RAN by python, it CAN read. Why?
Q:\finalpy>pyinstaller -F -w -i 12.ico 对话合并9.py
692 INFO: PyInstaller: 6.11.0, contrib hooks: 2024.9
693 INFO: Python: 3.13.0
773 INFO: Platform: Windows-11-10.0.22631-SP0
773 INFO: Python environment: C:\py313
776 INFO: wrote Q:\finalpy\对话合并9.spec
802 INFO: Module search paths (PYTHONPATH):
['C:\\py313\\Scripts\\pyinstaller.exe',
'C:\\py313\\python313.zip',
'C:\\py313\\DLLs',
'C:\\py313\\Lib',
'C:\\py313',
'C:\\py313\\Lib\\site-packages',
'C:\\py313\\Lib\\site-packages\\win32',
'C:\\py313\\Lib\\site-packages\\win32\\lib',
'C:\\py313\\Lib\\site-packages\\Pythonwin',
'C:\\py313\\Lib\\site-packages\\setuptools\\_vendor',
'Q:\\finalpy']
1899 INFO: checking Analysis
2239 INFO: checking PYZ
2485 INFO: checking PKG
2707 INFO: Bootloader C:\py313\Lib\site-packages\PyInstaller\bootloader\Windows-64bit-intel\runw.exe
2708 INFO: checking EXE
2752 INFO: Rebuilding EXE-00.toc because 对话合并9.exe missing
2752 INFO: Building EXE from EXE-00.toc
2753 INFO: Copying bootloader EXE to Q:\finalpy\dist\对话合并9.exe
2836 INFO: Copying icon to EXE
2901 INFO: Copying 0 resources to EXE
2901 INFO: Embedding manifest in EXE
2966 INFO: Appending PKG archive to EXE
3064 INFO: Fixing EXE headers
3486 INFO: Building EXE from EXE-00.toc completed successfully.
…________________________________
发件人: zhong Lenny ***@***.***>
发送时间: 2024年11月23日 0:42
收件人: rany2/edge-tts ***@***.***>
主题: 回复: [rany2/edge-tts] Added serverless API (PR #282)
I just undagted the version 6.1.19, however, when i packed my APP, it COULDN'T read. When I RAN by python, it CAN read. Why?
________________________________
发件人: Rany ***@***.***>
发送时间: 2024年11月11日 19:56
收件人: rany2/edge-tts ***@***.***>
抄送: zhongtanru ***@***.***>; Mention ***@***.***>
主题: Re: [rany2/edge-tts] Added serverless API (PR #282)
@zhongtanru<https://github.com/zhongtanru> I tried implementing a fix that might help related to clock skew. You can try it with edge-tts version 6.1.18.
―
Reply to this email directly, view it on GitHub<#282 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A72PW5NSAEWGJ26JQ2EP5532ACLPRAVCNFSM6AAAAABQNAATHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRXHE4TQNJQGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Added the ability to run this as a serverless API on Cerebrium