https://pastebin.com/NQvi0Mh9
This is a test script for a STT tool I'm making. The purpose of the tool is to identify a pokemon name from speech, and then display relevant information.
I'm currently working on the STT portion. I'm using the faster-whisper model, and fuzzymatching to identify the pokemon name from speech correctly.
The test script has a function, compare_transaction() which iterates over 251 pokemon name recordings, transcribes each one, and puts information about the transcription into a dictionary. compare_transaction() then returns the dictionary.
I call the compare_transaction() on line 72. All the code from this function runs and the loop completes. The proceeding lines do not get run after calling this function. The proceeding statements are print statements, and writing the dict to json. The print statements are not shown in the terminal, and the json file is not written.
If I modify compare_transaction() to run a limited number of times, it will run the proceeding code successfully. I have not tested this exhaustively, so as to find the "edge" of where this will fail or succeed, and have only limited the loop to running 10 times to see if it would work.
I would really appreciate any help understanding why this apparently fails without any errors.