Git Product home page Git Product logo

Comments (9)

ganjunhong avatar ganjunhong commented on August 21, 2024

more detail msg:
WebSocket upgrade failed: Unspecified connection error (200). USP state: 2. Received audio size: 0 bytes.

from aspeak.

kxxt avatar kxxt commented on August 21, 2024

It seems that Microsoft has deliberately done some changes to prevent 3rd party tools(such as aspeak) using their trial service.

from aspeak.

kxxt avatar kxxt commented on August 21, 2024

image

I guess these two cookies are the main reason that prevents aspeak from functioning, but I will double check it later.

If this is the case. The fix won't be easy because we need to reimplement most of azure-cognitiveservices-speech and remove it from requirements.txt.

from aspeak.

kxxt avatar kxxt commented on August 21, 2024

I decided to end this mouse & cat game and thus drop support for the trial service. I do not have enough time to fight against Microsoft. I'm just an undergraduate with tons of course works to do and lots of deadlines to catch. (And I have another PR to work on: jobisoft/CategoryManager#86)

However, I'm willing to accept PRs that re-enable the token-free trial service.

You need an azure subscription to continue to use the next major version of aspeak.

A free azure subscription(credit card needed) provides you 5 audio hours free per month, which is enough for daily usage. You can also choose a nearby region to lower latency, which is not possible in the trial service.

Unfortunately, azure didn't accept my prepaid card, which means I do not have a subscription for testing purpose.

from aspeak.

ganjunhong avatar ganjunhong commented on August 21, 2024

Although have some regrets, I still appreciate what you have done before. I'm also trying to use Python selenium to solve this problem temporarily.
Good luck.

from aspeak.

Funktionar avatar Funktionar commented on August 21, 2024

Can anyone else fix up the code?

from aspeak.

kxxt avatar kxxt commented on August 21, 2024

Can anyone else fix up the code?

This won't be an easy fix.

I have already fixed the voice listing function(aspeak -L): 127a7a4

To fix other things, you need to attach header Origin: https://azure.microsoft.com to the websocket connection. But that is controlled by Microsoft propriety native code.

from aspeak.

ujmyvq1582 avatar ujmyvq1582 commented on August 21, 2024

https://azure.microsoft.com/zh-cn/products/cognitive-services/speech-translation/
This address can obtain the token as before

from aspeak.

kxxt avatar kxxt commented on August 21, 2024

Fixed in v3.1.0.

from aspeak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.