mirror of
https://github.com/jambonz/verb-specifications.git
synced 2026-01-25 02:08:06 +00:00
Merge pull request #4 from jambonz/fix/export
fix: module export to index.js file
This commit is contained in:
4
index.js
4
index.js
@@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
...require('./jambonz-app-json-validation'),
|
||||
specs: require('./specs')
|
||||
};
|
||||
|
||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -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"
|
||||
|
||||
@@ -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": {
|
||||
|
||||
22
specs.json
22
specs.json
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user