Coder Social home page Coder Social logo

Comments (5)

glharper avatar glharper commented on June 12, 2024

@sonbs21 Thank you for using JS Speech SDK, and writing this issue up. Any chance you could gather logs on this issue, and help us understand what exactly was "illegally invoked"?

(To enable logging, use the following code before starting recognition:

sdk.Diagnostics.SetLoggingLevel(sdk.LogLevel.Debug);
sdk.Diagnostics.SetLogOutputPath("LogfilePathAndName");

from cognitive-services-speech-sdk-js.

sonbs21 avatar sonbs21 commented on June 12, 2024
X [ERROR] Error: throwIfNullOrUndefined: 

  File System access not available       
      at Contracts.throwIfNullOrUndefined
  (file:///D:/Dicamon/cory/cory-be/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/src/sdk/Contracts.ts:11:19)
      at set logPath
  (file:///D:/Dicamon/cory/cory-be/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/src/common.browser/ConsoleLoggingListener.ts:22:19)
      at Diagnostics2.SetLogOutputPath
  (file:///D:/Dicamon/cory/cory-be/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/src/sdk/Diagnostics.ts:39:35)
      at SpeechService.speechToText
  (file:///D:/Dicamon/cory/cory-be/src/service/speech.service.ts:206:23)
      at app.openapi.c.json.message (file:///D:/Dicamon/cory/cory-be/src/index.ts:398:26)
      at dispatch (file:///D:/Dicamon/cory/cory-be/node_modules/hono/dist/compose.js:29:23)
      at null.<anonymous> (file:///D:/Dicamon/cory/cory-be/node_modules/hono/dist/compose.js:30:20)
      at timing2
  (file:///D:/Dicamon/cory/cory-be/node_modules/hono/dist/middleware/timing/index.js:28:11)
      at dispatch (file:///D:/Dicamon/cory/cory-be/node_modules/hono/dist/compose.js:29:23)
      at null.<anonymous> (file:///D:/Dicamon/cory/cory-be/node_modules/hono/dist/compose.js:6:12)


2024-04-10T02:41:32.693Z | RecognitionTriggeredEvent | privName: RecognitionTriggeredEvent | privEventId: AB9EEBF836F644BB960CD0898507DB46 | privEventTime: 2024-04-10T02:41:32.693Z | privEventType: 1 | privMetadata: {} | privRequestId: 486F5D1E168648F082CDFCDF21DA2FAA | privSessionId: <NULL> | privAudioSourceId: 97FD998CE8B643FEB8B589DF8491321D | privAudioNodeId: 4A45AE9DAB28416D845AC2F7D389B819
2024-04-10T02:41:32.696Z | ConnectingToServiceEvent | privName: ConnectingToServiceEvent | privEventId: AB51EDBD6FC44BDBB9AEA221508CD9F2 | privEventTime: 2024-04-10T02:41:32.696Z | privEventType: 1 | privMetadata: {} | privRequestId: 486F5D1E168648F082CDFCDF21DA2FAA | privSessionId: FC5DA4F4CE9A4812BC46800FD6DA7002 | privAuthFetchEventid: 06EE9F9D315F4EACBA791B445F5502F7
2024-04-10T02:41:32.697Z | AudioStreamNodeAttachingEvent | privName: AudioStreamNodeAttachingEvent | privEventId: 9AF876D974834A339754089685A7B576 | privEventTime: 2024-04-10T02:41:32.697Z | privEventType: 1 | privMetadata: {} | privAudioSourceId: 97FD998CE8B643FEB8B589DF8491321D | privAudioNodeId: 4A45AE9DAB28416D845AC2F7D389B819
2024-04-10T02:41:32.698Z | AudioSourceInitializingEvent | privName: AudioSourceInitializingEvent | privEventId: 7667D3B8197C45F2B65A51028AD9EE8C | privEventTime: 2024-04-10T02:41:32.698Z | privEventType: 1 | privMetadata: {} | privAudioSourceId: 97FD998CE8B643FEB8B589DF8491321D
2024-04-10T02:41:32.698Z | AudioSourceReadyEvent | privName: AudioSourceReadyEvent | privEventId: 4C8122D9C3D64F2FAEFAB84B399A6BCB | privEventTime: 2024-04-10T02:41:32.698Z | privEventType: 1 | privMetadata: {} | privAudioSourceId: 97FD998CE8B643FEB8B589DF8491321D
2024-04-10T02:41:32.699Z | AudioStreamNodeAttachedEvent | privName: AudioStreamNodeAttachedEvent | privEventId: F5CB0C07BA0D49649DA20BB7AB576CFA | privEventTime: 2024-04-10T02:41:32.699Z | privEventType: 1 | privMetadata: {} | privAudioSourceId: 97FD998CE8B643FEB8B589DF8491321D | privAudioNodeId: 4A45AE9DAB28416D845AC2F7D389B8192024-04-10T02:41:32.702Z | ConnectionStartEvent | privName: ConnectionStartEvent | privEventId: 5B905977E4574953B4C3BF3A42DCB185 | privEventTime: 2024-04-10T02:41:32.702Z | privEventType: 1 | privMetadata: {} | privConnectionId: FC5DA4F4CE9A4812BC46800FD6DA7002 | privUri: wss://southeastasia.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=en-US&format=simple&endSilenceTimeoutMs=3000&Ocp-Apim-Subscription-Key=97184de55f084905a3471be3cddd7cd6&X-ConnectionId=FC5DA4F4CE9A4812BC46800FD6DA7002 | privHeaders: <NULL>
2024-04-10T02:41:32.703Z | ListeningStartedEvent | privName: ListeningStartedEvent | privEventId: DA15895F421A418FB081E8C1B7D6E1FE | privEventTime: 2024-04-10T02:41:32.703Z | privEventType: 1 | privMetadata: {} | privRequestId: 486F5D1E168648F082CDFCDF21DA2FAA | privSessionId: FC5DA4F4CE9A4812BC46800FD6DA7002 | privAudioSourceId: 97FD998CE8B643FEB8B589DF8491321D | privAudioNodeId: 4A45AE9DAB28416D845AC2F7D389B819

from cognitive-services-speech-sdk-js.

sonbs21 avatar sonbs21 commented on June 12, 2024

return new Promise((resolve: () => void): number => this.privSetTimeout(resolve, delayMs));

When this.prevSetTimeout in the delay function is called, an error will appear Illegal Invocation

from cognitive-services-speech-sdk-js.

glharper avatar glharper commented on June 12, 2024

@sonbs21 If you could pull the branch in the PR above and test it with your cloudflare deployment to see that addresses the issue, I'd appreciate it.

from cognitive-services-speech-sdk-js.

sonbs21 avatar sonbs21 commented on June 12, 2024

I've just tested and it looks like the issue has been resolved. Thank you for you help!😄

from cognitive-services-speech-sdk-js.

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.