Code Monkey home page Code Monkey logo

Comments (2)

watson-github-bot avatar watson-github-bot commented on August 11, 2024

πŸŽ‰ This issue has been resolved in version 0.37.1 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

from speech-javascript-sdk.

ThomasBahn avatar ThomasBahn commented on August 11, 2024

Thank you, German, now I got the next problem (same example):

In my German browser:
Die Ressource von "http://localhost:3000/scripts/watson-speech/dist/watson-speech.js" wurde wegen eines MIME-Typ-Konfliktes ("text/html") blockiert (X-Content-Type-Options: nosniff).
Laden fehlgeschlagen fΓΌr das <script> mit der Quelle "http://localhost:3000/scripts/watson-speech/dist/watson-speech.js".
ReferenceError: "WatsonSpeech is not defined"
http://localhost:3000/text-to-speech-custom-voice.html:36

translated:
The resource from "http://localhost:3000/scripts/watson-speech/dist/watson-speech.js" has been blocked due to a MIME type conflict ("text/html") (X-Content-Type-Options: nosniff).
Loading failed for the <script> with the source "http://localhost:3000/scripts/watson-speech/dist/watson-speech.js".
ReferenceError: "WatsonSpeech is not defined"
http://localhost:3000/text-to-speech-custom-voice.html:36

Network communication show this:
image

After some digging I think, I've found the reason:
The url http://localhost:3000/scripts/watson-speech/dist/watson-speech.js
references the file
examples/static/scripts/watson-speech/dist/watson-speech.js

But the postinstall script /scripts/postinstall.sh copies the file to
examples/static/scripts/watson-speech/
(without dist).

Last line of this file:
mkdir -p static/scripts/watson-speech && cp -r node_modules/watson-speech/dist "$"
should be
mkdir -p static/scripts/watson-speech/dist && cp -r node_modules/watson-speech/dist "$
"

from speech-javascript-sdk.

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.