Skip to content

What is AlignmentEntry? #340

@zyh3826

Description

@zyh3826

Hi, thanks for your work, it's really nice.
I use the code below to run an alignment:

with wave.open(args.audio, "rb") as audio:
    data = audio.getfp().read()
    decoder = Decoder(samprate=audio.getframerate())
    decoder.set_align_text(args.text)
    decoder.start_utt()
    decoder.process_raw(data, full_utt=True)
    decoder.end_utt()
    decoder.set_alignment()
    decoder.start_utt()
    decoder.process_raw(data, full_utt=True)
    decoder.end_utt()
    for word in decoder.get_alignment():
        print(list(word))

the result is an AlignmentEntry object, how can I find documents of this object? What are its attributions? Can't find it in your documents.
image

thanks a lot.

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