Comments (11)
@jibon57, that's a completely different issue. I haven't looked into it.
from ios.
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.
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.
@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.
from ios.
@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.
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.
@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.
@jibon57, we have released a fix for this issue. Could you please verify if the Microsoft Cognitive Toolkit is now working properly?
from ios.
@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.
from ios.
@jibon57, got it, should be working now.
from ios.
@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)
- App randomly crash with v8::base::OS::Abort()
- 8.2.0-alpha.5 : App crashes on Emulator when Chrome debugger tries to connect HOT 1
- Fix metadata-generator on Xcode 13 HOT 3
- dSYM for @nativescript/iOS: 8.1.0 not available in releases HOT 3
- Invalid sdk value for 8.2.0 HOT 2
- mac m1 build linker failed arm64 HOT 1
- ListView make the app crash on release build
- Getting a syntax error for for ios code NS6 HOT 1
- Missing "Worker" Functionality in ios v8 HOT 1
- V8 base:OS:Abort on v 8.2.3
- Garbage pointer dereference using v 8.2.3 HOT 2
- "libXML2 not found" when building metadata generator HOT 3
- When trying to generate metadata, fatal error: 'clang/AST/DeclBase.h' file not found HOT 2
- Crash in tns::compareIdentifiers (EXC_BAD_ACCESS / KERN_INVALID_ADDRESS) in simulator
- Missing dSym for release 8.3 HOT 1
- Build error - Bitcode not enabled
- npm package increased from 87.6 MB to 290 MB since v7 and introduction of multi-architecture support HOT 1
- Metadata generator fails to generate proper types and does not add method to runtime
- Question on declarations generation HOT 4
- Xcode 14.3 HOT 3
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 ios.