@jambonz/speech-utils 0.2.22 → 0.2.23

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.
@@ -862,8 +862,10 @@ const synthElevenlabs = async(logger, {
862
862
  params += ',vendor=elevenlabs';
863
863
  params += `,voice=${voice}`;
864
864
  params += `,model_id=${model_id}`;
865
- params += `,optimize_streaming_latency=${opts.optimize_streaming_latency || 2}`;
866
865
  params += ',write_cache_file=1';
866
+ if (opts.optimize_streaming_latency !== null && opts.optimize_streaming_latency !== undefined) {
867
+ params += `,optimize_streaming_latency=${opts.optimize_streaming_latency}`;
868
+ }
867
869
  if (opts.voice_settings?.similarity_boost) params += `,similarity_boost=${opts.voice_settings.similarity_boost}`;
868
870
  if (opts.voice_settings?.stability) params += `,stability=${opts.voice_settings.stability}`;
869
871
  if (opts.voice_settings?.style) params += `,style=${opts.voice_settings.style}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/speech-utils",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "TTS-related speech utilities for jambonz",
5
5
  "main": "index.js",
6
6
  "author": "Dave Horton",