intellema-vdk 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl

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.
@@ -69,19 +69,20 @@ class STTManager:
69
69
  file_path: The path to the audio file to process.
70
70
  Supported formats: mp3, mp4, mpeg, mpga, m4a, wav, and webm.
71
71
  Returns:
72
- The transcribed text as a string.
72
+ A tuple containing the transcribed text (str) and the API response data (dict, str, or None).
73
73
  """
74
74
  try:
75
75
  # Transcribe the audio file
76
76
  transcript_text = await self.transcribe_audio(file_path)
77
77
 
78
+ response = None
78
79
  # Post the transcribed text to the agent API
79
80
  if self._agent_api_url:
80
- await self._post_to_agent(transcript_text)
81
+ response = await self._post_to_agent(transcript_text)
81
82
  else:
82
83
  logger.info("AGENT_API_URL not set, skipping post to agent.")
83
84
 
84
- return transcript_text
85
+ return transcript_text, response
85
86
 
86
87
  except FileNotFoundError:
87
88
  logger.error(f"Audio file not found at: {file_path}", exc_info=True)
@@ -103,6 +104,7 @@ class STTManager:
103
104
  response = await self._http_client.post(self._agent_api_url, json=payload)
104
105
  response.raise_for_status()
105
106
  logger.info(f"Successfully posted to agent. Status: {response.status_code}")
107
+ return response.json()
106
108
  except httpx.HTTPError as e:
107
109
  logger.error(f"Failed to post to agent API: {e}", exc_info=True)
108
110
  raise
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: intellema-vdk
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A Voice Development Kit for different Voice Agent Platforms
5
5
  Author: Intellema
6
6
  License: MIT License
@@ -0,0 +1,22 @@
1
+ intellema_vdk/__init__.py,sha256=64pm2TLqhGG225JLddco1kSOpLaD3eGByWvMpaHUUX0,1231
2
+ intellema_vdk/__pycache__/__init__.cpython-312.pyc,sha256=Cri-F6sR9M0zoyIdJjvoAgsXtrXDBq0-sMbdibA4auo,1601
3
+ intellema_vdk/livekit_lib/__init__.py,sha256=9JsOBswDivM8tRw9EF1ql0wwFnHvwjcPWT-umqad98o,68
4
+ intellema_vdk/livekit_lib/client.py,sha256=UxOuT9I-YPtHopx4dXoGKRAJvLXKFgUdtrAcHdR4a-Q,10687
5
+ intellema_vdk/livekit_lib/__pycache__/__init__.cpython-312.pyc,sha256=iRpPHc1U3BQzKnN6e4mMPpjalbRRsw7vjAL7uwGDmaI,235
6
+ intellema_vdk/livekit_lib/__pycache__/client.cpython-312.pyc,sha256=8VK_JO9YMGf9xjtKWNt6H0FaB00M3k5ZpGNO6zD6i1Q,14359
7
+ intellema_vdk/retell_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ intellema_vdk/retell_lib/import_phone_number.py,sha256=pOt1k6De6-bt2xOPzMMR0nI4Ha6BzLjm19qenyy9RN8,3081
9
+ intellema_vdk/retell_lib/retell_client.py,sha256=qT00NJWi2rJyLWswWTx5fGl5mwPdy6QurQt1Enac0rU,10793
10
+ intellema_vdk/retell_lib/__pycache__/__init__.cpython-312.pyc,sha256=JrWuzMLUU8YQLrPeAT9B4BPKgxlHlXVoYjgRghxdL2w,158
11
+ intellema_vdk/retell_lib/__pycache__/retell_client.cpython-312.pyc,sha256=I4xfry1ngMKd1jVHCg370FIKQm0uaZtI6YilpzHIVa0,12995
12
+ intellema_vdk/speech_lib/__init__.py,sha256=TXdyAAS6AfQfln_QlIvx_uXU-ksugXzC2N9hrjW1_MQ,73
13
+ intellema_vdk/speech_lib/stt_client.py,sha256=J_27j_qny2pmTB4hHvo3Z0V4NdDpdRz54TDx9uKx-is,4200
14
+ intellema_vdk/speech_lib/tts_streamer.py,sha256=qs2mzP0vKqv2eKvGJSCTee3mzeJGS9nji0Yy3Y-sOTc,6453
15
+ intellema_vdk/speech_lib/__pycache__/__init__.cpython-312.pyc,sha256=MKwHuGig1wmfxwzLQjrW9vqzjuNUGaArZVswvsxeyv8,255
16
+ intellema_vdk/speech_lib/__pycache__/stt_client.cpython-312.pyc,sha256=dnR3dMBG-GrICK39IiGl6eLfARa_eeuqRmIUxHwpXu0,6166
17
+ intellema_vdk/speech_lib/__pycache__/tts_streamer.cpython-312.pyc,sha256=-Jzb2oL_SH7uroyAOr2uDrBqMsc_3ksV1TYStXPmKKI,8243
18
+ intellema_vdk-0.2.1.dist-info/licenses/LICENSE,sha256=41qw3yuvY1SpTkwLebZTVYOKk9OIe1Kr6I1S6Y5mp8Y,1087
19
+ intellema_vdk-0.2.1.dist-info/METADATA,sha256=Z-gZO-k5dPgMWH9tUmOBWArd5tmymivdN9RU4B6_HQw,7363
20
+ intellema_vdk-0.2.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
21
+ intellema_vdk-0.2.1.dist-info/top_level.txt,sha256=nQ_0rJRkEthHH0bJYoPAVVgQiO6Uw6c_mHnfeROG14U,14
22
+ intellema_vdk-0.2.1.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- intellema_vdk/__init__.py,sha256=64pm2TLqhGG225JLddco1kSOpLaD3eGByWvMpaHUUX0,1231
2
- intellema_vdk/livekit_lib/__init__.py,sha256=9JsOBswDivM8tRw9EF1ql0wwFnHvwjcPWT-umqad98o,68
3
- intellema_vdk/livekit_lib/client.py,sha256=UxOuT9I-YPtHopx4dXoGKRAJvLXKFgUdtrAcHdR4a-Q,10687
4
- intellema_vdk/retell_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- intellema_vdk/retell_lib/import_phone_number.py,sha256=pOt1k6De6-bt2xOPzMMR0nI4Ha6BzLjm19qenyy9RN8,3081
6
- intellema_vdk/retell_lib/retell_client.py,sha256=qT00NJWi2rJyLWswWTx5fGl5mwPdy6QurQt1Enac0rU,10793
7
- intellema_vdk/speech_lib/__init__.py,sha256=TXdyAAS6AfQfln_QlIvx_uXU-ksugXzC2N9hrjW1_MQ,73
8
- intellema_vdk/speech_lib/stt_client.py,sha256=YB8-mJUtQKhqEC4zhipJUb6Y8LqJx0Vv_c4iIxuUjJM,4054
9
- intellema_vdk/speech_lib/tts_streamer.py,sha256=qs2mzP0vKqv2eKvGJSCTee3mzeJGS9nji0Yy3Y-sOTc,6453
10
- intellema_vdk-0.2.0.dist-info/licenses/LICENSE,sha256=41qw3yuvY1SpTkwLebZTVYOKk9OIe1Kr6I1S6Y5mp8Y,1087
11
- intellema_vdk-0.2.0.dist-info/METADATA,sha256=j53oDXr8Xcq7nkP4v6bWeK62z0yR-Pa2yivGaCw-abc,7363
12
- intellema_vdk-0.2.0.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
13
- intellema_vdk-0.2.0.dist-info/top_level.txt,sha256=nQ_0rJRkEthHH0bJYoPAVVgQiO6Uw6c_mHnfeROG14U,14
14
- intellema_vdk-0.2.0.dist-info/RECORD,,