Closed emrahtoy closed 11 months ago
Hi, I tried to repro your issue but seems your code works form. Here are the steps I tried
npx create-next-app@latest my-nextjs-app
pages/api/index.ts
npm install microsoft-cognitiveservices-speech-sdk
npm run dev
And curl -X POST http://localhost:3000/api -d '{}'
my environment:
"microsoft-cognitiveservices-speech-sdk": "^1.33.1", "next": "14.0.3", "react": "^18",
I am not familiar with next js, could you try to find the difference between your environment and mine?
Hello @yulin-li ;
Only significant difference is the nextJS's version. I will try this version despite the possible incompatibility with the rest of the project but I should mention that our Unity projects ( on production ) also stopped working.
In the other hand I have seen that some of the endpoint addresses changed in our azure account as shown in the screenshot below; ( these are not changes that we made )
I will share results with the different version of the NextJS.
You said the Unity projects were broken? Is that mean the latest speck sdk (1.33.1) has regression? Does 1.32 or earlier work for your Unity projects?
You said the Unity projects were broken? Is that mean the latest speck sdk (1.33.1) has regression? Does 1.32 or earlier work for your Unity projects?
No, I mean our production projects ( which are already in service ) also stop working. But right now they start working... I really don't understand why. So we can forget about the unity and C# problem
I have updated NextJS 13 ( latest ) and NodeJS 18LTS ( latest ), unfortunately, nothing changed.
Hi, I tried to repro your issue but seems your code works form. Here are the steps I tried
npx create-next-app@latest my-nextjs-app
- copy your codes into
pages/api/index.ts
npm install microsoft-cognitiveservices-speech-sdk
npm run dev
And
curl -X POST http://localhost:3000/api -d '{}'
my environment:
- Ubuntu 22.04
- Nodejs v18.18.0
"microsoft-cognitiveservices-speech-sdk": "^1.33.1", "next": "14.0.3", "react": "^18",
I am not familiar with next js, could you try to find the difference between your environment and mine?
I have got the same results with the new nextJS ( 14 ). It is obvious that the problem is related to the NextJS version. I have tried the same setup with the NextJS 13 and it is not working at all.
ok, from the service we can see your failure request sent an empty websocket message, which was rejected by our service.
Please let me know if you need any help from our side.
Unfortunately, nothing worked with the NextJS 13. So I had to upgrade to NodeJS14 and I am not getting any error right now. İ couldn't have enough time to dig deeper for now. So I closed the issue and will investigate later. Thank you for testing NextJS14 @yulin-li .
What happened?
I could not get a result from the TTS service. Somehow our already working codes are also affected. Sometimes the request stales and some other times it gives a strange error that I couldn't find any detail about.
Here is what I tried;
Env :
Here is my code :
How to reproduce :
I have seen a bug about new line format ( "\n", "\r\n" ) before, could this be the case? But then why my unity projects ( that has been working for long time on cloud ) also stopped working? It does not matter if the project in development or production with or without {swcMinify: false} problem always exist ( for nextjs apps ).
By the way STT ( speech to text, speech recognition is working ).
I would like someone to help me dig deeper until the problem got fixed, thank you.
Version
1.33.0 (Latest)
What browser/platform are you seeing the problem on?
Node
Relevant log output
Error logs ( when given ) :
I also get this error sometimes :