Skip to main content

Word-Level Timestamps

What are timestamps?

Timestamps refer to specific time in an audio or video clip when a particular word or phrase was spoken. Below is an example of what they could look like:

00:00:01,000 --> 00:00:04,000
This is the text for the audio between the first and fourth second.

In the example above, the timestamp 00:00:01,000 --> 00:00:04,000 denotes the time during which the phrase This is the text for the audio between the first and fourth second. was spoken.

Word-Level Timestamps

Timestamps can be more accurate if you know exactly when each word was spoken. Instead of having a timestamp for an entire sentence or paragraph, each word is given its precise start and end time, indicating when it occurs in the audio or video timeline. Below is an example of the same:

"timestamps": [
{
"word": "Towards",
"start": 1.92,
"end": 2.2
},
{
"word": "the",
"start": 2.2,
"end": 2.42
},
{
"word": "night",
"start": 2.42,
"end": 2.66
}
]

In the example above, we know the word night was spoken exactly between 2.42-2.66 seconds, which gives more control over how the transcript can be used.

Why are timestamps useful?

Timestamps in a transcript serve several practical purposes, enhancing the utility and accessibility of the transcribed content. Here are some of the ways in which timestamps are useful:

  1. Navigation and Searching: Timestamps allow users to quickly and accurately navigate to or search for specific sections of an audio or video file. For example, if someone wants to listen to a specific quote or segment, they can use the timestamp to jump directly to that point in the recording.

  2. Clarifying and Editing: Timestamps also help for clarifying ambigous sections by indicating the exact time you can refer to in the audio. And for editing or modifying segments without having to go through the whole audio again.

  3. Synchronization: If someone is creating subtitles or captions for a video, timestamps ensure that the text appears in sync with the spoken content.

  4. Research and Analysis: Researchers or journalists might use timestamps to reference specific parts of an interview or conversation. Timestamps allow for a methodical approach, making it easier to cite or revisit parts of the conversation.

  5. Accessibility: For people with hearing impairments, synchronized transcripts (like captions) can be essential when consuming video content. Timestamps ensure the alignment of text with the corresponding audio.

  6. Segmentation: Timestamps can aid in segmenting a long recording into smaller, topical chunks. For podcasts or lectures, this can be helpful in creating a table of contents or chapter breaks.

  7. Verification: In legal or official contexts, timestamps help verify when specific statements were made, ensuring the chronological accuracy of events or conversations.

  8. Enhanced Engagement: In some online platforms or learning management systems, clickable timestamps can be integrated, allowing listeners or viewers to jump to topics of interest, enhancing user engagement and experience.

In essence, timestamps in transcripts bridge the gap between text and the rich context provided by audio or video, making the content more accessible, navigable, and useful.

How to get timestamps from VoiceAI?

VoiceAI returns timestamps by default for audio files when using the API or the SDK. Below is an example of what the response looks like:

{
...
"data": {
...
"result": {
"transcription": {
"channels": {
"0": {
...
"timestamps": [
{
"word": "Towards",
"start": 1.92,
"end": 2.2,
"conf": 1
},
{
"word": "the",
"start": 2.2,
"end": 2.42,
"conf": 1
},
{
"word": "night",
"start": 2.42,
"end": 2.66,
"conf": 1
},
{
"word": "before",
"start": 2.66,
"end": 3.02,
"conf": 0.69
},
...
]
}
}
}
}
}
}

In the above example, word refers to the word that was spoken in the audio, start and end refers to the stand and end time of the word. conf refers to the confidence that the model has regarding that prediction.

tip

You can also configure guidelines like the number of lines, duration, and number of character to conveniently use transcripts as subtitles. Check out subtitle guidelines for more.

Troubleshooting and FAQ

Wrong timing? Check out our FAQ page. If you still need help, feel free to reach out to us directly at support@neuralspace.ai or join our Slack community.