livekit-plugins-speechify 1.8.0__tar.gz → 1.8.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: livekit-plugins-speechify
3
- Version: 1.8.0
3
+ Version: 1.8.2
4
4
  Summary: Agent Framework plugin for voice synthesis with Speechify's API.
5
5
  Project-URL: Documentation, https://docs.livekit.io
6
6
  Project-URL: Website, https://livekit.io/
@@ -17,7 +17,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio
17
17
  Classifier: Topic :: Multimedia :: Video
18
18
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
19
  Requires-Python: >=3.10.0
20
- Requires-Dist: livekit-agents[codecs]>=1.8.0
20
+ Requires-Dist: livekit-agents[codecs]>=1.8.2
21
21
  Requires-Dist: speechify-api>=4.0.0
22
22
  Description-Content-Type: text/markdown
23
23
 
@@ -51,6 +51,7 @@ from speechify.types.speech_stream_event import (
51
51
 
52
52
  from .log import logger
53
53
  from .models import Gender, TTSModels, VoiceType
54
+ from .version import __version__
54
55
 
55
56
  DEFAULT_VOICE_ID = "dominic_32"
56
57
  DEFAULT_MODEL: TTSModels = "simba-3.2"
@@ -59,6 +60,7 @@ NUM_CHANNELS = 1
59
60
  AUDIO_FORMAT = "pcm"
60
61
  MIME_TYPE = "audio/pcm"
61
62
  CALLER_HEADER = "Speechify-Caller"
63
+ CALLER_VERSION_HEADER = "Speechify-Caller-Version"
62
64
 
63
65
 
64
66
  @dataclass
@@ -169,7 +171,7 @@ class TTS(tts.TTS):
169
171
  # Timeout/limits mirror the openai plugin's owned-client defaults —
170
172
  # httpx's own 5s default is too short for longer synthesis requests.
171
173
  self._httpx_client = httpx.AsyncClient(
172
- headers={CALLER_HEADER: "livekit"},
174
+ headers={CALLER_HEADER: "livekit", CALLER_VERSION_HEADER: __version__},
173
175
  timeout=httpx.Timeout(connect=15.0, read=30.0, write=30.0, pool=5.0),
174
176
  limits=httpx.Limits(
175
177
  max_connections=50, max_keepalive_connections=50, keepalive_expiry=120
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "1.8.0"
15
+ __version__ = "1.8.2"
@@ -21,7 +21,7 @@ classifiers = [
21
21
  "Programming Language :: Python :: 3.10",
22
22
  "Programming Language :: Python :: 3 :: Only",
23
23
  ]
24
- dependencies = ["livekit-agents[codecs]>=1.8.0", "speechify-api>=4.0.0"]
24
+ dependencies = ["livekit-agents[codecs]>=1.8.2", "speechify-api>=4.0.0"]
25
25
 
26
26
  [project.urls]
27
27
  Documentation = "https://docs.livekit.io"