@jambonz/speech-utils 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,7 +125,8 @@ async function synthAudio(client, logger, stats, { account_sid,
125
125
  if (['nuance', 'nvidia'].includes(vendor) ||
126
126
  (
127
127
  process.env.JAMBONES_TTS_TRIM_SILENCE &&
128
- ['microsoft', 'azure'].includes(vendor)
128
+ ['microsoft', 'azure'].includes(vendor) &&
129
+ !text.startsWith('<speak')
129
130
  )
130
131
  ) {
131
132
  filePath = `${TMP_FOLDER}/${key.replace('tts:', `tts-${salt || ''}`)}.r8`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/speech-utils",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "TTS-related speech utilities for jambonz",
5
5
  "main": "index.js",
6
6
  "author": "Dave Horton",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "homepage": "https://github.com/jambonz/speech-utils#readme",
26
26
  "dependencies": {
27
- "@aws-sdk/client-polly": "^3.347.1",
27
+ "@aws-sdk/client-polly": "^3.359.0",
28
28
  "@google-cloud/text-to-speech": "^4.2.1",
29
29
  "@grpc/grpc-js": "^1.8.13",
30
30
  "bent": "^7.3.12",