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

OpenaiApiASR translation not working #151

Open
mohamed99akram opened this issue Jan 15, 2025 · 0 comments
Open

OpenaiApiASR translation not working #151

mohamed99akram opened this issue Jan 15, 2025 · 0 comments

Comments

@mohamed99akram
Copy link

mohamed99akram commented Jan 15, 2025

I tried OpenAI translation and it is not working.
After tracing, it seems this code accesses segments.words which is None in case of translation? the code is inside ts_words inside OpenaiApiASR
and translate doesn't take timestamp_granularities

for word in segments.words:
    start = word.start
    end = word.end
    if any(s[0] <= start <= s[1] for s in no_speech_segments):
        # print("Skipping word", word.get("word"), "because it's in a no-speech segment")
        continue
    o.append((start, end, word.word))
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

No branches or pull requests

1 participant