Skip to content

Preserve Punctuation in Alignment Output #92

@shanureddy4

Description

@shanureddy4

Hi,

I am trying to align a transcript file (.txt) with an audio file (.wav). The alignment works well, and the words match perfectly with correct casing. However, I noticed that punctuation marks (such as commas and periods) are missing in the output.

For example, I expect to get "Together," instead of "Together". But in the alignment result, punctuation is not included:

{
  "type": "sentence",
  "text": "Together, they worked towards a brighter future, one where humanity could thrive once more.",
  "startTime": 80.8748125,
  "endTime": 85.59931250000001,
  "timeline": [
    {
      "type": "word",
      "text": "Together",
      "startTime": 80.8748125,
      "endTime": 81.3575
    }
  ]
}

Here’s how I am calling the alignment function:

const options = {
    language: 'eng'
};

console.log('Starting alignment process...');

// Perform the alignment
const result = await Echogarden.align(audioPath, transcript, options);

I checked the available interfaces but couldn't find an option to preserve punctuation. Could you please guide me on how to retain punctuation in the alignment result?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssue proposes a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions