Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to find stretches of silence in audio files with Javascript?
    primarykey
    data
    text
    <p>I've been working on a tool to transcribe recordings of speech with Javascript. Basically I'm hooking up key events to play, pause, and loop a file read in with the <code>audio</code> tag.</p> <p>There are a number of advanced existing desktop apps for doing this sort of thing (such as <a href="http://annotation.exmaralda.org/index.php/Transcriber" rel="nofollow noreferrer">Transcriber</a> -- here's a <a href="http://web.archive.org/web/20061114025915/trans.sourceforge.net/img/screenshots/transcreen1.png" rel="nofollow noreferrer">screenshot</a>). Most transcription tools have a built-in waveform that can be used to jump around the audio file, which is very helpful because the transcriber can learn to visually find and repeat or loop phrases.</p> <p>I'm wondering if it's possible to emulate a subset of this functionality in the browser, with Javascript. I don't know much about signal processing, perhaps it's not even feasible.</p> <p>But what I envision is Javascript reading the sound stream from the file, and periodically sampling the amplitude. If the amplitude is very low for longer than a certain threshhold of time, then that would be labled as a phrase break. </p> <p>Such labeling, I think, would be very useful for transcription. I could then set up key commands to jump to the previous period of silence. So hypothetically (imagining a jQuery-based API):</p> <pre><code>var audio = $('audio#someid'); var silences = silenceFindingVoodoo(audio); </code></pre> <p><code>silences</code> will then contain a list of times, so I can hook up some way to let the user jump around through the various <code>silence</code>s, and then set the <code>currentTime</code> to a chosen value, and play it.</p> <p>Is it even conceivable to do this sort of thing with Javascript? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload