xinjli / allosaurus

Allosaurus is a pretrained universal phone recognizer for more than 2000 languages
GNU General Public License v3.0
531 stars 85 forks source link

maximum size for Inventory CustomizationIs? #54

Open ElafIslam123 opened 2 years ago

ElafIslam123 commented 2 years ago

Hi Is there a a maximum size for inventory customization? It seems not working if I have a phoneme number> 230? and keep getting this error assert max_domain_idx != -1

Thank you so much and I really appreciate your time to replay me

xinjli commented 2 years ago

Hi,

Sorry for the late reply. Yeah, there is a maximum size on the inventory. The original model only has ~230 phones in total, and each phone should be mapped to one of those phones, so you cannot recognize a larger inventory than this.

but this restriction is not applied to the new model I am developing now, called interspeech21 in the pull requests, you can merge this pull request and try using that one model instead. The problem is that I only implemented the inference part but have not enabled the customization part. You need to find the corresponding language directory and modify the files there if you want. There is no upper limit on the inventory size for this model (as long as you can distinguish your different phones)