Skip to content

OpenaiApiASR translation not working #151

@mohamed99akram

Description

@mohamed99akram

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions