move smart turn files to audio.turn.smart_turn package

This commit is contained in:
Aleix Conchillo Flaqué
2025-04-22 15:25:02 -07:00
parent ae60d42016
commit e7da08dab1
9 changed files with 14 additions and 16 deletions

View File

@@ -8,7 +8,7 @@ from typing import Optional
import aiohttp
from pipecat.audio.turn.http_smart_turn import HttpSmartTurnAnalyzer
from pipecat.audio.turn.smart_turn.http_smart_turn import HttpSmartTurnAnalyzer
class FalSmartTurnAnalyzer(HttpSmartTurnAnalyzer):

View File

@@ -12,7 +12,7 @@ import aiohttp
import numpy as np
from loguru import logger
from pipecat.audio.turn.base_smart_turn import BaseSmartTurn, SmartTurnTimeoutException
from pipecat.audio.turn.smart_turn.base_smart_turn import BaseSmartTurn, SmartTurnTimeoutException
class HttpSmartTurnAnalyzer(BaseSmartTurn):

View File

@@ -10,7 +10,7 @@ from typing import Any, Dict
import numpy as np
from loguru import logger
from pipecat.audio.turn.base_smart_turn import BaseSmartTurn
from pipecat.audio.turn.smart_turn.base_smart_turn import BaseSmartTurn
try:
import coremltools as ct
@@ -25,7 +25,7 @@ except ModuleNotFoundError as e:
class LocalCoreMLSmartTurnAnalyzer(BaseSmartTurn):
def __init__(self, smart_turn_model_path: str, **kwargs):
def __init__(self, *, smart_turn_model_path: str, **kwargs):
super().__init__(**kwargs)
if not smart_turn_model_path: