whisper-node icon indicating copy to clipboard operation
whisper-node copied to clipboard

Removing First Line, But It's Not Empty

Open recursivecodes opened this issue 2 years ago • 2 comments

I've been seeing empty transcription results, and did some digging to find that you're trying to remove the first line assuming that it is empty. In my testing, it's never empty. Perhaps you could create a more elegant solution that looks for empty array elements after it's parsed and then remove those?

https://github.com/ariym/whisper-node/blob/92e8b86200416a6af9e5698a02481a54811e1321/src/tsToArray.ts#L11

recursivecodes avatar Dec 05 '23 20:12 recursivecodes

Same here. The first line is never empty for me, even if I add a long blank at the beginning of the audio. I removed the shift() function, and it seems to work fine. Also, I often see [BLANK_AUDIO] at the end of my transcript array, which can be easily filtered out.

EightPool avatar Dec 12 '23 23:12 EightPool

~~Could it be that the first line is the translation? I recorded in german but my first line was in english~~

I didn't set language to auto, thats why it was translating the text

valoricDe avatar Sep 25 '24 07:09 valoricDe