@jambonz/speech-utils 0.2.3 → 0.2.6

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.
@@ -789,9 +789,13 @@ const synthElevenlabs = async(logger, {
789
789
  if (opts.voice_settings?.similarity_boost) params += `,similarity_boost=${opts.voice_settings.similarity_boost}`;
790
790
  if (opts.voice_settings?.stability) params += `,stability=${opts.voice_settings.stability}`;
791
791
  if (opts.voice_settings?.style) params += `,style=${opts.voice_settings.style}`;
792
+ if (opts.voice_settings?.speed !== null && opts.voice_settings?.speed !== undefined)
793
+ params += `,speed=${opts.voice_settings.speed}`;
792
794
  if (opts.voice_settings?.use_speaker_boost === false) params += ',use_speaker_boost=false';
793
795
  if (opts.previous_text) params += `,previous_text=${opts.previous_text}`;
794
796
  if (opts.next_text) params += `,next_text=${opts.next_text}`;
797
+ if (opts.pronunciation_dictionary_locators && Array.isArray(opts.pronunciation_dictionary_locators))
798
+ params += `,pronunciation_dictionary_locators=${JSON.stringify(opts.pronunciation_dictionary_locators)}`;
795
799
  params += '}';
796
800
 
797
801
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/speech-utils",
3
- "version": "0.2.3",
3
+ "version": "0.2.6",
4
4
  "description": "TTS-related speech utilities for jambonz",
5
5
  "main": "index.js",
6
6
  "author": "Dave Horton",
@@ -39,7 +39,7 @@
39
39
  "ibm-watson": "^8.0.0",
40
40
  "microsoft-cognitiveservices-speech-sdk": "1.38.0",
41
41
  "openai": "^4.25.0",
42
- "undici": "^6.4.0"
42
+ "undici": "^7.5.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "config": "^3.3.11",