Merge pull request #4 from jambonz/fix/export

fix: module export to index.js file
This commit is contained in:
Dave Horton
2023-02-15 09:14:55 -05:00
committed by GitHub
5 changed files with 30 additions and 12 deletions

View File

@@ -0,0 +1,4 @@
module.exports = {
...require('./jambonz-app-json-validation'),
specs: require('./specs')
};

8
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "verb-specifications",
"version": "0.0.2",
"name": "@jambonz/verb-specifications",
"version": "0.0.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "verb-specifications",
"version": "0.0.2",
"name": "@jambonz/verb-specifications",
"version": "0.0.3",
"license": "MIT",
"dependencies": {
"pino": "^8.8.0"

View File

@@ -1,6 +1,6 @@
{
"name": "verb-specifications",
"version": "0.0.2",
"name": "@jambonz/verb-specifications",
"version": "0.0.3",
"description": "Jambonz Verb Specification Utilities",
"main": "index.js",
"scripts": {

View File

@@ -467,7 +467,7 @@
"properties": {
"vendor": {
"type": "string",
"enum": ["google", "aws", "polly", "microsoft", "nuance", "ibm", "default"]
"enum": ["google", "aws", "polly", "microsoft", "nuance", "ibm", "nvidia", "default"]
},
"language": "string",
"voice": "string",
@@ -488,7 +488,7 @@
"properties": {
"vendor": {
"type": "string",
"enum": ["google", "aws", "microsoft", "nuance", "deepgram", "ibm", "default"]
"enum": ["google", "aws", "microsoft", "nuance", "deepgram", "ibm", "nvidia", "default"]
},
"language": "string",
"vad": "#vad",
@@ -555,12 +555,26 @@
"asrTimeout": "number",
"nuanceOptions": "#nuanceOptions",
"deepgramOptions": "#deepgramOptions",
"ibmOptions": "#ibmOptions"
"ibmOptions": "#ibmOptions",
"nvidiaOptions": "#nvidiaOptions"
},
"required": [
"vendor"
]
},
"nvidiaOptions": {
"properties": {
"rivaUri": "string",
"maxAlternatives": "number",
"profanityFilter": "boolean",
"punctuation": "boolean",
"wordTimeOffsets": "boolean",
"verbatimTranscripts": "boolean",
"customConfiguration": "object"
},
"required": [
]
},
"ibmOptions": {
"properties": {
"sttApiKey": "string",
@@ -774,4 +788,4 @@
"greetingCompletionTimeoutMs": "number"
}
}
}
}

View File

@@ -1,6 +1,6 @@
const test = require('tape');
const logger = require('pino')({level: process.env.JAMBONES_LOGLEVEL || 'error'});
const { validate } = require('../jambonz-app-json-validation');
const { validate } = require('..');
test("validate correct verbs", async (t) => {
@@ -231,7 +231,7 @@ test("validate correct verbs", async (t) => {
"verb": "transcribe",
"transcriptionHook": "http://example.com/transcribe",
"recognizer": {
"vendor": "google",
"vendor": "nvidia",
"language" : "en-US",
"interim": true
}