@jambonz/speech-utils 0.0.20 → 0.0.21

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.
@@ -331,8 +331,9 @@ async function _synthOnPremMicrosoft(logger, {
331
331
  }
332
332
 
333
333
  try {
334
+ const trimSilence = filePath.endsWith('.r8');
334
335
  const post = bent('POST', 'buffer', {
335
- 'X-Microsoft-OutputFormat': 'audio-16khz-128kbitrate-mono-mp3',
336
+ 'X-Microsoft-OutputFormat': trimSilence ? 'raw-8khz-16bit-mono-pcm' : 'audio-16khz-32kbitrate-mono-mp3',
336
337
  'Content-Type': 'application/ssml+xml',
337
338
  'User-Agent': 'Jambonz'
338
339
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/speech-utils",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "TTS-related speech utilities for jambonz",
5
5
  "main": "index.js",
6
6
  "author": "Dave Horton",