Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Question. How to convert frame # into time coordinates? #17

@ghost

Description

I'm in need of getting the time coordinates of every word sphinx thinks it identified.

I found out about segments() and realized that it's exactly what I need:

for phrase in AudioFile(audio_file="output.wav"):
    print phrase.segments(detailed=True)

However it is not clear to me what the frame # represents. It was immediately apparent that it is neither seconds nor sample #s.

I require a method to convert these frame #s into seconds.

Edit: Also, some words have a (#) following them, eg: 'and(2)', What does it represent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions