Skip to content

Commit ff32519

Browse files
docs: update for pipecat PR #4229 - remove transport VAD/turn params
Update TransportParams documentation to reflect removal of vad_analyzer and turn_analyzer parameters (removed in pipecat 0.0.102). Changes: - Renamed "Deprecated Parameters" section to "Removed Parameters" - Updated vad_analyzer and turn_analyzer param docs to indicate removal - Added migration example for turn_analyzer parameter - Updated language from "deprecated" to "removed" Related to pipecat-ai/pipecat#4229
1 parent 6882bc2 commit ff32519

1 file changed

Lines changed: 45 additions & 5 deletions

File tree

server/services/transport/transport-params.mdx

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,20 +149,20 @@ transport = DailyTransport(
149149
Enable video input streaming.
150150
</ParamField>
151151

152-
## Deprecated Parameters
152+
## Removed Parameters
153153

154154
<Warning>
155-
The following parameters are deprecated and should not be used in new code. See the migration guidance for each parameter.
155+
The following parameters were removed and are no longer supported. See the migration guidance for alternatives.
156156
</Warning>
157157

158158
<ParamField path="vad_analyzer" type="VADAnalyzer" default="None">
159159
Voice Activity Detection analyzer instance.
160160

161-
**Deprecated in 0.0.101**. Use `LLMUserAggregator`'s `vad_analyzer` parameter, or `VADProcessor` if no `LLMUserAggregator` is needed.
161+
**Removed in 0.0.102** (deprecated in 0.0.101). Use `LLMUserAggregator`'s `vad_analyzer` parameter, or `VADProcessor` if no `LLMUserAggregator` is needed.
162162

163163
Migration example:
164164
```python
165-
# Old (deprecated)
165+
# Old (removed)
166166
transport = DailyTransport(
167167
room_url, token, "Bot",
168168
params=DailyParams(
@@ -205,7 +205,47 @@ The following parameters are deprecated and should not be used in new code. See
205205
<ParamField path="turn_analyzer" type="BaseTurnAnalyzer" default="None">
206206
Turn-taking analyzer instance for conversation management.
207207

208-
**Deprecated in 0.0.99**. Use `LLMUserAggregator`'s `user_turn_strategies` parameter instead.
208+
**Removed in 0.0.102** (deprecated in 0.0.99). Use `LLMUserAggregator`'s `user_turn_strategies` parameter instead.
209+
210+
Migration example:
211+
```python
212+
# Old (removed)
213+
from pipecat.audio.turn.smart_turn.local_smart_turn_v3 import LocalSmartTurnAnalyzerV3
214+
215+
transport = DailyTransport(
216+
room_url, token, "Bot",
217+
params=DailyParams(
218+
audio_in_enabled=True,
219+
turn_analyzer=LocalSmartTurnAnalyzerV3(),
220+
)
221+
)
222+
223+
# New (recommended)
224+
from pipecat.processors.aggregators.llm_response_universal import (
225+
LLMContextAggregatorPair,
226+
LLMUserAggregatorParams,
227+
)
228+
from pipecat.turns.user_stop import TurnAnalyzerUserTurnStopStrategy
229+
from pipecat.turns.user_turn_strategies import UserTurnStrategies
230+
231+
transport = DailyTransport(
232+
room_url, token, "Bot",
233+
params=DailyParams(audio_in_enabled=True)
234+
)
235+
236+
user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
237+
context,
238+
user_params=LLMUserAggregatorParams(
239+
user_turn_strategies=UserTurnStrategies(
240+
stop=[
241+
TurnAnalyzerUserTurnStopStrategy(
242+
turn_analyzer=LocalSmartTurnAnalyzerV3()
243+
)
244+
]
245+
)
246+
),
247+
)
248+
```
209249
</ParamField>
210250

211251
## Transport Subclasses

0 commit comments

Comments
 (0)