Comments (16)
It's an issue on microsoft's side. Neither aspeak or the web page is working for me.
The web page no longer contains the token. That's why the functionality is broken now.
from aspeak.
Is there another way?
from aspeak.
It seems microsoft side is normal now. But they have changed the place where the token is stored. A fix is on the way.
from aspeak.
The good news is that microsoft side no longer requires an auth token.
But I don't know whether they have downgraded the free services. There is a TrafficType: AzureDemo
header in the request now.
from aspeak.
I have got it working now. A new version of aspeak
will be published soon to address this issue.
from aspeak.
Thanks a lot!
from aspeak.
I have uploaded a preview version (3.0.0.dev1) to pypi. You can use it if you can't wait. 🎉
pip install aspeak==3.0.0.dev1
I updated the major version since the change introduced on microsoft side caused some breaking changes to aspeak
API.
I will publish a stable version after some refactors and testings.
from aspeak.
Could you include an example without token being used also?
from aspeak.
Could you include an example without token being used also?
Currently the old examples still works. They don't depend on the token retrieval logic directly.Instead, the code that depends on Token
or get_auth_token
directly will break now
I will rewrite a cleaner API for v3.0 while keeping the old ones(marked as obsolete).
from aspeak.
The examples work well but it takes more time to get the audio, can I instead infer straight to speechsdk.SpeechSynthesizer instead of speechprovider? Could you give me an example?
from aspeak.
The examples work well but it takes more time to get the audio, can I instead infer straight to speechsdk.SpeechSynthesizer instead of speechprovider? Could you give me an example?
Yes. SpeechProvider
is a useless layer of abstraction now because we no longer need to refresh the token. A new API will arrive in v3.0.
You can read the code yourself and figure out how to do it if you can't wait until v3.0 is released.
from aspeak.
If the text exceeds 300 words, it will fail
The examples work well but it takes more time to get the audio, can I instead infer straight to speechsdk.SpeechSynthesizer instead of speechprovider? Could you give me an example?
Yes.
SpeechProvider
is a useless layer of abstraction now because we no longer need to refresh the token. A new API will arrive in v3.0.You can read the code yourself and figure out how to do it if you can't wait until v3.0 is released.
from aspeak.
If the text exceeds 300 words, it will fail
Did you encounter this specific error?
Error: Speech synthesis canceled: CancellationReason.Error
WebSocket operation failed. Internal error: 3. Error details: WS_ERROR_UNDERLYING_IO_ERROR USP state: 4. Received audio size: 2058600 bytes.
It seems that microsoft has downgraded the free services and they force the websocket to stop when 2058600 bytes of audio is received.
Edit: Microsoft includes a new notice on the web page: This demo supports a maximum input length of 1000 characters.
from aspeak.
If the text exceeds 300 words, it will fail
Did you encounter this specific error?
Error: Speech synthesis canceled: CancellationReason.Error WebSocket operation failed. Internal error: 3. Error details: WS_ERROR_UNDERLYING_IO_ERROR USP state: 4. Received audio size: 2058600 bytes.
It seems that microsoft has downgraded the free services and they force the websocket to stop when 2058600 bytes of audio is received.
Edit: Microsoft includes a new notice on the web page:
This demo supports a maximum input length of 1000 characters.
It would be perfect if it could help users automatically segment text and audio combinations.
For example, Chinese characters can be 200 characters.
from aspeak.
It would be perfect if it could help users automatically segment text and audio combinations. For example, Chinese characters can be 200 characters.
I don't think segmenting the text is aspeak's responsibility. There are too many languages, and simply segmenting text by 200 characters will produce bad results if the first/last sentence is cut in the middle.
from aspeak.
Closing this because v3.0.0 fixed it.
from aspeak.
Related Issues (20)
- hyper-0.14.25.crate: 1 vulnerabilities (highest severity is: 7.5) - autoclosed HOT 1
- Add an CLI arg to disable colored output HOT 1
- Add `audio` feature for crate HOT 2
- the free version may refer to this page:https://speech.microsoft.com/audiocontentcreation HOT 2
- Better error handling HOT 1
- Pass key/auth token via environment variable HOT 1
- Add support get voice list in lib HOT 1
- Question #19017 HOT 1
- No examples on v5.2.0 HOT 3
- Provide REST Mode HOT 3
- feat: batch processing API HOT 2
- tokio-tungstenite-0.19.0.crate: 4 vulnerabilities (highest severity is: 9.1) - autoclosed HOT 1
- reqwest-0.11.18.crate: 1 vulnerabilities (highest severity is: 5.5) - autoclosed HOT 1
- Python Binding: provide .pyi file
- colored-2.0.0.crate: 1 vulnerabilities (highest severity is: 9.8) - autoclosed HOT 1
- aspeak does not support python3.9 or above HOT 1
- Publish python wheels for apple silicon Macs HOT 1
- tokio-tungstenite-0.20.1.crate: 1 vulnerabilities (highest severity is: 7.5) - autoclosed HOT 1
- 400 error HOT 3
- tokio-tungstenite-0.21.0.crate: 2 vulnerabilities (highest severity is: 7.5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspeak.