intellema-vdk 0.2.0__tar.gz → 0.2.1__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.
- {intellema_vdk-0.2.0/intellema_vdk.egg-info → intellema_vdk-0.2.1}/PKG-INFO +1 -1
- intellema_vdk-0.2.1/intellema_vdk/__pycache__/__init__.cpython-312.pyc +0 -0
- intellema_vdk-0.2.1/intellema_vdk/livekit_lib/__pycache__/__init__.cpython-312.pyc +0 -0
- intellema_vdk-0.2.1/intellema_vdk/livekit_lib/__pycache__/client.cpython-312.pyc +0 -0
- intellema_vdk-0.2.1/intellema_vdk/retell_lib/__pycache__/__init__.cpython-312.pyc +0 -0
- intellema_vdk-0.2.1/intellema_vdk/retell_lib/__pycache__/retell_client.cpython-312.pyc +0 -0
- intellema_vdk-0.2.1/intellema_vdk/speech_lib/__pycache__/__init__.cpython-312.pyc +0 -0
- intellema_vdk-0.2.1/intellema_vdk/speech_lib/__pycache__/stt_client.cpython-312.pyc +0 -0
- intellema_vdk-0.2.1/intellema_vdk/speech_lib/__pycache__/tts_streamer.cpython-312.pyc +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk/speech_lib/stt_client.py +5 -3
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1/intellema_vdk.egg-info}/PKG-INFO +1 -1
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk.egg-info/SOURCES.txt +9 -1
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/pyproject.toml +1 -1
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/LICENSE +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/MANIFEST.in +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/README.md +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk/__init__.py +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk/livekit_lib/__init__.py +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk/livekit_lib/client.py +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk/retell_lib/__init__.py +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk/retell_lib/import_phone_number.py +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk/retell_lib/retell_client.py +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk/speech_lib/__init__.py +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk/speech_lib/tts_streamer.py +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk.egg-info/dependency_links.txt +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk.egg-info/requires.txt +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/intellema_vdk.egg-info/top_level.txt +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/requirements.txt +0 -0
- {intellema_vdk-0.2.0 → intellema_vdk-0.2.1}/setup.cfg +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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
|
|
@@ -9,11 +9,19 @@ intellema_vdk.egg-info/SOURCES.txt
|
|
|
9
9
|
intellema_vdk.egg-info/dependency_links.txt
|
|
10
10
|
intellema_vdk.egg-info/requires.txt
|
|
11
11
|
intellema_vdk.egg-info/top_level.txt
|
|
12
|
+
intellema_vdk/__pycache__/__init__.cpython-312.pyc
|
|
12
13
|
intellema_vdk/livekit_lib/__init__.py
|
|
13
14
|
intellema_vdk/livekit_lib/client.py
|
|
15
|
+
intellema_vdk/livekit_lib/__pycache__/__init__.cpython-312.pyc
|
|
16
|
+
intellema_vdk/livekit_lib/__pycache__/client.cpython-312.pyc
|
|
14
17
|
intellema_vdk/retell_lib/__init__.py
|
|
15
18
|
intellema_vdk/retell_lib/import_phone_number.py
|
|
16
19
|
intellema_vdk/retell_lib/retell_client.py
|
|
20
|
+
intellema_vdk/retell_lib/__pycache__/__init__.cpython-312.pyc
|
|
21
|
+
intellema_vdk/retell_lib/__pycache__/retell_client.cpython-312.pyc
|
|
17
22
|
intellema_vdk/speech_lib/__init__.py
|
|
18
23
|
intellema_vdk/speech_lib/stt_client.py
|
|
19
|
-
intellema_vdk/speech_lib/tts_streamer.py
|
|
24
|
+
intellema_vdk/speech_lib/tts_streamer.py
|
|
25
|
+
intellema_vdk/speech_lib/__pycache__/__init__.cpython-312.pyc
|
|
26
|
+
intellema_vdk/speech_lib/__pycache__/stt_client.cpython-312.pyc
|
|
27
|
+
intellema_vdk/speech_lib/__pycache__/tts_streamer.cpython-312.pyc
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|