Skip to content
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

When using commit 530b2e3 for timestamp-based inference, IndexError: list index out of range #167

Open
NBStarry opened this issue Dec 3, 2024 · 0 comments
Labels
question Further information is requested

Comments

@NBStarry
Copy link

NBStarry commented Dec 3, 2024

What is your question?

When using commit 530b2e3 for timestamp-based inference, errors occasionally occur in English and Japanese。The commit performs well in Chinese。

      File "/workspace/sensevoice.py", line 913, in inference
        timestamp.append([tokens[token_id], ts_left, ts_right])
    IndexError: list index out of range

Code

res = self.model.inference(
                data_in=self.audio_buffer[start:end],
                language = self.language,
                use_itn=True,
                ban_emo_unk=True,
                output_timestamp=True,
                **kwargs
            )
@NBStarry NBStarry added the question Further information is requested label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant