Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed : You cannot call BestPathEnd if no frames were decoded #4816

Closed
Tamaya31 opened this issue Jan 3, 2023 · 2 comments
Closed

Comments

@Tamaya31
Copy link

Tamaya31 commented Jan 3, 2023

Hello everyone,

I am new to Kaldi, and I have been trying to get this existing script from the Gentle repository to work.
I get an assertion failed line 223 when calling GetBestPath as described in the title of this issue. I test this by first pushing chunks of data (line 185) then calling "get-final" (line 217)

AdvanceDecoding is called after pushing each chunk of audio data, but decoder.NumFramesDecoded() always returns 0.

I've built Kaldi with MKL 2022.2.1 and OpenFST latest, on Windows 11.

Any idea about what could be happening here ?

Thanks in advance!

@galv
Copy link
Contributor

galv commented Jan 3, 2023 via email

@Tamaya31
Copy link
Author

Tamaya31 commented Jan 4, 2023

I was actually pushing the entire file (because the framerate was in Hz, the audio chunk was 160000). Now using 160 works (well it doesn't output any words/phones but the decoded frame number increases, so that is another problem not related to this issue).
Thank you for pointing me in the right direction!

@Tamaya31 Tamaya31 closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants