Skip to content

[Bug] Which version of transformers should I use #4420

@Kayzwer

Description

@Kayzwer

Describe the bug

Which version of transformers should I use

To Reproduce

import torch
from TTS.api import TTS


device = "cuda"

tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
wav = tts.tts(text="Hello world!", speaker_wav="./audio.wav", language="en")

Expected behavior

No response

Logs

ImportError: cannot import name 'BeamSearchScorer' from 'transformers' (/home/kayzwer/Envs/tts_env/lib/python3.11/site-packages/transformers/__init__.py)

Environment

- TTS Version: 0.22.0
- Python Version: 3.11.15
- OS: EndeaevourOS
- CUDA Version: 13.2
- RTX 4050 Mobile
- torch installed with pip

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions