alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
8.05k stars 1.11k forks source link

Error in transcribing when filename (of .wav) contains an Apostrophe #1192

Open rcamden opened 1 year ago

rcamden commented 1 year ago

First, this is an Outstanding program, thank you for your hard work. I'm using it to get speech to srt (subrip subtitle) for foreign language video.

I found that with an Apostrophe (common in English language) in a filename, the transcriber throws an error message.

Example of Error Message:

  1. Filename being input by me to test Belladonna's Red Snare.wav

INFO:root:Recognizing /mnt/d/Temp-Video/4k Download/Belladonna's Red Snare.wav INFO:root:No closing quotation

  1. What works just fine is an edited filename after removing the Apostrophe:

    *Belladonnas Red Snare.wav

  2. Note: Typically complex TV Show series file names with upper and lower case characters, numbers, spaces and hyphens work fine, just not Apostrophe so far as I have tested.

example: "XXX - S02E01 - Return from - Belladonnas Red Snare.wav" works perfectly. example: "XXX - S02E01 - Return from - Belladonna's Red Snare.wav" fails, no closing quotation error

Aktor12 commented 5 months ago

First, this is an Outstanding program, thank you for your hard work. I'm using it to get speech to srt (subrip subtitle) for foreign language video.

I found that with an Apostrophe (common in English language) in a filename, the transcriber throws an error message.

Example of Error Message:

  1. Filename being input by me to test Belladonna's Red Snare.wav

INFO:root:Recognizing /mnt/d/Temp-Video/4k Download/Belladonna's Red Snare.wav INFO:root:No closing quotation

  1. What works just fine is an edited filename after removing the Apostrophe:

*Belladonnas Red Snare.wav

  1. Note: Typically complex TV Show series file names with upper and lower case characters, numbers, spaces and hyphens work fine, just not Apostrophe so far as I have tested.

example: "XXX - S02E01 - Return from - Belladonnas Red Snare.wav" works perfectly. example: "XXX - S02E01 - Return from - Belladonna's Red Snare.wav" fails, no closing quotation error