Giter Club home page Giter Club logo

Comments (11)

darind avatar darind commented on May 25, 2024 1

@jibon57, that's a completely different issue. I haven't looked into it.

from ios.

jibon57 avatar jibon57 commented on May 25, 2024

I can see one error:

CONSOLE ERROR: ERROR Error: Uncaught (in promise): TypeError: properties.getPropertyById is not a function
TypeError: properties.getPropertyById is not a function

from ios.

darind avatar darind commented on May 25, 2024

I am getting the following error when I try to build your project:

ERROR in ./workers/mscognitiveservices.worker.ts (../node_modules/nativescript-dev-webpack/moduleid-compat-loader.js!../node_modules/nativescript-dev-webpack/lazy-ngmodule-hot-loader.js!../node_modules/@ngtools/webpack/src!./workers/mscognitiveservices.worker.ts)
Module build failed (from ../node_modules/@ngtools/webpack/src/index.js):
Error: The AngularCompilerPlugin was not found. The @ngtools/webpack loader requires the plugin.
    at Object.ngcLoader (/Users/<someuser>/nativescript/azure-cognitive-services/node_modules/@ngtools/webpack/src/loader.js:27:15)
Executing webpack failed with exit code 2.

from ios.

jibon57 avatar jibon57 commented on May 25, 2024

@darind I can compile perfectly. My environment:

✔ Getting NativeScript components versions information...
✔ Component nativescript has 6.4.1 version and is up to date.
✔ Component tns-core-modules has 6.4.2 version and is up to date.
✔ Component tns-android has 6.4.1 version and is up to date.
✔ Component tns-ios has 6.5.0-beta.2-v8-2020-03-06-182159-01 version and is up to date.

[./package.json] 134 bytes {bundle} {tns_modules/tns-core-modules/inspector_modules} [optional] [built]
    + 615 hidden modules
Child worker:
                             Asset      Size  Chunks             Chunk Names
    3e3ffe36eed31c736fa5.worker.js  4.72 MiB    main  [emitted]  main
    Entrypoint main = 3e3ffe36eed31c736fa5.worker.js
    [../node_modules/ts-loader/index.js!./workers/mscognitiveservices.worker.ts] ../node_modules/ts-loader!./workers/mscognitiveservices.worker.ts 6.61 KiB {main} [built]
    [./package.json] 134 bytes {main} [optional] [built]
        + 282 hidden modules
Webpack compilation complete. Watching for file changes.

Archive 2.zip

from ios.

jibon57 avatar jibon57 commented on May 25, 2024

@darind I think the problem is happening for mscognitiveservices.worker.ts line 119. If I remove that line then I can get output. Looks like that method isn't available in runtime. If you try same project with official runtime then it will work.

from ios.

darind avatar darind commented on May 25, 2024

I was able to build and run the project. When I click Navigate > Record, I get the following output:

2020-03-07 11:14:29.756846+0200 azurecognitiveservices[75390:2358086] CONSOLE LOG: {
  "task": "record"
}
2020-03-07 11:14:29.938721+0200 azurecognitiveservices[75390:2358640]  PropertyID=1667788144 is NULL
2020-03-07 11:14:36.113866+0200 azurecognitiveservices[75390:2358086] Unknown CancellationReason value: 0.
2020-03-07 11:14:36.115071+0200 azurecognitiveservices[75390:2358086] CONSOLE LOG:
2020-03-07 11:14:36.118405+0200 azurecognitiveservices[75390:2357918] file:///app/bundle.js:262:21:
==== object dump start ====
data: "{"gotResult":false,"msg":"NoMatch"}"
==== object dump end ====

I think that this condition is not satisfied on line 116:

if (speechResult.reason == SPXResultReason.RecognizedSpeech) {

from ios.

jibon57 avatar jibon57 commented on May 25, 2024

@darind thanks. I did like this:


            let properties = speechResult.properties;
            //let speechJson = properties.getPropertyById(SPXPropertyId.SpeechServiceResponseJsonResult);

            //console.log(speechJson);
        
  (<any>global).postMessage(JSON.stringify(speechResult.text));

& after click on record speak "Hello World". Now I am getting result:

CONSOLE LOG: {
"task": "record"
}
file: src/app/item/item-detail.component.ts:93:20:
==== object dump start ====
data: ""Hello World.""
==== object dump end ====

This part: properties.getPropertyById(SPXPropertyId.SpeechServiceResponseJsonResult);
having problem.

from ios.

darind avatar darind commented on May 25, 2024

@jibon57, we have released a fix for this issue. Could you please verify if the Microsoft Cognitive Toolkit is now working properly?

from ios.

jibon57 avatar jibon57 commented on May 25, 2024

@darind thanks for update. In new version APP isn't starting. I am getting following errors:

CONSOLE LOG: Loading inspector modules...
(RunningBoardServices) [com.apple.runningboard:connection] Identity resolved as application<org.nativescript.speechservice>
CONSOLE LOG: Finished loading inspector modules.
CONSOLE LOG: Loading inspector modules...
(RunningBoardServices) [com.apple.runningboard:connection] Identity resolved as application<org.nativescript.speechservice>
CONSOLE LOG: Finished loading inspector modules.

Screen Shot 2020-03-09 at 6 52 48 PM

from ios.

darind avatar darind commented on May 25, 2024

@jibon57, got it, should be working now.

from ios.

jibon57 avatar jibon57 commented on May 25, 2024

@darind thank you! It's working fine now.

Another issue also opened in Android Runtime here: NativeScript/android#1591 . Any suggestion on that?

from ios.

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.