这是indexloc提供的服务,不要输入任何密码
Skip to content

add vad for stt FallbackAdapter #2582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 12, 2025
Merged

Conversation

longcw
Copy link
Contributor

@longcw longcw commented Jun 12, 2025

No description provided.

Copy link
Contributor

github-actions bot commented Jun 12, 2025

⚠️ Changeset Required

We detected changes in the following package(s) but no changeset file was found. Please add one for proper versioning:

  • livekit-agents

👉 Create a changeset file by clicking here.

@longcw longcw requested a review from a team June 12, 2025 09:11
@longcw longcw merged commit 674e0d6 into main Jun 12, 2025
6 of 25 checks passed
@longcw longcw deleted the longc/stt-fallback-adapter-add-vad branch June 12, 2025 11:48
@bcherry
Copy link
Contributor

bcherry commented Jun 12, 2025

@longcw I can't initialize an STT anymore after this landed. I get this error

Traceback (most recent call last):
  File "/Users/ben/dev/demo-agents/one-scratch/agent.py", line 3, in <module>
    from livekit import agents
  File "/Users/ben/dev/livekit/agents/livekit-agents/livekit/agents/__init__.py", line 23, in <module>
    from . import cli, ipc, llm, metrics, stt, tokenize, tts, utils, vad, voice  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ben/dev/livekit/agents/livekit-agents/livekit/agents/stt/__init__.py", line 1, in <module>
    from .fallback_adapter import AvailabilityChangedEvent, FallbackAdapter
  File "/Users/ben/dev/livekit/agents/livekit-agents/livekit/agents/stt/fallback_adapter.py", line 14, in <module>
    from ..stt import StreamAdapter
ImportError: cannot import name 'StreamAdapter' from partially initialized module 'livekit.agents.stt' (most likely due to a circular import) (/Users/ben/dev/livekit/agents/livekit-agents/livekit/agents/stt/__init__.py)

@longcw
Copy link
Contributor Author

longcw commented Jun 13, 2025

@bcherry fixed in #2590

longcw added a commit that referenced this pull request Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants