Skip to content

Commit 5303b5b

Browse files
committed
Remove hardcoded hub progress speech
1 parent c5264c9 commit 5303b5b

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

apps/iris-voice/src/iris_voice/tools.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from typing import Any
99

1010
from loguru import logger
11-
from pipecat.frames.frames import TTSSpeakFrame
1211
from pipecat.services.llm_service import FunctionCallParams, FunctionCallResultProperties
1312

1413
from .hub_bridge import (
@@ -214,21 +213,6 @@ async def _send_tool_result(
214213
)
215214

216215

217-
async def speak_tool_progress(params: FunctionCallParams, text: str) -> None:
218-
try:
219-
await params.llm.push_frame(TTSSpeakFrame(text))
220-
except Exception:
221-
logger.exception("iris.voice.tool.progress_speech_failed name={}", params.function_name)
222-
223-
224-
def hub_progress_text(action: str) -> str:
225-
if action == "interrupt":
226-
return "Stopping the computer now."
227-
if action == "status":
228-
return "Checking the computer now."
229-
return "I'm on it."
230-
231-
232216
def hub_result_status(result: Any) -> str | None:
233217
if not isinstance(result, dict):
234218
return None
@@ -703,9 +687,6 @@ async def hub(params: FunctionCallParams) -> None:
703687
"hubId": hub_id,
704688
"threadId": thread_id,
705689
})
706-
progress_text = hub_progress_text(action)
707-
events.emit({"type": "assistant.text", "text": progress_text})
708-
await speak_tool_progress(params, progress_text)
709690
await _send_tool_result(
710691
params,
711692
{
@@ -766,7 +747,6 @@ async def hub(params: FunctionCallParams) -> None:
766747
if action in {"start", "steer"} and status in RUNNING_HUB_STATUSES:
767748
final_result["voice"] = {
768749
"state": "running",
769-
"progressAlreadySpoken": progress_text,
770750
"completionExpected": True,
771751
}
772752
await _send_tool_result(

0 commit comments

Comments
 (0)