Skip to content

Instantly share code, notes, and snippets.

@pietrop
Created January 16, 2020 18:18
Show Gist options
  • Save pietrop/94da62c00b477c5768fb57da52395e62 to your computer and use it in GitHub Desktop.
Save pietrop/94da62c00b477c5768fb57da52395e62 to your computer and use it in GitHub Desktop.
heuristic to estimate duration of a word, based on looking across a number of transcripts
// Chris Baume BBC R&D heuristic to estimate duration of a word, based on looking across a number of transcripts.
// from https://github.com/chrisbaume/webaligner/blob/9458df57d854e9df64a54bc23a7f0856de49730f/webaligner.js#L7
// estimates the duration of a word, in seconds
function wordDuration(word) {
return 0.08475 + (0.05379 * word.length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment