@jambonz/speech-utils 0.1.17 → 0.1.19

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.
@@ -779,6 +779,9 @@ const synthPlayHT = async(client, logger, {
779
779
  synthesizeUrl = inference_address;
780
780
  const expiry = Math.floor((expires_at_ms - Date.now()) / 1000 - 30);
781
781
  await client.set(key, inference_address, 'EX', expiry);
782
+ } else {
783
+ // Use cached URL
784
+ synthesizeUrl = url;
782
785
  }
783
786
  } catch (err) {
784
787
  logger.info({err}, 'synth PlayHT returned error for authentication version 3.0');
@@ -797,6 +800,7 @@ const synthPlayHT = async(client, logger, {
797
800
  params += `,voice_engine=${voice_engine}`;
798
801
  params += `,synthesize_url=${synthesizeUrl}`;
799
802
  params += ',write_cache_file=1';
803
+ params += `,language=${language}`;
800
804
  if (opts.quality) params += `,quality=${opts.quality}`;
801
805
  if (opts.speed) params += `,speed=${opts.speed}`;
802
806
  if (opts.seed) params += `,style=${opts.seed}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/speech-utils",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "TTS-related speech utilities for jambonz",
5
5
  "main": "index.js",
6
6
  "author": "Dave Horton",