bump version and minor changes

This commit is contained in:
Dave Horton
2023-03-31 20:05:07 -04:00
parent 3fcfbd10a1
commit 11746d3f22
3 changed files with 4 additions and 5 deletions

View File

@@ -2,7 +2,6 @@ const assert = require('assert');
const fs = require('fs');
const bent = require('bent');
const ttsGoogle = require('@google-cloud/text-to-speech');
//const Polly = require('aws-sdk/clients/polly');
const { PollyClient, SynthesizeSpeechCommand } = require('@aws-sdk/client-polly');
const sdk = require('microsoft-cognitiveservices-speech-sdk');
@@ -327,8 +326,8 @@ const synthMicrosoft = async(logger, {
break;
case ResultReason.SynthesizingAudioCompleted:
stats.increment('tts.count', ['vendor:microsoft', 'accepted:yes']);
synthesizer.close();
resolve(result.audioData);
synthesizer.close();
break;
default:
logger.info({result}, 'synthAudio: (Microsoft) unexpected result');

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@jambonz/speech-utils",
"version": "0.0.9",
"version": "0.0.10",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@jambonz/speech-utils",
"version": "0.0.9",
"version": "0.0.10",
"license": "MIT",
"dependencies": {
"@aws-sdk/client-polly": "^3.303.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@jambonz/speech-utils",
"version": "0.0.9",
"version": "0.0.10",
"description": "TTS-related speech utilities for jambonz",
"main": "index.js",
"author": "Dave Horton",