How to use virtual-alexa - 2 common examples

To help you get started, we’ve selected a few virtual-alexa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github VoxaAI / voxa / test / e2e / alexa.spec.ts View on Github external
beforeEach(() => {
    alexa = VirtualAlexa.Builder()
      .handler("hello-world/hello-world.alexaLambdaHandler") // Lambda function file and name
      .interactionModelFile("hello-world/alexa-model.json")
      .create();
  });
github bespoken / bst / lib / client / bst-virtual-alexa.ts View on Github external
private validateFilesAndBuild(createdEmptyInteractionModelIfNeeded: boolean): VirtualAlexa {
        const builder = VirtualAlexa.Builder().applicationID(this.applicationID).skillURL(this.skillURL);
        let usingInteractionModel = false;

        if (this.locale) {
            builder.locale(this.locale);
            if (!this.interactionModelProvided) {
                // If we don't have an interaction Model and have a locale, search in the default models/.json location
                this.interactionModel = this.interactionModel.replace("en-US", this.locale);
            }
        }

        if (!(this.interactionModelProvided || this.intentSchemaProvided)) {
            // No model provided, we check if default files exists
            if (fs.existsSync(this.interactionModel)) {
                usingInteractionModel = true;
            } else if (!(fs.existsSync(this.intentSchemaFile) && fs.existsSync(this.sampleUtterancesFile)) && !createdEmptyInteractionModelIfNeeded) {
                // Model don't exist in default locations

virtual-alexa

<p align="center"> <a href="https://bespoken.io/"> <img alt="Bespoken" src="https://bespoken.io/wp-content/uploads/Bespoken-Logo-RGB-e1500333659572.png" width="546"> </a> </p>

Apache-2.0
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis

Popular virtual-alexa functions

Similar packages